charcoal/OpenGLEngine/AutoPrerenderingScene.cpp
elipzer d63f341d89 More builtin abstraction
Got the builtin basicscene to render. For some reason, it seems
like the model matrices are not working correctly. The two shapes
that are supposed to be rendering on screen are not moving around
as they should be.
2018-09-13 19:21:34 -04:00

20 lines
388 B
C++

#include "AutoPrerenderingScene.h"
namespace charcoal
{
namespace builtin
{
void AutoPrerenderingScene::prerender()
{
for (auto iter = m_prerenderables.begin(); iter != m_prerenderables.end(); ++iter)
{
(*iter)->prerender();
}
}
void AutoPrerenderingScene::add_prerenderable(Prerenderable* prerenderable)
{
m_prerenderables.push_back(prerenderable);
}
}
}