#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(); } } } } }