27 lines
451 B
C++
27 lines
451 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include <charcoal/Application.h>
|
|
#include <charcoal/Scene.h>
|
|
#include <charcoal/Prerenderable.h>
|
|
|
|
namespace charcoal
|
|
{
|
|
namespace builtin
|
|
{
|
|
class AutoPrerenderingScene : public charcoal::Scene
|
|
{
|
|
public:
|
|
using charcoal::Scene::Scene;
|
|
|
|
void prerender() override;
|
|
|
|
protected:
|
|
void add_prerenderable(Prerenderable* p_prerenderable);
|
|
|
|
private:
|
|
std::vector<Prerenderable*> m_prerenderables;
|
|
};
|
|
}
|
|
} |