d196e42522
Also fixed multiple batches failing from vector resizing. Now using a list as the back end for batched scenes.
21 lines
495 B
C++
21 lines
495 B
C++
#pragma once
|
|
|
|
#include "LitShadowedScene.h"
|
|
#include "BuiltinCamera3D.h"
|
|
|
|
using namespace charcoal;
|
|
using namespace charcoal::builtin;
|
|
|
|
class MyBuiltinLitShadowedScene : public litshadowed::Scene
|
|
{
|
|
public:
|
|
MyBuiltinLitShadowedScene(Application& application);
|
|
|
|
void update(float delta_time, clock_t clock) override;
|
|
private:
|
|
litshadowed::Renderable m_cube;
|
|
litshadowed::Renderable m_plane;
|
|
builtin::Camera3D m_camera;
|
|
litshadowed::Batch& m_cube_batch;
|
|
litshadowed::Batch& m_plane_batch;
|
|
}; |