Ignore:
Timestamp:
01/09/09 04:50:49 (15 years ago)
Author:
mattausch
Message:
 
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  
    7676 
    7777 
    78 bool BvhExporter::ExportToFile(const string &filename, Bvh *bvh) 
     78bool BvhExporter::Export(const string &filename, Bvh *bvh) 
    7979{ 
    8080         cout << "Info: Exporting to file '" << filename.c_str() << "'" << endl; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.h

    r3259 r3260  
    1 #ifndef __PVS_H 
    2 #define __PVS_H 
     1#ifndef __BVHEXPORTER_H 
     2#define __BVHEXPORTER_H 
    33 
    44#include "common.h" 
     
    1616public: 
    1717 
    18         bool ExportToFile(const std::string &filename, Bvh *bvh); 
     18        bool Export(const std::string &filename, Bvh *bvh); 
    1919 
    2020 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Geometry.h

    r3259 r3260  
    6262 
    6363protected: 
     64 
    6465        /** Calculates the bounding box from the vertices. 
    6566        */ 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.cpp

    r3259 r3260  
    383383        } 
    384384 
    385         const bool delGeometry = true; 
     385        //const bool delGeometry = true; 
     386        const bool delGeometry = false; 
    386387        return new Geometry(vertices, normals, texcoords, vertexCount, delGeometry, NULL);//tangents); 
    387388} 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneEntity.h

    r3259 r3260  
    1919 
    2020/** Class representing a scene entity. 
    21     A scene entity basically consists of geometry, transformation, and a material 
     21    A scene entity basically consists of one or more shapes and a transformation. 
    2222*/ 
    2323class SceneEntity 
     
    109109        //-- static functions 
    110110 
    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. 
    112112        */ 
    113113        static void SetUseLODs(bool useLODs); 
     
    119119        */ 
    120120        static void SetCurrentVisibleId(int id); 
    121  
     121        /** Returns the id that indicates a visible object. 
     122        */ 
    122123        static int GetCurrentVisibleId(); 
    123124 
    124125 
    125126protected: 
    126  
    127127 
    128128        /** Internally updates current lod level. 
     
    159159        /// if LODs are used for rendering: otherwise we always take the highest lod 
    160160        static bool sUseLODs; 
    161  
    162161}; 
    163162 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3259 r3260  
    6161#include "ViewCellsTree.h" 
    6262#include "PvsCollectionRenderer.h" 
     63#include "ObjExporter.h" 
     64#include "BvhExporter.h" 
    6365 
    6466 
     
    644646 
    645647 
     648        ObjExporter().Export(model_path + "mycity.obj", bvh); 
     649        BvhExporter().Export(model_path + "mycity.bvh", bvh); 
     650 
     651 
     652 
    646653        ////////////////// 
    647654        //-- setup the skydome model 
Note: See TracChangeset for help on using the changeset viewer.