charcoal/CharcoalBuiltin/BasicScene.h

41 lines
721 B
C
Raw Normal View History

#pragma once
#include <vector>
#include <charcoal/Application.h>
#include <charcoal/Camera.h>
#include <charcoal/constants.h>
#include "AutoPrerenderingScene.h"
#include "BasicShaderProgram.h"
2018-09-19 07:52:42 +00:00
#include "BasicTypes.h"
#include "BasicBatch.h"
#include "Batched.h"
#include "WithCamera.h"
namespace charcoal
{
namespace builtin
{
2018-09-19 07:52:42 +00:00
namespace basic
{
class Scene : public AutoPrerenderingScene, public Batched<Renderable, Batch>, public WithCamera
2018-09-19 07:52:42 +00:00
{
public:
Scene(Application& application) : AutoPrerenderingScene(application) {}
2018-09-19 07:52:42 +00:00
void init() override;
2018-09-19 07:52:42 +00:00
void use() override;
2018-09-19 07:52:42 +00:00
void unuse() override;
2018-09-19 07:52:42 +00:00
void render() override;
2018-09-19 07:52:42 +00:00
private:
ShaderProgram m_shader_program;
};
}
}
}