Ignore:
Timestamp:
02/17/07 22:48:12 (17 years ago)
Author:
mattausch
Message:

worded on obj loading in Ogre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParserXerces.h

    r2116 r2123  
    88#include "Mesh.h" 
    99#include "BoundingBoxConverter.h" 
    10  
     10#include "PerfTimer.h" 
     11#include <hash_map> 
    1112 
    1213namespace GtpVisibilityPreprocessor { 
     
    3031class BspNode; 
    3132 
     33/* 
     34struct pvs_hash_compare 
     35{ 
     36   enum 
     37   { 
     38      bucket_size = 4, 
     39      min_buckets = 8 
     40   }; 
     41 
     42   size_t operator()(Intersectable *a) const 
     43   { 
     44           size_t h = (size_t)(a->GetId());// % 2000; 
     45           return h; 
     46   } 
     47 
     48   bool operator()(int a, int b) const 
     49   { 
     50      return a < b; 
     51   } 
     52};*/ 
     53 
     54 
     55typedef stdext::hash_map<int, Intersectable *> pvs_hash; 
     56 
    3257 
    3358class ViewCellsParseHandlers: public HandlerBase 
     
    132157  int nObjects; 
    133158   
    134    
     159  PerfTimer mBoxTimer; 
     160  PerfTimer mPvsTimer; 
     161  PerfTimer mObjectTimer; 
     162 
     163  pvs_hash mHashPvs; 
     164 
    135165  //////////////////////////////// 
    136166 
    137167 
    138168  // Handlers for X3D 
    139    
     169 
     170  void CreateHashVector(); 
     171 
    140172  void StartBspLeaf(AttributeList& attributes); 
    141173  void StartBspInterior(AttributeList& attributes); 
Note: See TracChangeset for help on using the changeset viewer.