d63f341d89
Got the builtin basicscene to render. For some reason, it seems like the model matrices are not working correctly. The two shapes that are supposed to be rendering on screen are not moving around as they should be.
19 lines
360 B
C++
19 lines
360 B
C++
#pragma once
|
|
|
|
#include "BasicScene.h"
|
|
#include "Camera2D.h"
|
|
|
|
using namespace charcoal;
|
|
using namespace charcoal::builtin;
|
|
|
|
class MyBuiltinCubeScene : public BasicScene
|
|
{
|
|
public:
|
|
MyBuiltinCubeScene(Application& application);
|
|
|
|
void update(float delta_time, clock_t clock) override;
|
|
private:
|
|
BasicRenderable m_shape;
|
|
Camera2D m_camera;
|
|
BasicBatch m_batch;
|
|
}; |