#pragma once #include #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 { 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; }; } } }