40 lines
724 B
C
40 lines
724 B
C
|
#pragma once
|
||
|
|
||
|
#include "Scene.h"
|
||
|
|
||
|
#include "BasicShaderProgram.h"
|
||
|
#include "BasicBatch.h"
|
||
|
#include "Camera3D.h"
|
||
|
|
||
|
#include "constants.h"
|
||
|
|
||
|
namespace charcoal
|
||
|
{
|
||
|
namespace builtin
|
||
|
{
|
||
|
class BasicScene : public Scene
|
||
|
{
|
||
|
public:
|
||
|
BasicScene(Application& application);
|
||
|
~BasicScene() {}
|
||
|
|
||
|
void init() override;
|
||
|
|
||
|
void use() override;
|
||
|
|
||
|
void unuse() override;
|
||
|
|
||
|
void prerender() override;
|
||
|
|
||
|
void render() override;
|
||
|
|
||
|
protected:
|
||
|
BasicBatch* add_batch(BasicRenderable* renderable, int element_count);
|
||
|
BasicBatch* add_batch(BasicRenderable* renderable, int element_count, int element_render_count);
|
||
|
|
||
|
BasicShaderProgram m_shader_program;
|
||
|
std::vector<BasicBatch> m_batches;
|
||
|
Camera3D m_camera;
|
||
|
};
|
||
|
}
|
||
|
}
|