charcoal/OpenGLEngine/BasicScene.h
elipzer 991b52b233 Almost Finished Builtin
Builtin general structure created. Added a builtin::BasicScene
class for quick general testing of the engine on different systems.
The builtin::BasicScene class greatly reduces the amount of code
needed to be handled by the developer by offering a pre-made way
to handle it. It even includes pre-made shaders!
2018-09-13 00:51:47 -04:00

40 lines
724 B
C++

#pragma once
#include "Scene.h"
#include "BasicShaderProgram.h"
#include "BasicBatch.h"
#include "Camera3D.h"
#include "constants.h"
namespace charcoal
{
namespace builtin
{
class BasicScene : public Scene
{
public:
BasicScene(Application& application);
~BasicScene() {}
void init() override;
void use() override;
void unuse() override;
void prerender() override;
void render() override;
protected:
BasicBatch* add_batch(BasicRenderable* renderable, int element_count);
BasicBatch* add_batch(BasicRenderable* renderable, int element_count, int element_render_count);
BasicShaderProgram m_shader_program;
std::vector<BasicBatch> m_batches;
Camera3D m_camera;
};
}
}