charcoal/Example/MySimple3DScene.h

36 lines
602 B
C
Raw Normal View History

#pragma once
#include <charcoal/Scene.h>
#include <charcoal/Camera3D.h>
#include "MyBatch.h"
2018-09-11 05:18:17 +00:00
#include "MySimpleShaderProgram.h"
2018-09-12 21:03:46 +00:00
using namespace charcoal;
2018-09-11 05:18:17 +00:00
class MySimple3DScene : public Scene
{
public:
2018-09-11 05:18:17 +00:00
MySimple3DScene(Application& application);
~MySimple3DScene();
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:
2018-09-11 05:18:17 +00:00
MySimpleShaderProgram m_shader_program;
2018-09-19 07:52:42 +00:00
MySimpleShaderProgram::RenderableT m_shape;
MyBatch m_batch;
charcoal::Camera3D m_camera;
};