charcoal/Example/MyBuiltinLitScene.h
elipzer 8ee0ab2edb Lighting works... Just not properly
Commiting now so that there is something displaying for the lit
scene.
2018-10-15 22:38:59 -04:00

39 lines
686 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:
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;
};