Minor changes example builtin scene

This commit is contained in:
elipzer 2018-09-14 11:55:01 -04:00
parent b533e2a408
commit 0ec63880a3
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;
};