History

push and pop when drawing agent heads

Stephen Birarda committed 13 years ago

Commit e7fc9971 parent 5d8ece71 file · +2 −1Browse files

Showing the changes to interface/src/main.cpp (1 of 1 file). Show all

Unified · Split

interface/src/main.cpp+2−1
@@ -586,10 +586,11 @@ void display(void) · 585 unmodified lines
586586 for(std::vector<Agent>::iterator agent = agentList.agents.begin(); agent != agentList.agents.end(); agent++) {
587587 if (agent->linkedData != NULL) {
588588 Head *agentHead = (Head *)agent->linkedData;
589−
589+ glPushMatrix();
590590 glm::vec3 pos = agentHead->getPos();
591591 glTranslatef(-pos.x, -pos.y, -pos.z);
592592 agentHead->render(0, &location[0]);
593+ glPopMatrix();
593594 }
594595 }
595596

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t