2018-09-13 23:21:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2018-10-11 05:26:24 +00:00
|
|
|
#include <charcoal/Application.h>
|
|
|
|
#include <charcoal/Scene.h>
|
|
|
|
#include <charcoal/Prerenderable.h>
|
2018-09-13 23:21:34 +00:00
|
|
|
|
|
|
|
namespace charcoal
|
|
|
|
{
|
|
|
|
namespace builtin
|
|
|
|
{
|
|
|
|
class AutoPrerenderingScene : public Scene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AutoPrerenderingScene(Application& application) : Scene(application) {}
|
|
|
|
virtual ~AutoPrerenderingScene() {}
|
|
|
|
|
|
|
|
void prerender() override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void add_prerenderable(Prerenderable* p_prerenderable);
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<Prerenderable*> m_prerenderables;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|