Changeset 71 for trunk/VUT/GtpVisibility/include/VisibilityInfo.h
- Timestamp:
- 04/29/05 18:32:50 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/include/VisibilityInfo.h
r65 r71 9 9 namespace GtpVisibility { 10 10 11 /** Class storing the visibility information of a scene node. 12 */ 13 class NodeInfo { 14 public: 15 NodeInfo(HierarchyNode *node, 16 const float v): 17 mNode(node), mVisibility(v) {} 11 /** Class storing the visibility information of a scene node. 12 */ 13 class NodeInfo 14 { 15 public: 16 NodeInfo(HierarchyNode *node,const float v): mNode(node), mVisibility(v) {} 18 17 19 18 protected: 20 19 /** pointer to the scene node */ 21 20 HierarchyNode *mNode; … … 24 23 total number of ratsterized pixels */ 25 24 float mVisibility; 26 25 }; 27 26 27 /** Class storing the visibility information of a mesh. 28 */ 29 class MeshInfo 30 { 31 public: 32 MeshInfo(Mesh *mesh, const float v): mMesh(mesh), mVisibility(v) {} 33 34 protected: 35 /** Pointer to the mesh. 36 */ 37 Mesh *mMesh; 38 /** Node visibility can either be a number of visible pixels or relative 39 number of visible pixels (if the hardware queries will provide the 40 total number of ratsterized pixels. 41 */ 42 float mVisibility; 43 }; 28 44 29 /** Class storing the visibility information of a mesh. 30 */ 31 class MeshInfo { 32 public: 33 MeshInfo(Mesh *mesh, 34 const float v): 35 mMesh(mesh), mVisibility(v) {} 36 37 protected: 38 /** pointer to the scene node */ 39 Mesh *mMesh; 40 /** node visibility can either be a number of visible pixels or relative 41 number of visible pixels (if the hardware queries will provide the 42 total number of ratsterized pixels */ 43 float mVisibility; 44 }; 45 46 // this define shall be replaced by template typedef 45 //TODO: this define shall be replaced by template typedef 47 46 #define InfoContainer std::vector 48 47 };
Note: See TracChangeset
for help on using the changeset viewer.