bb4592ed63
Changing the mechanic of the renderer to support pipelines. One scene could have multiple pipelines. The pipelines allow for one shader, one camera, and multiple batches.
41 lines
721 B
C++
41 lines
721 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 "BasicBatch.h"
|
|
#include "Batched.h"
|
|
#include "WithCamera.h"
|
|
|
|
namespace charcoal
|
|
{
|
|
namespace builtin
|
|
{
|
|
namespace basic
|
|
{
|
|
class Scene : public AutoPrerenderingScene, public Batched<Renderable, Batch>, public WithCamera
|
|
{
|
|
public:
|
|
Scene(Application& application) : AutoPrerenderingScene(application) {}
|
|
|
|
void init() override;
|
|
|
|
void use() override;
|
|
|
|
void unuse() override;
|
|
|
|
void render() override;
|
|
|
|
private:
|
|
ShaderProgram m_shader_program;
|
|
};
|
|
}
|
|
}
|
|
} |