charcoal/Example/MyBasicScene.h

34 lines
477 B
C
Raw Permalink Normal View History

2018-09-04 19:25:54 +00:00
#pragma once
#include <charcoal/Scene.h>
2018-09-04 19:25:54 +00:00
2018-09-11 05:18:17 +00:00
#include "MyBasicShaderProgram.h"
2018-09-05 06:49:02 +00:00
2018-09-12 21:03:46 +00:00
using namespace charcoal;
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
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 prerender() override;
2018-09-04 19:25:54 +00:00
void render() override;
2018-09-05 06:49:02 +00:00
private:
2018-09-11 05:18:17 +00:00
MyBasicShaderProgram m_shader_program;
GLuint m_vbo;
GLuint m_vao;
2018-09-04 19:25:54 +00:00
};