charcoal/CharcoalBuiltin/TexturedScene.h

40 lines
722 B
C++

#pragma once
#include <vector>
#include <charcoal/Camera.h>
#include "AutoPrerenderingScene.h"
#include "Batched.h"
#include "TexturedBatch.h"
#include "TexturedShaderProgram.h"
namespace charcoal
{
namespace builtin
{
namespace textured
{
class Scene : public AutoPrerenderingScene, public Batched<Renderable, Batch>
{
public:
Scene(Application& application) : AutoPrerenderingScene(application) {}
void init() override;
void use() override;
void unuse() override;
void render() override;
protected:
void set_camera(const Camera* p_camera) { m_p_camera = p_camera; }
private:
ShaderProgram m_shader_program;
const Camera* m_p_camera = nullptr;
};
}
}
}