diff --git a/OpenGLEngine/MyBuiltinCubeScene.cpp b/OpenGLEngine/MyBuiltinCubeScene.cpp index 400f7f8..7b745a9 100644 --- a/OpenGLEngine/MyBuiltinCubeScene.cpp +++ b/OpenGLEngine/MyBuiltinCubeScene.cpp @@ -14,6 +14,7 @@ MyBuiltinCubeScene::MyBuiltinCubeScene(Application& application) m_camera(m_screen_size), m_batch(add_batch(&m_shape, 2)) { + add_prerenderable(&m_camera); set_camera(&m_camera); } diff --git a/OpenGLEngine/MyBuiltinCubeScene.h b/OpenGLEngine/MyBuiltinCubeScene.h index f22f7f1..78d82ab 100644 --- a/OpenGLEngine/MyBuiltinCubeScene.h +++ b/OpenGLEngine/MyBuiltinCubeScene.h @@ -1,7 +1,7 @@ #pragma once #include "BasicScene.h" -#include "Camera2D.h" +#include "BuiltinCamera2D.h" using namespace charcoal; using namespace charcoal::builtin; @@ -14,6 +14,6 @@ public: void update(float delta_time, clock_t clock) override; private: BasicRenderable m_shape; - Camera2D m_camera; + builtin::Camera2D m_camera; BasicBatch& m_batch; }; \ No newline at end of file