summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolalpha.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
committerJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
commit420b91db29485df39fd6e724e782c449158811cb (patch)
treeb471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/lldrawpoolalpha.h
Print done when done.
Diffstat (limited to 'indra/newview/lldrawpoolalpha.h')
-rw-r--r--indra/newview/lldrawpoolalpha.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolalpha.h b/indra/newview/lldrawpoolalpha.h
new file mode 100644
index 0000000000..6f24959e50
--- /dev/null
+++ b/indra/newview/lldrawpoolalpha.h
@@ -0,0 +1,64 @@
+/**
+ * @file lldrawpoolalpha.h
+ * @brief LLDrawPoolAlpha class definition
+ *
+ * Copyright (c) 2002-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+#ifndef LL_LLDRAWPOOLALPHA_H
+#define LL_LLDRAWPOOLALPHA_H
+
+#include "lldrawpool.h"
+#include "llviewerimage.h"
+#include "llframetimer.h"
+
+class LLFace;
+class LLColor4;
+
+class LLDrawPoolAlpha: public LLDrawPool
+{
+public:
+ LLDrawPoolAlpha();
+ /*virtual*/ ~LLDrawPoolAlpha();
+
+ /*virtual*/ LLDrawPool *instancePool();
+
+ /*virtual*/ void beginRenderPass(S32 pass = 0);
+ /*virtual*/ void render(S32 pass = 0);
+ /*virtual*/ void renderFaceSelected(LLFace *facep, LLImageGL *image, const LLColor4 &color,
+ const S32 index_offset = 0, const S32 index_count = 0);
+ /*virtual*/ void prerender();
+ /*virtual*/ void renderForSelect();
+
+ /*virtual*/ void enqueue(LLFace *face);
+ /*virtual*/ BOOL removeFace(LLFace *face);
+ /*virtual*/ void resetDrawOrders();
+
+ /*virtual*/ void enableShade();
+ /*virtual*/ void disableShade();
+ /*virtual*/ void setShade(F32 shade);
+
+
+ virtual S32 getMaterialAttribIndex();
+
+ BOOL mRebuiltLastFrame;
+ enum
+ {
+ NUM_ALPHA_BINS = 1024
+ };
+
+ /*virtual*/ BOOL verify() const;
+ /*virtual*/ LLViewerImage *getDebugTexture();
+ /*virtual*/ LLColor3 getDebugColor() const; // For AGP debug display
+
+ static BOOL sShowDebugAlpha;
+protected:
+ F32 mMinDistance;
+ F32 mMaxDistance;
+ F32 mInvBinSize;
+
+ LLDynamicArray<LLFace*> mDistanceBins[NUM_ALPHA_BINS];
+};
+
+#endif // LL_LLDRAWPOOLALPHA_H