charcoal/Example/MyBuiltinLitScene.h

39 lines
686 B
C
Raw Normal View History

#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:
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;
lit::Light m_light;
Poseable m_pose_a;
Poseable m_pose_b;
};