charcoal/OpenGLEngine/MySimpleScene.h

32 lines
427 B
C
Raw Normal View History

2018-09-04 19:25:54 +00:00
#pragma once
#include "Scene.h"
#include "MyBatch.h"
2018-09-05 06:49:02 +00:00
#include "MyShaderProgram.h"
2018-09-04 19:25:54 +00:00
class MySimpleScene :
public Scene
{
public:
MySimpleScene(Application& application);
2018-09-04 19:25:54 +00:00
~MySimpleScene();
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:
MyShaderProgram m_shader_program;
GLuint m_vbo;
GLuint m_vao;
2018-09-04 19:25:54 +00:00
};