charcoal/OpenGLEngine/MyBasicScene.h
Elipzer 3205680062 Fixed Camera
Also added a required prerender function to scene and application.
This function is intended to be used as a way to prepare the scene
to be rendered in its current state. For that reason, the delta
time and the current clock tick are not passed to it.
2018-09-12 11:22:56 -04:00

32 lines
441 B
C++

#pragma once
#include "Scene.h"
#include "MyBasicShaderProgram.h"
class MyBasicScene : public Scene
{
public:
MyBasicScene(Application& application);
~MyBasicScene();
void init() override;
void use() override;
void unuse() override;
void update(float delta_time, clock_t clock) override;
void prerender() override;
void render() override;
private:
MyBasicShaderProgram m_shader_program;
GLuint m_vbo;
GLuint m_vao;
};