Changeset 159 for trunk/VUT/Ogre/include/OgreItemBufferQueryManager.h
- Timestamp:
- 07/06/05 17:52:44 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/include/OgreItemBufferQueryManager.h
r154 r159 7 7 8 8 /** 9 Class which implements the QueryManager for Ogre scene queries. 9 Class which implements the QueryManager for Ogre scene queries using an item buffer, 10 i.e., the objects are rendered with their id used as unique color code. After reading 11 back the frame buffer, the visibility information can be established for each object. 10 12 */ 11 13 class __declspec(dllexport) ItemBufferQueryManager: public PlatformQueryManager … … 13 15 public: 14 16 /** Constructor taking a hierarchy interface as an argument. This allows to operate 15 onm different hierarchy types, while reusing the implementation of the query methods. 17 on different hierarchy types, while reusing the implementation of the query methods. 18 @param renderPatches determines if the visibility of either patches or meshes is computed. 16 19 */ 17 ItemBufferQueryManager(PlatformHierarchyInterface *hierarchyInterface, Viewport *vp); 20 ItemBufferQueryManager(PlatformHierarchyInterface *hierarchyInterface, Viewport *vp, 21 const bool renderPatches); 18 22 19 23 void ComputeCameraVisibility(const Camera &camera, 20 24 InfoContainer<GtpVisibility::NodeInfo> *visibleNodes, 21 25 InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry, 26 InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, 22 27 bool relativeVisibility = false); 23 28 … … 25 30 26 31 protected: 27 void InitItemBuffer( InfoContainer<GtpVisibility::NodeInfo> *visibleNodes, 28 InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry); 32 /** Helper function used to initialise item buffer. 33 */ 34 void InitItemBuffer( 35 InfoContainer<GtpVisibility::NodeInfo> *visibleNodes, 36 InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry, 37 InfoContainer<GtpVisibility::PatchInfo> *visiblePatches); 29 38 39 /// if patches are used instead of meshes (only one at a time) 40 bool mRenderPatchesForItemBuffer; 30 41 }; 31 42
Note: See TracChangeset
for help on using the changeset viewer.