Changeset 3260 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Timestamp:
- 01/09/09 04:50:49 (15 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.cpp
r3259 r3260 76 76 77 77 78 bool BvhExporter::Export ToFile(const string &filename, Bvh *bvh)78 bool BvhExporter::Export(const string &filename, Bvh *bvh) 79 79 { 80 80 cout << "Info: Exporting to file '" << filename.c_str() << "'" << endl; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.h
r3259 r3260 1 #ifndef __ PVS_H2 #define __ PVS_H1 #ifndef __BVHEXPORTER_H 2 #define __BVHEXPORTER_H 3 3 4 4 #include "common.h" … … 16 16 public: 17 17 18 bool Export ToFile(const std::string &filename, Bvh *bvh);18 bool Export(const std::string &filename, Bvh *bvh); 19 19 20 20 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Geometry.h
r3259 r3260 62 62 63 63 protected: 64 64 65 /** Calculates the bounding box from the vertices. 65 66 */ -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.cpp
r3259 r3260 383 383 } 384 384 385 const bool delGeometry = true; 385 //const bool delGeometry = true; 386 const bool delGeometry = false; 386 387 return new Geometry(vertices, normals, texcoords, vertexCount, delGeometry, NULL);//tangents); 387 388 } -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneEntity.h
r3259 r3260 19 19 20 20 /** Class representing a scene entity. 21 A scene entity basically consists of geometry, transformation, and a material21 A scene entity basically consists of one or more shapes and a transformation. 22 22 */ 23 23 class SceneEntity … … 109 109 //-- static functions 110 110 111 /** If false, the highest ( most detailed) LOD level is used for all entities.111 /** If false, the highest (=most detailed) LOD level is used for all entities. 112 112 */ 113 113 static void SetUseLODs(bool useLODs); … … 119 119 */ 120 120 static void SetCurrentVisibleId(int id); 121 121 /** Returns the id that indicates a visible object. 122 */ 122 123 static int GetCurrentVisibleId(); 123 124 124 125 125 126 protected: 126 127 127 128 128 /** Internally updates current lod level. … … 159 159 /// if LODs are used for rendering: otherwise we always take the highest lod 160 160 static bool sUseLODs; 161 162 161 }; 163 162 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3259 r3260 61 61 #include "ViewCellsTree.h" 62 62 #include "PvsCollectionRenderer.h" 63 #include "ObjExporter.h" 64 #include "BvhExporter.h" 63 65 64 66 … … 644 646 645 647 648 ObjExporter().Export(model_path + "mycity.obj", bvh); 649 BvhExporter().Export(model_path + "mycity.bvh", bvh); 650 651 652 646 653 ////////////////// 647 654 //-- setup the skydome model
Note: See TracChangeset
for help on using the changeset viewer.