History

Added head _isMine variable, added hand position transmission!

Philip Rosedale committed 13 years ago

Commit 952cb2f1 parent 5729ecb5 files · +36 −13Browse files

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

Unified · Split

interface/src/main.cpp+4−4
@@ -102,7 +102,7 @@ Oscilloscope audioScope(256,200,true); · 101 unmodified lines
102102
103103 ViewFrustum viewFrustum; // current state of view frustum, perspective, orientation, etc.
104104
105−Head myAvatar; // The rendered avatar of oneself
105+Head myAvatar(true); // The rendered avatar of oneself
106106 Camera myCamera; // My view onto the world (sometimes on myself :)
107107 Camera viewFrustumOffsetCamera; // The camera we use to sometimes show the view frustum from an offset mode
108108
@@ -826,7 +826,7 @@ void display(void) · 717 unmodified lines
826826 glPushMatrix();
827827 glm::vec3 pos = agentHead->getBodyPosition();
828828 glTranslatef(-pos.x, -pos.y, -pos.z);
829− agentHead->render(0, 0);
829+ agentHead->render(0);
830830 glPopMatrix();
831831 }
832832 }
@@ -841,7 +841,7 @@ void display(void) · 8 unmodified lines
841841
842842
843843 //Render my own avatar
844− myAvatar.render( true, 1 );
844+ myAvatar.render(true);
845845 }
846846
847847 glPopMatrix();
@@ -1494,7 +1494,7 @@ void mouseoverFunc( int x, int y) · 646 unmodified lines
14941494
14951495 void attachNewHeadToAgent(Agent *newAgent) {
14961496 if (newAgent->getLinkedData() == NULL) {
1497− newAgent->setLinkedData(new Head());
1497+ newAgent->setLinkedData(new Head(false));
14981498 }
14991499 }
15001500