Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3760 in orxonox.OLD for orxonox/branches/shadows/src/shadow.cc


Ignore:
Timestamp:
Apr 8, 2005, 9:17:04 AM (19 years ago)
Author:
dave
Message:

branches/shadows: chaos, aber kommt der loesung naeher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/shadows/src/shadow.cc

    r3737 r3760  
    8181    glTexImage2D(GL_TEXTURE_2D,0,GL_RGB,SIZE,SIZE,0,GL_RGB,GL_UNSIGNED_BYTE,NULL);
    8282
    83     this->ground_id=glGenLists(1);
    84     glNewList(this->ground_id,GL_COMPILE);
    85    
    86     setGround();
    87    
    88     glEndList();
     83   
    8984   
    9085    this->player_id=glGenLists(1);
     
    9994
    10095}
    101 
     96void Shadow::createGroundList(){
     97     this->ground_id=glGenLists(1);
     98     glNewList(this->ground_id,GL_COMPILE);
     99   
     100     setGround();
     101   
     102     glEndList();
     103
     104}
    102105
    103106void Shadow::createShadow()
     
    260263    //glClearColor(0,0,0,0);
    261264    //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();
    267270   
    268271   
Note: See TracChangeset for help on using the changeset viewer.