From 0ec63880a31cd84139dcc7bc95da730bba111135 Mon Sep 17 00:00:00 2001 From: elipzer Date: Fri, 14 Sep 2018 11:55:01 -0400 Subject: [PATCH] Minor changes example builtin scene --- OpenGLEngine/MyBuiltinCubeScene.cpp | 1 + OpenGLEngine/MyBuiltinCubeScene.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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