Changeset 2794 in orxonox.OLD for orxonox/branches/importer/importer/framework.cc
- Timestamp:
- Nov 10, 2004, 10:47:40 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/importer/importer/framework.cc
r2780 r2794 15 15 glLoadIdentity(); // Reset the view 16 16 17 glMatrixMode(GL_PROJECTION); // Select The Projection Matrix17 glMatrixMode(GL_PROJECTION); 18 18 glLoadIdentity(); 19 19 gluPerspective(45.0f,500/375,0.1f,100.0f); … … 21 21 whiteLight[1] = .5+.5*sin(rotator*10); 22 22 whiteLight[2] = .5+.5*sin(rotator*10); 23 24 GLfloat lightPosition[] = {10.0*sin(rotator*10), 10, 19.0, 0.0}; 25 glLightfv(GL_LIGHT0, GL_POSITION, lightPosition); 26 23 27 glLightfv(GL_LIGHT0, GL_DIFFUSE, whiteLight); 24 28 obj->draw(); … … 46 50 obj = new Object (argv[1]); 47 51 48 GLfloat lightPosition[] = {10.0, 5.0, 19.0, 0.0};49 52 GLfloat lmodelAmbient[] = {.1, .1, .1, 1.0}; 50 glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);51 53 glLightfv(GL_LIGHT0, GL_DIFFUSE, whiteLight); 52 54 glLightfv(GL_LIGHT0, GL_SPECULAR, whiteLight);
Note: See TracChangeset
for help on using the changeset viewer.