Changeset 3526 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 13, 2005, 8:00:25 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/environment.cc
r3484 r3526 50 50 { 51 51 glMatrixMode(GL_MODELVIEW); 52 gl LoadIdentity();52 glPushMatrix(); 53 53 float matrix[4][4]; 54 54 … … 59 59 60 60 this->model->draw(); 61 62 glPopMatrix(); 61 63 } 62 64 -
orxonox/trunk/src/world_entities/player.cc
r3484 r3526 29 29 Player::Player(bool isFree) : WorldEntity(isFree) 30 30 { 31 32 31 this->model = new OBJModel("../data/models/reaplow.obj"); 33 /*34 objectList = glGenLists(1);35 glNewList (objectList, GL_COMPILE);36 37 glBegin(GL_TRIANGLES);38 glColor3f(1,1,1);39 glVertex3f(0,0,0.5);40 glVertex3f(-0.5,0,-1);41 glVertex3f(0.5,0,-1);42 43 glVertex3f(0,0,0.5);44 glVertex3f(0,0.5,-1);45 glVertex3f(0,-0.5,-1);46 glEnd();47 48 glBegin(GL_QUADS);49 glColor3f(0,0,1);50 glVertex3f(0.5,0.5,-1);51 glVertex3f(0.5,-0.5,-1);52 glVertex3f(-0.5,-0.5,-1);53 glVertex3f(-0.5,0.5,-1);54 glEnd();55 56 glEndList ();57 */58 32 } 59 33 … … 137 111 { 138 112 glMatrixMode(GL_MODELVIEW); 139 gl LoadIdentity();113 glPushMatrix(); 140 114 float matrix[4][4]; 141 115 … … 148 122 glMultMatrixf((float*)matrix); 149 123 150 glMatrixMode(GL_MODELVIEW);151 124 this->model->draw(); 152 // glCallList(objectList);125 glPopMatrix(); 153 126 } 154 127 -
orxonox/trunk/src/world_entities/primitive.cc
r3524 r3526 55 55 { 56 56 glMatrixMode(GL_MODELVIEW); 57 gl LoadIdentity();57 glPushMatrix(); 58 58 float matrix[4][4]; 59 59 … … 64 64 65 65 this->model->draw(); 66 glPopMatrix(); 66 67 } 67 68 -
orxonox/trunk/src/world_entities/skysphere.cc
r3507 r3526 99 99 { 100 100 glEnable(GL_TEXTURE_2D); 101 skyMaterial->select();102 101 glPushMatrix(); 102 glMatrixMode(GL_MODELVIEW); 103 103 glTranslatef(this->absCoordinate.x, 104 104 this->absCoordinate.y, … … 109 109 //glRotatef(-250.0f, 0.0, 1.0f, 0.0f); 110 110 111 skyMaterial->select(); 111 112 gluSphere(sphereObj, sphereRadius, 20, 20); 112 113 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.