2018-09-13 04:51:47 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-09-13 23:21:34 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2018-10-11 05:26:24 +00:00
|
|
|
#include <charcoal/Application.h>
|
|
|
|
#include <charcoal/Camera.h>
|
|
|
|
#include <charcoal/constants.h>
|
|
|
|
|
2018-09-13 23:21:34 +00:00
|
|
|
#include "AutoPrerenderingScene.h"
|
2018-09-13 04:51:47 +00:00
|
|
|
|
|
|
|
#include "BasicShaderProgram.h"
|
2018-09-19 07:52:42 +00:00
|
|
|
#include "BasicTypes.h"
|
2018-09-15 01:29:05 +00:00
|
|
|
#include "BasicBatch.h"
|
2018-10-14 04:52:32 +00:00
|
|
|
#include "Batched.h"
|
|
|
|
#include "WithCamera.h"
|
2018-09-13 04:51:47 +00:00
|
|
|
|
|
|
|
namespace charcoal
|
|
|
|
{
|
|
|
|
namespace builtin
|
|
|
|
{
|
2018-09-19 07:52:42 +00:00
|
|
|
namespace basic
|
2018-09-13 04:51:47 +00:00
|
|
|
{
|
2018-10-14 04:52:32 +00:00
|
|
|
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-13 04:51:47 +00:00
|
|
|
|
2018-09-19 07:52:42 +00:00
|
|
|
void init() override;
|
2018-09-13 04:51:47 +00:00
|
|
|
|
2018-09-19 07:52:42 +00:00
|
|
|
void use() override;
|
2018-09-13 04:51:47 +00:00
|
|
|
|
2018-09-19 07:52:42 +00:00
|
|
|
void unuse() override;
|
2018-09-13 04:51:47 +00:00
|
|
|
|
2018-09-19 07:52:42 +00:00
|
|
|
void render() override;
|
2018-09-13 23:21:34 +00:00
|
|
|
|
2018-09-19 07:52:42 +00:00
|
|
|
private:
|
|
|
|
ShaderProgram m_shader_program;
|
|
|
|
};
|
|
|
|
}
|
2018-09-13 04:51:47 +00:00
|
|
|
}
|
|
|
|
}
|