charcoal/OpenGLEngine/MySimpleCubeScene.h

37 lines
590 B
C
Raw Normal View History

#pragma once
#include "Scene.h"
#include "Camera3D.h"
#include "MyBatch.h"
#include "MySimpleShaderProgram.h"
2018-09-12 21:03:46 +00:00
using namespace charcoal;
class MySimpleCubeScene : public Scene
{
public:
MySimpleCubeScene(Application& application);
~MySimpleCubeScene();
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:
MySimpleShaderProgram m_shader_program;
MySimpleShaderProgram::Renderable m_shape;
MyBatch m_batch;
charcoal::Camera3D m_camera;
};