charcoal/OpenGLEngine/MySimple2DScene.h
Elipzer 90bac19849 3D Cube
Finally got a 3D cube to be rendered. While doing it, fixed a
bug in MeshFactory that caused it to allocate the incorrect amount
of memory for each mesh.
2018-09-11 16:49:34 -04:00

31 lines
516 B
C++

#pragma once
#include "Scene.h"
#include "Camera2D.h"
#include "MyBatch.h"
#include "MySimpleShaderProgram.h"
class MySimple2DScene : public Scene
{
public:
MySimple2DScene(Application& application);
~MySimple2DScene();
void init() override;
void use() override;
void unuse() override;
void update(float delta_time, clock_t clock) override;
void render() override;
private:
MySimpleShaderProgram m_shader_program;
MySimpleShaderProgram::Renderable m_shape;
MyBatch m_batch;
Camera2D m_camera;
};