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
586 for(std::vector<Agent>::iterator agent = agentList.agents.begin(); agent != agentList.agents.end(); agent++) {586 for(std::vector<Agent>::iterator agent = agentList.agents.begin(); agent != agentList.agents.end(); agent++) {
587 if (agent->linkedData != NULL) {587 if (agent->linkedData != NULL) {
588 Head *agentHead = (Head *)agent->linkedData;588 Head *agentHead = (Head *)agent->linkedData;
589 589 glPushMatrix();
590 glm::vec3 pos = agentHead->getPos();590 glm::vec3 pos = agentHead->getPos();
591 glTranslatef(-pos.x, -pos.y, -pos.z);591 glTranslatef(-pos.x, -pos.y, -pos.z);
592 agentHead->render(0, &location[0]);592 agentHead->render(0, &location[0]);
593 glPopMatrix();
593 }594 }
594 }595 }
595 596

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