charcoal/OpenGLEngine/MySimple2DScene.h

33 lines
545 B
C
Raw Normal View History

#pragma once
#include "Scene.h"
#include "Camera2D.h"
#include "MyBatch.h"
2018-09-11 05:18:17 +00:00
#include "MySimpleShaderProgram.h"
2018-09-11 05:18:17 +00:00
class MySimple2DScene : public Scene
{
public:
2018-09-11 05:18:17 +00:00
MySimple2DScene(Application& application);
~MySimple2DScene();
void init() override;
void use() override;
void unuse() override;
void update(float delta_time, clock_t clock) override;
void prerender() override;
void render() override;
2018-09-11 05:18:17 +00:00
private:
2018-09-11 05:18:17 +00:00
MySimpleShaderProgram m_shader_program;
MySimpleShaderProgram::Renderable m_shape;
MyBatch m_batch;
Camera2D m_camera;
};