summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolbump.h
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2007-03-02 21:25:50 +0000
committerSteven Bennetts <steve@lindenlab.com>2007-03-02 21:25:50 +0000
commit4dabd9c0472deb49573fdafef2fa413e59703f19 (patch)
tree06c680d6a2047e03838d6548bccd26c7baf9d652 /indra/newview/lldrawpoolbump.h
parentd4462963c6ba5db2088723bbedc7b60f1184c594 (diff)
merge release@58699 beta-1-14-0@58707 -> release
Diffstat (limited to 'indra/newview/lldrawpoolbump.h')
-rw-r--r--indra/newview/lldrawpoolbump.h62
1 files changed, 23 insertions, 39 deletions
diff --git a/indra/newview/lldrawpoolbump.h b/indra/newview/lldrawpoolbump.h
index b74acb4561..6376dd8d33 100644
--- a/indra/newview/lldrawpoolbump.h
+++ b/indra/newview/lldrawpoolbump.h
@@ -15,57 +15,41 @@
#include "lluuid.h"
class LLImageRaw;
+class LLSpatialGroup;
+class LLDrawInfo;
-class LLDrawPoolBump : public LLDrawPool
+class LLDrawPoolBump : public LLRenderPass
{
-protected:
- LLPointer<LLViewerImage> mTexturep; // The primary texture, not the bump texture
-
public:
- LLDrawPoolBump(LLViewerImage *texturep);
+ static U32 sVertexMask;
+
+ virtual U32 getVertexDataMask() { return sVertexMask; }
- /*virtual*/ LLDrawPool *instancePool();
+ LLDrawPoolBump();
/*virtual*/ void render(S32 pass = 0);
/*virtual*/ void beginRenderPass( S32 pass );
/*virtual*/ void endRenderPass( S32 pass );
/*virtual*/ S32 getNumPasses();
- /*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 dirtyTexture(const LLViewerImage *texturep);
- /*virtual*/ LLViewerImage *getTexture();
- /*virtual*/ LLViewerImage *getDebugTexture();
- /*virtual*/ LLColor3 getDebugColor() const; // For AGP debug display
- /*virtual*/ BOOL match(LLFace* last_face, LLFace* facep);
+ /*virtual*/ void pushBatch(LLDrawInfo& params, U32 mask, BOOL texture);
+
+ void renderBump(U32 type, U32 mask);
+ void renderBumpActive(U32 type, U32 mask);
+ void renderGroup(LLSpatialGroup* group, U32 type, U32 mask, BOOL texture);
+ void renderGroupBump(LLSpatialGroup* group, U32 type, U32 mask);
- virtual S32 getMaterialAttribIndex();
- static S32 numBumpPasses();
+ S32 numBumpPasses();
- static void beginPass0(LLDrawPool* pool);
- static S32 renderPass0(LLDrawPool* pool, face_array_t& face_list, const U32* index_array, LLViewerImage* tex);
- static void endPass0(LLDrawPool* pool);
-
- static void beginPass1();
- static S32 renderPass1(face_array_t& face_list, const U32* index_array, LLViewerImage* tex);
- static void endPass1();
-
- static void beginPass2();
- static S32 renderPass2(face_array_t& face_list, const U32* index_array, LLViewerImage* tex);
- static void endPass2();
-
- /*virtual*/ void enableShade();
- /*virtual*/ void disableShade();
- /*virtual*/ void setShade(F32 shade);
-
-protected:
- static LLImageGL* getBumpMap(const LLTextureEntry* te, LLViewerImage* tex);
-
-public:
- static S32 sBumpTex;
- static S32 sDiffTex;
- static S32 sEnvTex;
+ void beginShiny();
+ void renderShiny();
+ void endShiny();
+ void renderActive(U32 type, U32 mask, BOOL texture = TRUE);
+
+ void beginBump();
+ void renderBump();
+ void endBump();
+ BOOL bindBumpMap(LLDrawInfo& params);
};
enum EBumpEffect