Changeset 2793 for GTP/trunk/App/Demos/Vis/FriendlyCulling
- Timestamp:
- 06/20/08 20:04:15 (17 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/chc_revisited.vcproj
r2792 r2793 464 464 </File> 465 465 <File 466 RelativePath=".\ Geometry.h"466 RelativePath=".\src\Geometry.h" 467 467 > 468 468 </File> -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/AxisAlignedBox3.cpp
r2782 r2793 243 243 { 244 244 cerr << "ERROR in AxisAlignedBox3::GetVertex N=" << N << "\n"; 245 exit(0);246 245 } 247 246 } -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BinaryLoader.cpp
r2792 r2793 68 68 { 69 69 trafo = new Matrix4x4(); 70 //*trafo = IdentityMatrix();71 70 str.read(reinterpret_cast<char *>(trafo->x), sizeof(Matrix4x4)); 72 //str.read(reinterpret_cast<char *>(trafo), sizeof(Matrix4x4));73 //cout << "m:\n" << *trafo<<endl;74 71 } 75 72 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Geometry.h
r2782 r2793 20 20 */ 21 21 Geometry(Vector3 *vertices, Vector3 *normals, float *texcoords, int numVertices, bool delData); 22 22 23 ~Geometry(); 23 24 /** Render the geometry … … 40 41 ////////// 41 42 42 unsigned int mVboId;43 44 43 Vector3 *mVertices; 45 44 … … 47 46 48 47 float *mTexCoords; 48 49 unsigned int mVboId; 49 50 50 51 int mNumVertices; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/RenderQueue.h
r2782 r2793 35 35 */ 36 36 void Clear(); 37 37 /** Returns the number entities currently in the queue. 38 */ 38 39 int GetSize() const { return (int)mEntities.size(); } 39 40 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneEntity.h
r2792 r2793 16 16 17 17 /** Class representing a scene entity. 18 A scene entity basic ly consists of geometry, transformation, and a material18 A scene entity basically consists of geometry, transformation, and a material 19 19 */ 20 20 class SceneEntity -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2792 r2793 34 34 /// the hierarchy 35 35 Bvh *bvh = NULL; 36 /// handles scene loading 37 BinaryLoader *loader = NULL; 36 38 /// the scene camera 37 39 Camera *camera = NULL; … … 50 52 int maxBatchSize = 50; 51 53 52 const float keyForwardMotion = 1.0f;54 const float keyForwardMotion = 0.5f; 53 55 const float keyRotation = 0.05f; 54 56 … … 131 133 int returnCode = 0; 132 134 133 //#ifdef _CRT_SET135 #ifdef _CRT_SET 134 136 135 137 //Now just call this function at the start of your program and if you're … … 142 144 _CrtSetReportMode(_CRT_ASSERT,_CRTDBG_MODE_FILE); 143 145 _CrtSetReportFile(_CRT_ASSERT,_CRTDBG_FILE_STDERR); 144 //#endif146 #endif 145 147 146 148 … … 170 172 MiddleMotion(0, 0); 171 173 172 BinaryLoader loader; 174 175 loader = new BinaryLoader(); 173 176 174 177 //const string filename("data/city/model/city.dem"); 175 178 const string filename = string(model_path + "city.dem"); 176 179 177 if (loader .Load(filename, sceneEntities))180 if (loader->Load(filename, sceneEntities)) 178 181 cout << "scene " << filename << " loaded" << endl; 179 182 else … … 183 186 exit(0); 184 187 } 185 CleanUp();186 exit(0);187 188 188 189 const string bvh_filename = string(model_path + "city.bvh"); … … 974 975 DEL_PTR(visualization); 975 976 DEL_PTR(camera); 977 978 DEL_PTR(loader); 976 979 } 977 980
Note: See TracChangeset
for help on using the changeset viewer.