diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/lldrawpoolbump.h | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lldrawpoolbump.h | 62 |
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 | ||
36 | class LLImageRaw; | 36 | class LLImageRaw; |
37 | class LLSpatialGroup; | ||
38 | class LLDrawInfo; | ||
37 | 39 | ||
38 | class LLDrawPoolBump : public LLDrawPool | 40 | class LLDrawPoolBump : public LLRenderPass |
39 | { | 41 | { |
40 | protected: | ||
41 | LLPointer<LLViewerImage> mTexturep; // The primary texture, not the bump texture | ||
42 | |||
43 | public: | 42 | public: |
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 | |||
81 | protected: | ||
82 | static LLImageGL* getBumpMap(const LLTextureEntry* te, LLViewerImage* tex); | ||
83 | |||
84 | public: | ||
85 | static S32 sBumpTex; | ||
86 | static S32 sDiffTex; | ||
87 | static S32 sEnvTex; | ||
88 | }; | 72 | }; |
89 | 73 | ||
90 | enum EBumpEffect | 74 | enum EBumpEffect |