charcoal/OpenGLEngine/BasicScene.h
2018-09-19 03:52:42 -04:00

45 lines
801 B
C++

#pragma once
#include <vector>
#include "Application.h"
#include "AutoPrerenderingScene.h"
#include "BasicShaderProgram.h"
#include "BasicTypes.h"
#include "Camera.h"
#include "Batched.h"
#include "BasicBatch.h"
#include "constants.h"
namespace charcoal
{
namespace builtin
{
namespace basic
{
class Scene : public AutoPrerenderingScene, public Batched<Renderable, Batch>
{
public:
Scene(Application& application) : AutoPrerenderingScene(application) {}
virtual ~Scene() {}
void init() override;
void use() override;
void unuse() override;
void render() override;
protected:
void set_camera(const Camera* p_camera) { m_p_camera = p_camera; }
private:
ShaderProgram m_shader_program;
const Camera* m_p_camera = nullptr;
};
}
}
}