Changeset 1593 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
- Timestamp:
- 10/09/06 22:38:07 (18 years ago)
- 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 13 13 { 14 14 public: 15 15 /** The default constructor taking an entity into account. 16 */ 16 17 OgreMeshInstance(Entity *ent); 17 18 18 19 /** Returns 'mesh' associated with this instance. 19 20 */ 20 Entity *Get Mesh() const;21 Entity *GetEntity() const; 21 22 22 23 /** See get. 23 24 */ 24 void Set Mesh(Entity *mesh);25 void SetEntity(Entity *entity); 25 26 26 27 28 ///////////////////////////// 27 29 //-- inherited functions from Intersectable 28 30 … … 51 53 protected: 52 54 53 Entity *m Mesh;55 Entity *mEntity; 54 56 }; 55 57 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreOcclusionCullingSceneManager.h
r1276 r1593 16 16 namespace Ogre { 17 17 18 18 19 /** 19 20 This class extends the terrain scene manager, … … 126 127 /** Loads / unloads pvs of the view cell to set the visibility in the scene. 127 128 */ 128 void applyViewCellPvs(GtpVisibilityPreprocessor::ViewCell *vc, const bool load);129 void ApplyViewCellPvs(GtpVisibilityPreprocessor::ViewCell *vc, const bool load); 129 130 130 131 /** updates pvs in current frame. 131 132 */ 132 void updatePvs(Camera *cam);133 void UpdatePvs(Camera *cam); 133 134 134 135 /** Sets all objects invisible. … … 136 137 void SetObjectsVisible(const bool visible); 137 138 138 139 /** Creates view cells geometry from the loaded view cells. 140 */ 141 void CreateViewCellsGeometry(); 142 143 139 144 ////////////////////////////////////////// 140 145 141 146 /// the interface to the scene hierarchy. 142 147 OctreeHierarchyInterface *mHierarchyInterface; 148 143 149 /// manages all visibility options 144 150 GtpVisibility::VisibilityManager *mVisibilityManager; … … 175 181 /// the depth pass (no lighting, just filling the depth buffer) 176 182 Pass *mDepthPass; 183 /// the pass for item buffer setting a color id 177 184 Pass *mItemBufferPass; 178 185 179 int mCurrentEntityId;180 186 /// flag for passes which should not be deleted from queue during first traversal 181 187 int mLeavePassesInQueue; 182 183 188 184 189 /// if transparent object are considered for item buffer visibility … … 190 195 bool mIsHierarchicalCulling; 191 196 197 /// do we use preprocessed visibility 192 198 bool mViewCellsLoaded; 199 200 /// the view cells manager handling the preprocesor stuff 193 201 GtpVisibilityPreprocessor::ViewCellsManager *mViewCellsManager; 194 202 … … 210 218 // normal terrain rendering 211 219 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; 212 228 }; 213 229 214 /// Factory for VisibilityOctreeSceneManager 230 231 /** Factory for VisibilityOctreeSceneManager. 232 */ 215 233 class OcclusionCullingSceneManagerFactory : public SceneManagerFactory 216 234 { -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreTypeConverter.h
r863 r1593 5 5 #include "AxisAlignedBox3.h" 6 6 #include "Vector3.h" 7 //#include "ManualObject.h" 7 8 8 9 9 10 namespace Ogre { 10 11 12 class SceneManager; 13 11 14 /** 12 15 Class which converts preprocessor types to OGRE types … … 27 30 */ 28 31 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); 29 36 }; 30 37
Note: See TracChangeset
for help on using the changeset viewer.