36 lines
631 B
C
36 lines
631 B
C
|
#pragma once
|
||
|
|
||
|
#include "AutoPrerenderingScene.h"
|
||
|
#include "WithCamera.h"
|
||
|
#include "Batched.h"
|
||
|
|
||
|
#include "SpriteBatch.h"
|
||
|
#include "ImageShaderProgram.h"
|
||
|
#include "ImageTypes.h"
|
||
|
|
||
|
namespace charcoal
|
||
|
{
|
||
|
namespace builtin
|
||
|
{
|
||
|
namespace image
|
||
|
{
|
||
|
class Scene : public AutoPrerenderingScene, public WithCamera, public Batched<Renderable, Batch>
|
||
|
{
|
||
|
public:
|
||
|
Scene(Application& application) : AutoPrerenderingScene(application) {}
|
||
|
virtual ~Scene() {}
|
||
|
|
||
|
void init() override;
|
||
|
|
||
|
void use() override;
|
||
|
|
||
|
void unuse() override;
|
||
|
|
||
|
void render() override;
|
||
|
|
||
|
private:
|
||
|
ShaderProgram m_shader_program;
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|