charcoal/OpenGLEngine/MyObjectOrientedScene.h

30 lines
542 B
C
Raw Normal View History

#pragma once
#include "Scene.h"
#include "Camera2D.h"
#include "MyBatch.h"
#include "MyBatchTestShaderProgram.h"
class MyObjectOrientedScene : public Scene
{
public:
MyObjectOrientedScene(Application& application);
~MyObjectOrientedScene();
void init() override;
void use() override;
void unuse() override;
void update(float delta_time, clock_t clock) override;
void render() override;
private:
MyBatch m_batch;
MyBatchTestShaderProgram::Renderable m_shape;
MyBatchTestShaderProgram m_shader_program;
Camera2D m_camera;
};