Changeset 2769 in orxonox.OLD for orxonox/branches
- Timestamp:
- Nov 9, 2004, 5:43:09 PM (20 years ago)
- Location:
- orxonox/branches/importer/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/importer/importer/object.cc
r2768 r2769 78 78 } 79 79 80 else if (!strncmp(Buffer, "usemtl", 6)) 81 { 82 readUseMtl (Buffer+7); 83 } 80 84 // case vt 81 85 else if (!strncmp(Buffer, "vt ", 2)) … … 146 150 } 147 151 faceMode = 4; 148 printf ("quad: %s, %s, %s, %s\n", subbuffer1, subbuffer2, subbuffer3, subbuffer4);152 // printf ("quad: %s, %s, %s, %s\n", subbuffer1, subbuffer2, subbuffer3, subbuffer4); 149 153 addGLElement(subbuffer1); 150 154 addGLElement(subbuffer2); … … 160 164 pointTo = strstr (elementString, "/"); 161 165 pointTo[0] = '\0'; 162 printf ("f: %s\n", elementString);166 // printf ("f: %s\n", elementString); 163 167 glArrayElement(atoi(elementString)-1); 164 168 165 169 } 170 171 172 bool Object::readUseMtl (char* matString) 173 { 174 if (faceMode != -1) 175 glEnd(); 176 faceMode = 1; 177 printf ("%f\n", (float)rand()/2000000000.0); 178 glColor3f((float)rand()/2000000000.0,(float)rand()/2000000000.0,(float)rand()/2000000000.0); 179 } -
orxonox/branches/importer/importer/object.h
r2768 r2769 34 34 bool readFace (char* faceString); 35 35 bool readVT (char* vtString); 36 bool readUseMtl (char* matString); 36 37 37 38 bool addGLElement (char* elementString);
Note: See TracChangeset
for help on using the changeset viewer.