2018-09-05 23:10:38 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Scene.h"
|
|
|
|
|
|
|
|
#include "MyBatch.h"
|
2018-09-07 04:41:34 +00:00
|
|
|
#include "MyBatchTestShaderProgram.h"
|
2018-09-05 23:10:38 +00:00
|
|
|
|
|
|
|
class MyObjectOrientedScene : public Scene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MyObjectOrientedScene();
|
|
|
|
~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;
|
2018-09-07 15:45:32 +00:00
|
|
|
MyBatchTestShaderProgram::Renderable m_shape;
|
2018-09-07 04:41:34 +00:00
|
|
|
MyBatchTestShaderProgram m_shader_program;
|
2018-09-05 23:10:38 +00:00
|
|
|
};
|