charcoal/OpenGLEngine/MyObjectOrientedScene.h
elipzer 5a10a883fb Camera Class
Currently implemented a 2D camera class that creates an
orthographic projection matrix.

TODO is implementing a 3D camera class and test program.
2018-09-08 00:06:10 -04:00

30 lines
542 B
C++

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