2018-09-05 23:10:38 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Scene.h"
|
|
|
|
|
|
|
|
#include "MyBatch.h"
|
|
|
|
#include "MyShaderProgram.h"
|
|
|
|
|
|
|
|
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 03:22:40 +00:00
|
|
|
MyShaderProgram::RenderableType m_shape;
|
2018-09-05 23:10:38 +00:00
|
|
|
MyShaderProgram m_shader_program;
|
|
|
|
};
|