示例#1
0
void GLRenderer::drawObjects()
{
	for(GameObjectsIter it = m_gameObjects.begin(); it != m_gameObjects.end(); ++it)
	{   
        renderActor(*it);
	}
}
示例#2
0
文件: camera.cpp 项目: vrndr/gamedev
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();
}
示例#3
0
void GLRenderer::drawForeground()
{
    for(GameObjectsIter it = m_orthoObjects.begin(); it != m_orthoObjects.end(); ++it)
    {
        if((*it)->getDrawLayer() == Common::DL_FOREGROUND)
        {
            renderActor(*it);
        }
    }
}