Minor changes example builtin scene
This commit is contained in:
parent
b533e2a408
commit
0ec63880a3
@ -14,6 +14,7 @@ MyBuiltinCubeScene::MyBuiltinCubeScene(Application& application)
|
|||||||
m_camera(m_screen_size),
|
m_camera(m_screen_size),
|
||||||
m_batch(add_batch(&m_shape, 2))
|
m_batch(add_batch(&m_shape, 2))
|
||||||
{
|
{
|
||||||
|
add_prerenderable(&m_camera);
|
||||||
set_camera(&m_camera);
|
set_camera(&m_camera);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "BasicScene.h"
|
#include "BasicScene.h"
|
||||||
#include "Camera2D.h"
|
#include "BuiltinCamera2D.h"
|
||||||
|
|
||||||
using namespace charcoal;
|
using namespace charcoal;
|
||||||
using namespace charcoal::builtin;
|
using namespace charcoal::builtin;
|
||||||
@ -14,6 +14,6 @@ public:
|
|||||||
void update(float delta_time, clock_t clock) override;
|
void update(float delta_time, clock_t clock) override;
|
||||||
private:
|
private:
|
||||||
BasicRenderable m_shape;
|
BasicRenderable m_shape;
|
||||||
Camera2D m_camera;
|
builtin::Camera2D m_camera;
|
||||||
BasicBatch& m_batch;
|
BasicBatch& m_batch;
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user