2018-09-04 19:25:54 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Scene.h"
|
|
|
|
|
2018-09-11 05:18:17 +00:00
|
|
|
#include "MyBasicShaderProgram.h"
|
2018-09-05 06:49:02 +00:00
|
|
|
|
2018-09-11 05:18:17 +00:00
|
|
|
class MyBasicScene : public Scene
|
2018-09-04 19:25:54 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-09-11 05:18:17 +00:00
|
|
|
MyBasicScene(Application& application);
|
|
|
|
~MyBasicScene();
|
2018-09-04 19:25:54 +00:00
|
|
|
|
2018-09-05 15:47:09 +00:00
|
|
|
void init() override;
|
|
|
|
|
2018-09-04 19:25:54 +00:00
|
|
|
void use() override;
|
|
|
|
|
|
|
|
void unuse() override;
|
|
|
|
|
|
|
|
void update(float delta_time, clock_t clock) override;
|
|
|
|
|
|
|
|
void render() override;
|
2018-09-05 06:49:02 +00:00
|
|
|
|
|
|
|
private:
|
2018-09-11 05:18:17 +00:00
|
|
|
MyBasicShaderProgram m_shader_program;
|
2018-09-05 20:26:50 +00:00
|
|
|
|
|
|
|
GLuint m_vbo;
|
|
|
|
GLuint m_vao;
|
2018-09-04 19:25:54 +00:00
|
|
|
};
|
|
|
|
|