d63f341d89
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.
20 lines
388 B
C++
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);
|
|
}
|
|
}
|
|
} |