Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (auto go : m_goList)
- {
- if (go->type == GameObject::GO_PLAYER)
- {
- for (auto tile : go->m_pathToGoal)
- {
- modelStack.PushMatrix();
- modelStack.Translate(m_gridOffset + m_gridSize * tile->x, m_gridOffset + m_gridSize * tile->y, 0.5);
- modelStack.Scale(m_gridSize, m_gridSize, m_gridSize);
- RenderMesh(meshList[GEO_FULL], false);
- modelStack.PopMatrix();
- }
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment