Changeset 540 for trunk/VUT/GtpVisibilityPreprocessor/src/Beam.h
- Timestamp:
- 01/15/06 04:23:51 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Beam.h
r532 r540 10 10 class KdNode; 11 11 class Intersectable; 12 class Mesh; 12 13 13 14 // the values need for rss tree update computed already inside the glrendererbuffer … … 74 75 vector<Plane3> mPlanes; 75 76 77 Mesh *mMesh; 76 78 79 /** Constructs a beam from a spatial and a directional box. 80 */ 77 81 void Construct(const AxisAlignedBox3 &box, 78 const AxisAlignedBox3 &dBox);82 const AxisAlignedBox3 &dBox); 79 83 80 void ComputeFrustum(float &left, float &right, 81 float &bottom, float &top, 82 float &near, float &far, 83 const AxisAlignedBox3 &sceneBBox) const; 84 /** Computes parameters for glFrustum. 85 */ 86 void ComputePerspectiveFrustum(float &left, float &right, 87 float &bottom, float &top, 88 float &near, float &far, 89 const AxisAlignedBox3 &sceneBBox) const; 90 91 /* Computes parameters for glOrtho. 92 */ 93 void ComputeOrthoFrustum(float &left, float &right, 94 float &bottom, float &top, 95 float &near, float &far, 96 const AxisAlignedBox3 &sceneBBox) const; 84 97 85 98 int ComputeIntersection(const AxisAlignedBox3 &box); … … 90 103 bool SetValid() { return mFlags |= VALID; } 91 104 92 Beam():mFlags(STORE_KD_NODES+STORE_OBJECTS), mKdNodes(0), mObjects(0), mViewCells(0) 105 Beam():mFlags(STORE_KD_NODES+STORE_OBJECTS), mKdNodes(0), mObjects(0), mViewCells(0), mMesh(NULL) 93 106 { 94 107 } 108 109 void CreateMesh(const float zfar); 95 110 }; 96 111
Note: See TracChangeset
for help on using the changeset viewer.