2018-09-11 19:00:28 +00:00
|
|
|
#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;
|
|
|
|
|
2018-09-11 19:00:28 +00:00
|
|
|
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;
|
|
|
|
|
2018-09-12 15:22:56 +00:00
|
|
|
void prerender() override;
|
|
|
|
|
2018-09-11 19:00:28 +00:00
|
|
|
void render() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
MySimpleShaderProgram m_shader_program;
|
|
|
|
MySimpleShaderProgram::Renderable m_shape;
|
|
|
|
MyBatch m_batch;
|
2018-09-15 21:40:49 +00:00
|
|
|
charcoal::Camera3D m_camera;
|
2018-09-11 19:00:28 +00:00
|
|
|
};
|
|
|
|
|