charcoal/OpenGLEngine/MyBuiltinLitShadowedScene.h
elipzer d196e42522 Added a plane to the shadowed scene.
Also fixed multiple batches failing from vector resizing. Now
using a list as the back end for batched scenes.
2018-09-20 13:53:06 -04:00

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