aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvowater.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llvowater.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/linden/indra/newview/llvowater.h b/linden/indra/newview/llvowater.h
index 9c33e74..37480b6 100644
--- a/linden/indra/newview/llvowater.h
+++ b/linden/indra/newview/llvowater.h
@@ -35,6 +35,7 @@
35 35
36#include "llviewerobject.h" 36#include "llviewerobject.h"
37#include "llviewerimage.h" 37#include "llviewerimage.h"
38#include "pipeline.h"
38#include "v2math.h" 39#include "v2math.h"
39 40
40const U32 N_RES = 16; //32 // number of subdivisions of wave tile 41const U32 N_RES = 16; //32 // number of subdivisions of wave tile
@@ -71,18 +72,29 @@ public:
71 /*virtual*/ void updateTextures(); 72 /*virtual*/ void updateTextures();
72 /*virtual*/ void setPixelAreaAndAngle(LLAgent &agent); // generate accurate apparent angle and area 73 /*virtual*/ void setPixelAreaAndAngle(LLAgent &agent); // generate accurate apparent angle and area
73 74
74 virtual U32 getPartitionType() const; 75 /*virtual*/ U32 getPartitionType() const;
75 76
76 /*virtual*/ BOOL isActive() const; // Whether this object needs to do an idleUpdate. 77 /*virtual*/ BOOL isActive() const; // Whether this object needs to do an idleUpdate.
77 78
78 void setUseTexture(const BOOL use_texture); 79 void setUseTexture(const BOOL use_texture);
79 void setIsEdgePatch(const BOOL edge_patch);
80 BOOL getUseTexture() const { return mUseTexture; } 80 BOOL getUseTexture() const { return mUseTexture; }
81 BOOL getIsEdgePatch() const { return mIsEdgePatch; } 81
82 bool isEdgeWater(void) const { return mPrimitiveCode == LL_VO_EDGE_WATER; }
82 83
83protected: 84protected:
84 BOOL mUseTexture; 85 BOOL mUseTexture;
85 BOOL mIsEdgePatch; 86 LLPipeline::LLRenderTypeMask mRenderType;
87};
88
89class LLVOVoidWater : public LLVOWater
90{
91public:
92 LLVOVoidWater(LLUUID const& id, LLPCode pcode, LLViewerRegion* regionp) : LLVOWater(id, pcode, regionp)
93 {
94 mRenderType = LLPipeline::RENDER_TYPE_VOIDWATER;
95 }
96
97 /*virtual*/ U32 getPartitionType() const;
86}; 98};
87 99
88#endif // LL_VOSURFACEPATCH_H 100#endif // LL_VOSURFACEPATCH_H