7cbe8acf30
Now the code is being compiled through .lib files!
34 lines
600 B
C++
34 lines
600 B
C++
#pragma once
|
|
|
|
#include <charcoal/Scene.h>
|
|
#include <charcoal/Camera2D.h>
|
|
|
|
#include "MyBatch.h"
|
|
#include "MySimpleShaderProgram.h"
|
|
|
|
using namespace charcoal;
|
|
|
|
class MySimple2DScene : public Scene
|
|
{
|
|
public:
|
|
MySimple2DScene(Application& application);
|
|
~MySimple2DScene();
|
|
|
|
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:
|
|
MySimpleShaderProgram m_shader_program;
|
|
MySimpleShaderProgram::RenderableT m_shape;
|
|
MyBatch m_batch;
|
|
charcoal::Camera2D m_camera;
|
|
}; |