charcoal/CharcoalBuiltin/BasicPipeline.cpp
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

24 lines
422 B
C++

#include "BasicPipeline.h"
#include "GLUtil.h"
namespace charcoal
{
namespace builtin
{
namespace basic
{
void Pipeline::render()
{
glutil::clear_screen();
m_shader_program.use();
glutil::uniform_matrix(0, get_camera()->get_world_to_view_matrix());
for (auto iter = m_batches.begin(); iter != m_batches.end(); ++iter)
{
Batch* batch = *iter;
batch->render();
}
}
}
}
}