Changeset 2773 in orxonox.OLD for orxonox/branches
- Timestamp:
- Nov 10, 2004, 12:03:51 AM (20 years ago)
- Location:
- orxonox/branches/importer/importer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/importer/importer/array.h
r2760 r2773 1 #include "windowHandler.h" 2 1 //#include "windowHandler.h" 2 #include <GL/gl.h> 3 #include <GL/glu.h> 4 #include <fstream.h> 3 5 class Array 4 6 { -
orxonox/branches/importer/importer/framework.cc
r2768 r2773 41 41 42 42 43 obj = new Object ( );43 obj = new Object (argv[1]); 44 44 45 45 // Build the font from a TGA image font.tga in the data directory -
orxonox/branches/importer/importer/object.cc
r2769 r2773 6 6 7 7 importFile ("reaphigh.obj"); 8 9 8 10 11 glColor3f(1.0,0,0); 12 /* glBegin(GL_QUADS); 13 printf ("face-count %i\n", faces->getCount()); 14 for (int i=0; i<=faces->getCount();++i) 15 {16 glArrayElement((int)faces->getArray()[i] -1); 17 }18 glEnd();*/ 9 finalize(); 10 } 11 12 Object::Object(char* fileName) 13 { 14 initialize(); 15 16 importFile (fileName); 17 19 18 finalize(); 20 19 } … … 50 49 { 51 50 glCallList (listNumber); 52 53 51 } 54 52 … … 175 173 glEnd(); 176 174 faceMode = 1; 177 printf ("%f\n", (float)rand()/2000000000.0);178 175 glColor3f((float)rand()/2000000000.0,(float)rand()/2000000000.0,(float)rand()/2000000000.0); 179 176 } -
orxonox/branches/importer/importer/object.h
r2769 r2773 1 #include "windowHandler.h" 1 #ifndef OBJECT_H 2 #define OBJECT_H 3 4 #include <GL/gl.h> 5 #include <GL/glu.h> 6 2 7 #include "array.h" 3 8 #include <fstream.h> … … 38 43 bool addGLElement (char* elementString); 39 44 }; 45 46 #endif
Note: See TracChangeset
for help on using the changeset viewer.