Changeset 3760 in orxonox.OLD for orxonox/branches/shadows/src/shadow.cc
- Timestamp:
- Apr 8, 2005, 9:17:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/shadows/src/shadow.cc
r3737 r3760 81 81 glTexImage2D(GL_TEXTURE_2D,0,GL_RGB,SIZE,SIZE,0,GL_RGB,GL_UNSIGNED_BYTE,NULL); 82 82 83 this->ground_id=glGenLists(1); 84 glNewList(this->ground_id,GL_COMPILE); 85 86 setGround(); 87 88 glEndList(); 83 89 84 90 85 this->player_id=glGenLists(1); … … 99 94 100 95 } 101 96 void Shadow::createGroundList(){ 97 this->ground_id=glGenLists(1); 98 glNewList(this->ground_id,GL_COMPILE); 99 100 setGround(); 101 102 glEndList(); 103 104 } 102 105 103 106 void Shadow::createShadow() … … 260 263 //glClearColor(0,0,0,0); 261 264 //glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 262 glMatrixMode(GL_PROJECTION);263 glLoadIdentity();264 gluPerspective(45,4.0/3.0,.5,100);265 glMatrixMode(GL_MODELVIEW);266 glLoadIdentity();265 //glMatrixMode(GL_PROJECTION); 266 //glLoadIdentity(); 267 //gluPerspective(45,4.0/3.0,.5,100); 268 //glMatrixMode(GL_MODELVIEW); 269 //glLoadIdentity(); 267 270 268 271
Note: See TracChangeset
for help on using the changeset viewer.