Guest User

Untitled

a guest
Jan 11th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. for (auto go : m_goList)
  2. {
  3. if (go->type == GameObject::GO_PLAYER)
  4. {
  5. for (auto tile : go->m_pathToGoal)
  6. {
  7. modelStack.PushMatrix();
  8. modelStack.Translate(m_gridOffset + m_gridSize * tile->x, m_gridOffset + m_gridSize * tile->y, 0.5);
  9. modelStack.Scale(m_gridSize, m_gridSize, m_gridSize);
  10. RenderMesh(meshList[GEO_FULL], false);
  11. modelStack.PopMatrix();
  12. }
  13. break;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment