39 lines
731 B
C
39 lines
731 B
C
|
#pragma once
|
||
|
|
||
|
#include <charcoal/Poseable.h>
|
||
|
#include <charcoal/Scene.h>
|
||
|
#include <charcoal-builtin/BuiltinCamera3D.h>
|
||
|
#include <charcoal-builtin/LitPipeline.h>
|
||
|
|
||
|
using namespace charcoal;
|
||
|
using namespace charcoal::builtin;
|
||
|
|
||
|
class MyBuiltinLitScene : public Scene
|
||
|
{
|
||
|
public:
|
||
|
// TODO: Add the lights!
|
||
|
// This should be done in the pipeline!
|
||
|
MyBuiltinLitScene(Application& application);
|
||
|
|
||
|
void init() override;
|
||
|
|
||
|
void use() override {}
|
||
|
|
||
|
void unuse() override {}
|
||
|
|
||
|
void update(float delta_time, clock_t clock) override;
|
||
|
|
||
|
void prerender() override;
|
||
|
|
||
|
void render() override;
|
||
|
|
||
|
private:
|
||
|
lit::Renderable m_shape;
|
||
|
builtin::Camera3D m_camera;
|
||
|
lit::Batch m_batch;
|
||
|
|
||
|
lit::Pipeline m_pipeline;
|
||
|
|
||
|
Poseable m_pose_a;
|
||
|
Poseable m_pose_b;
|
||
|
};
|