charcoal/OpenGLEngine/MySimpleScene.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

32 lines
403 B
C++

#pragma once
#include "Scene.h"
#include "MyBatch.h"
#include "MyShaderProgram.h"
class MySimpleScene :
public Scene
{
public:
MySimpleScene();
~MySimpleScene();
void init() override;
void use() override;
void unuse() override;
void update(float delta_time, clock_t clock) override;
void render() override;
private:
MyShaderProgram m_shader_program;
GLuint m_vbo;
GLuint m_vao;
};