charcoal/OpenGLEngine/BasicScene.h

40 lines
617 B
C
Raw Normal View History

#pragma once
#include "Scene.h"
#include "BasicShaderProgram.h"
#include "BasicBatch.h"
#include "Camera2D.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 update(float delta_time, clock_t clock) override;
void prerender() override;
void render() override;
private:
BasicShaderProgram m_shader_program;
BasicRenderable m_shape;
BasicBatch m_batch;
Camera2D m_camera;
};
}
}