void GLRenderer::drawObjects() { for(GameObjectsIter it = m_gameObjects.begin(); it != m_gameObjects.end(); ++it) { renderActor(*it); } }
void Camera::render(const Stage &stage) { std::list<Actor *> actors = stage.getAllActors(); libWrapper->startRendering(); for (std::list<Actor *>::iterator actor = actors.begin(); actor != actors.end(); actor++) { renderActor(*actor); } libWrapper->finishRendering(); }
void GLRenderer::drawForeground() { for(GameObjectsIter it = m_orthoObjects.begin(); it != m_orthoObjects.end(); ++it) { if((*it)->getDrawLayer() == Common::DL_FOREGROUND) { renderActor(*it); } } }