2018-09-13 04:51:47 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Scene.h"
|
|
|
|
|
|
|
|
#include "BasicShaderProgram.h"
|
|
|
|
#include "BasicBatch.h"
|
2018-09-13 17:35:30 +00:00
|
|
|
#include "Camera2D.h"
|
2018-09-13 04:51:47 +00:00
|
|
|
|
|
|
|
#include "constants.h"
|
|
|
|
|
|
|
|
namespace charcoal
|
|
|
|
{
|
|
|
|
namespace builtin
|
|
|
|
{
|
|
|
|
class BasicScene : public Scene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
BasicScene(Application& application);
|
2018-09-13 17:35:30 +00:00
|
|
|
~BasicScene();
|
2018-09-13 04:51:47 +00:00
|
|
|
|
|
|
|
void init() override;
|
|
|
|
|
|
|
|
void use() override;
|
|
|
|
|
|
|
|
void unuse() override;
|
|
|
|
|
2018-09-13 17:35:30 +00:00
|
|
|
void update(float delta_time, clock_t clock) override;
|
|
|
|
|
2018-09-13 04:51:47 +00:00
|
|
|
void prerender() override;
|
|
|
|
|
|
|
|
void render() override;
|
|
|
|
|
2018-09-13 17:35:30 +00:00
|
|
|
private:
|
2018-09-13 04:51:47 +00:00
|
|
|
BasicShaderProgram m_shader_program;
|
2018-09-13 17:35:30 +00:00
|
|
|
BasicRenderable m_shape;
|
|
|
|
BasicBatch m_batch;
|
|
|
|
Camera2D m_camera;
|
2018-09-13 04:51:47 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|