charcoal/Example/MyBuiltinCubeScene.h
elipzer 94de35536a Got it working but its not working...
The UVs are off for some reason but I'm not 100% sure why. Possibly
caused by some sort of offset not being accounted for.
2018-10-14 21:19:38 -04:00

37 lines
674 B
C++

#pragma once
#include <charcoal/Poseable.h>
#include <charcoal/Scene.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;
};