2018-09-13 23:21:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-14 04:52:32 +00:00
|
|
|
#include <charcoal/Poseable.h>
|
2018-10-11 05:26:24 +00:00
|
|
|
#include <charcoal-builtin/BasicScene.h>
|
|
|
|
#include <charcoal-builtin/BuiltinCamera3D.h>
|
2018-10-14 19:06:51 +00:00
|
|
|
#include <charcoal-builtin/BasicPipeline.h>
|
2018-09-13 23:21:34 +00:00
|
|
|
|
|
|
|
using namespace charcoal;
|
|
|
|
using namespace charcoal::builtin;
|
|
|
|
|
2018-10-14 19:06:51 +00:00
|
|
|
class MyBuiltinCubeScene : public Scene
|
2018-09-13 23:21:34 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
MyBuiltinCubeScene(Application& application);
|
|
|
|
|
2018-10-14 19:06:51 +00:00
|
|
|
void init() override;
|
|
|
|
|
2018-10-14 19:44:04 +00:00
|
|
|
void use() override {}
|
2018-10-14 19:06:51 +00:00
|
|
|
|
|
|
|
void unuse() override {}
|
|
|
|
|
2018-09-13 23:21:34 +00:00
|
|
|
void update(float delta_time, clock_t clock) override;
|
2018-10-14 19:06:51 +00:00
|
|
|
|
|
|
|
void prerender() override;
|
|
|
|
|
|
|
|
void render() override;
|
|
|
|
|
2018-09-13 23:21:34 +00:00
|
|
|
private:
|
2018-09-19 07:52:42 +00:00
|
|
|
basic::Renderable m_shape;
|
2018-09-14 18:20:09 +00:00
|
|
|
builtin::Camera3D m_camera;
|
2018-10-14 19:06:51 +00:00
|
|
|
basic::Batch m_batch;
|
|
|
|
|
|
|
|
basic::Pipeline m_pipeline;
|
2018-10-14 04:52:32 +00:00
|
|
|
|
|
|
|
Poseable m_pose_a;
|
|
|
|
Poseable m_pose_b;
|
2018-09-13 23:21:34 +00:00
|
|
|
};
|