charcoal/OpenGLEngine/MyObjectOrientedScene.h
elipzer 3485bcb2a0 Improved Batch Functionality
Now batches are actually batches.

Also added the MeshFactory class.

Drawing modes are now specified with DrawMode instead of the
GLenum. Renderables must be specified with a draw mode.
2018-09-06 23:22:40 -04:00

27 lines
452 B
C++

#pragma once
#include "Scene.h"
#include "MyBatch.h"
#include "MyShaderProgram.h"
class MyObjectOrientedScene : public Scene
{
public:
MyObjectOrientedScene();
~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;
MyShaderProgram::RenderableType m_shape;
MyShaderProgram m_shader_program;
};