charcoal/OpenGLEngine/Pipeline.h
elipzer 0c767e9441 Added Pipelines!
Greatly streamline the concept of rendering and abstract rendering
so that scenes can render from many different pipelines if they
want to!.
2018-10-14 15:06:51 -04:00

18 lines
333 B
C++

#pragma once
#include <vector>
namespace charcoal
{
template <typename ShaderProgramType, typename BatchType>
class Pipeline
{
public:
void add_batch(BatchType* batch) { m_batches.emplace_back(batch); }
virtual void render() = 0;
protected:
ShaderProgramType m_shader_program;
std::vector<BatchType*> m_batches;
};
}