charcoal/Example/MySimple3DScene.h

36 lines
637 B
C
Raw Normal View History

2022-08-02 00:07:37 +00:00
#pragma once
#include <charcoal/Scene.h>
#include <charcoal/Camera3D.h>
#include "MyBatch.h"
#include "MySimpleShaderProgram.h"
using namespace charcoal;
class MySimple3DScene : public Scene
{
public:
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:
MySimpleShaderProgram m_shader_program;
MySimpleShaderProgram::RenderableT m_shape;
MyBatch m_batch;
charcoal::Camera3D m_camera;
};