3485bcb2a0
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.
27 lines
452 B
C++
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;
|
|
}; |