aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolbump.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lldrawpoolbump.h62
1 files changed, 23 insertions, 39 deletions
diff --git a/linden/indra/newview/lldrawpoolbump.h b/linden/indra/newview/lldrawpoolbump.h
index 4f181bc..bb8de40 100644
--- a/linden/indra/newview/lldrawpoolbump.h
+++ b/linden/indra/newview/lldrawpoolbump.h
@@ -34,57 +34,41 @@
34#include "lluuid.h" 34#include "lluuid.h"
35 35
36class LLImageRaw; 36class LLImageRaw;
37class LLSpatialGroup;
38class LLDrawInfo;
37 39
38class LLDrawPoolBump : public LLDrawPool 40class LLDrawPoolBump : public LLRenderPass
39{ 41{
40protected:
41 LLPointer<LLViewerImage> mTexturep; // The primary texture, not the bump texture
42
43public: 42public:
44 LLDrawPoolBump(LLViewerImage *texturep); 43 static U32 sVertexMask;
44
45 virtual U32 getVertexDataMask() { return sVertexMask; }
45 46
46 /*virtual*/ LLDrawPool *instancePool(); 47 LLDrawPoolBump();
47 48
48 /*virtual*/ void render(S32 pass = 0); 49 /*virtual*/ void render(S32 pass = 0);
49 /*virtual*/ void beginRenderPass( S32 pass ); 50 /*virtual*/ void beginRenderPass( S32 pass );
50 /*virtual*/ void endRenderPass( S32 pass ); 51 /*virtual*/ void endRenderPass( S32 pass );
51 /*virtual*/ S32 getNumPasses(); 52 /*virtual*/ S32 getNumPasses();
52 /*virtual*/ void renderFaceSelected(LLFace *facep, LLImageGL *image, const LLColor4 &color,
53 const S32 index_offset = 0, const S32 index_count = 0);
54 /*virtual*/ void prerender(); 53 /*virtual*/ void prerender();
55 /*virtual*/ void renderForSelect(); 54 /*virtual*/ void pushBatch(LLDrawInfo& params, U32 mask, BOOL texture);
56 /*virtual*/ void dirtyTexture(const LLViewerImage *texturep); 55
57 /*virtual*/ LLViewerImage *getTexture(); 56 void renderBump(U32 type, U32 mask);
58 /*virtual*/ LLViewerImage *getDebugTexture(); 57 void renderBumpActive(U32 type, U32 mask);
59 /*virtual*/ LLColor3 getDebugColor() const; // For AGP debug display 58 void renderGroup(LLSpatialGroup* group, U32 type, U32 mask, BOOL texture);
60 /*virtual*/ BOOL match(LLFace* last_face, LLFace* facep); 59 void renderGroupBump(LLSpatialGroup* group, U32 type, U32 mask);
61 60
62 virtual S32 getMaterialAttribIndex(); 61 S32 numBumpPasses();
63 static S32 numBumpPasses();
64 62
65 static void beginPass0(LLDrawPool* pool); 63 void beginShiny();
66 static S32 renderPass0(LLDrawPool* pool, face_array_t& face_list, const U32* index_array, LLViewerImage* tex); 64 void renderShiny();
67 static void endPass0(LLDrawPool* pool); 65 void endShiny();
68 66 void renderActive(U32 type, U32 mask, BOOL texture = TRUE);
69 static void beginPass1(); 67
70 static S32 renderPass1(face_array_t& face_list, const U32* index_array, LLViewerImage* tex); 68 void beginBump();
71 static void endPass1(); 69 void renderBump();
72 70 void endBump();
73 static void beginPass2(); 71 BOOL bindBumpMap(LLDrawInfo& params);
74 static S32 renderPass2(face_array_t& face_list, const U32* index_array, LLViewerImage* tex);
75 static void endPass2();
76
77 /*virtual*/ void enableShade();
78 /*virtual*/ void disableShade();
79 /*virtual*/ void setShade(F32 shade);
80
81protected:
82 static LLImageGL* getBumpMap(const LLTextureEntry* te, LLViewerImage* tex);
83
84public:
85 static S32 sBumpTex;
86 static S32 sDiffTex;
87 static S32 sEnvTex;
88}; 72};
89 73
90enum EBumpEffect 74enum EBumpEffect