7cbe8acf30
Now the code is being compiled through .lib files!
45 lines
828 B
C++
45 lines
828 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include <charcoal/Application.h>
|
|
#include <charcoal/Camera.h>
|
|
#include <charcoal/constants.h>
|
|
|
|
#include "AutoPrerenderingScene.h"
|
|
|
|
#include "BasicShaderProgram.h"
|
|
#include "BasicTypes.h"
|
|
#include "Batched.h"
|
|
#include "BasicBatch.h"
|
|
|
|
namespace charcoal
|
|
{
|
|
namespace builtin
|
|
{
|
|
namespace basic
|
|
{
|
|
class Scene : public AutoPrerenderingScene, public Batched<Renderable, Batch>
|
|
{
|
|
public:
|
|
Scene(Application& application) : AutoPrerenderingScene(application) {}
|
|
virtual ~Scene() {}
|
|
|
|
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;
|
|
};
|
|
}
|
|
}
|
|
} |