- Timestamp:
- 09/21/08 23:42:44 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.cpp
r2957 r2961 42 42 if (!hasTrafo) 43 43 { 44 // identity 44 45 trafo = new Transform3(); 45 46 } … … 72 73 str.read(reinterpret_cast<char *>(&numShapes), sizeof(int)); 73 74 75 74 76 LODLevel *lodLevel = new LODLevel(dist); 75 77 … … 102 104 int numTextures; 103 105 str.read(reinterpret_cast<char *>(&numTextures), sizeof(int)); 104 106 105 107 for (int i = 0; i < numTextures; ++ i) 106 108 { 107 // texture109 // load texture name 108 110 int texnameSize; 109 110 111 str.read(reinterpret_cast<char *>(&texnameSize), sizeof(int)); 111 112 … … 201 202 202 203 // end of file reached 203 if (str.eof()) 204 return NULL; 204 if (str.eof()) return NULL; 205 205 206 206 //cout << "vertexcount: " << vertexCount << endl; … … 218 218 { 219 219 texcoords = new float[texCoordCount * 2]; 220 str.read(reinterpret_cast<char *>(texcoords), sizeof(float) * vertexCount * 2);220 str.read(reinterpret_cast<char *>(texcoords), sizeof(float) * texCoordCount * 2); 221 221 } 222 222 else … … 225 225 } 226 226 227 #if 0228 // construct normals229 for (int i = 0; i < vertexCount; i += 3)230 {231 Triangle3 tri(vertices[i], vertices[i + 1], vertices[i + 2]);232 233 normals[i] = tri.GetNormal();234 normals[i+1] = tri.GetNormal();235 normals[i+2] = tri.GetNormal();236 }237 #endif238 227 239 228 return new Geometry(vertices, normals, texcoords, vertexCount, true);
Note: See TracChangeset
for help on using the changeset viewer.