e3c85324c6
Also moved all the code for each pipeline into the header files rather than the .cpp files to keep it all in one place. Considering just moving all the code into one file just to make it easier to create new pipelines but that may be overkill and may make the project harder to maintain in the future.
37 lines
687 B
C++
37 lines
687 B
C++
#pragma once
|
|
|
|
#include <charcoal/Poseable.h>
|
|
#include <charcoal-builtin/BasicScene.h>
|
|
#include <charcoal-builtin/BuiltinCamera3D.h>
|
|
#include <charcoal-builtin/BasicPipeline.h>
|
|
|
|
using namespace charcoal;
|
|
using namespace charcoal::builtin;
|
|
|
|
class MyBuiltinCubeScene : public Scene
|
|
{
|
|
public:
|
|
MyBuiltinCubeScene(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:
|
|
basic::Renderable m_shape;
|
|
builtin::Camera3D m_camera;
|
|
basic::Batch m_batch;
|
|
|
|
basic::Pipeline m_pipeline;
|
|
|
|
Poseable m_pose_a;
|
|
Poseable m_pose_b;
|
|
}; |