Ignore:
Timestamp:
10/09/06 22:38:07 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreMeshInstance.h

    r1028 r1593  
    1313{ 
    1414public: 
    15  
     15        /** The default constructor taking an entity into account. 
     16        */ 
    1617        OgreMeshInstance(Entity *ent); 
    17  
     18         
    1819        /** Returns 'mesh' associated with this instance.  
    1920        */ 
    20         Entity *GetMesh() const; 
     21        Entity *GetEntity() const; 
    2122 
    2223        /** See get. 
    2324        */ 
    24         void SetMesh(Entity *mesh); 
     25        void SetEntity(Entity *entity); 
    2526 
    2627 
     28        ///////////////////////////// 
    2729        //-- inherited functions from Intersectable 
    2830 
     
    5153protected: 
    5254         
    53         Entity *mMesh; 
     55        Entity *mEntity; 
    5456}; 
    5557 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreOcclusionCullingSceneManager.h

    r1276 r1593  
    1616namespace Ogre { 
    1717 
     18 
    1819/** 
    1920        This class extends the terrain scene manager, 
     
    126127        /** Loads / unloads pvs of the view cell to set the visibility in the scene. 
    127128        */ 
    128         void applyViewCellPvs(GtpVisibilityPreprocessor::ViewCell *vc, const bool load); 
     129        void ApplyViewCellPvs(GtpVisibilityPreprocessor::ViewCell *vc, const bool load); 
    129130 
    130131        /** updates pvs in current frame. 
    131132        */ 
    132         void updatePvs(Camera *cam); 
     133        void UpdatePvs(Camera *cam); 
    133134 
    134135        /** Sets all objects invisible. 
     
    136137        void SetObjectsVisible(const bool visible); 
    137138 
    138          
     139        /** Creates view cells geometry from the loaded view cells. 
     140        */ 
     141        void CreateViewCellsGeometry(); 
     142 
     143 
    139144        ////////////////////////////////////////// 
    140145 
    141146        /// the interface to the scene hierarchy. 
    142147        OctreeHierarchyInterface *mHierarchyInterface; 
     148 
    143149        /// manages all visibility options 
    144150        GtpVisibility::VisibilityManager *mVisibilityManager; 
     
    175181        /// the depth pass (no lighting, just filling the depth buffer) 
    176182        Pass *mDepthPass; 
     183        /// the pass for item buffer setting a color id 
    177184        Pass *mItemBufferPass; 
    178185 
    179         int mCurrentEntityId; 
    180186        /// flag for passes which should not be deleted from queue during first traversal 
    181187        int mLeavePassesInQueue; 
    182  
    183188 
    184189        /// if transparent object are considered for item buffer visibility 
     
    190195        bool mIsHierarchicalCulling; 
    191196 
     197        /// do we use preprocessed visibility 
    192198        bool mViewCellsLoaded; 
     199 
     200        /// the view cells manager handling the preprocesor stuff 
    193201        GtpVisibilityPreprocessor::ViewCellsManager *mViewCellsManager; 
    194202 
     
    210218        // normal terrain rendering 
    211219        bool mNormalExecution; 
     220 
     221        // helper variable to provide sequential numbering for sub-entities 
     222        int mCurrentEntityId; 
     223 
     224        typedef map<int, MovableObject *> MovableObjectsMap; 
     225 
     226        /// hash table for view cells geometry 
     227    MovableObjectsMap mViewCellsGeometry; 
    212228}; 
    213229 
    214 /// Factory for VisibilityOctreeSceneManager 
     230 
     231/** Factory for VisibilityOctreeSceneManager. 
     232*/ 
    215233class OcclusionCullingSceneManagerFactory : public SceneManagerFactory 
    216234{ 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreTypeConverter.h

    r863 r1593  
    55#include "AxisAlignedBox3.h" 
    66#include "Vector3.h" 
     7//#include "ManualObject.h" 
    78 
    89 
    910namespace Ogre { 
    10   
     11 
     12class SceneManager; 
     13 
    1114/** 
    1215        Class which converts preprocessor types to OGRE types 
     
    2730        */ 
    2831        static Vector3 ConvertToOgre(const GtpVisibilityPreprocessor::Vector3 &v); 
     32 
     33        /** The Ogre object will be created from the mesh. 
     34        */ 
     35        static ManualObject *ConvertToOgre(GtpVisibilityPreprocessor::Mesh *mesh, SceneManager *sceneMgr); 
    2936}; 
    3037 
Note: See TracChangeset for help on using the changeset viewer.