diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/lldrawpoolbump.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lldrawpoolbump.h | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/linden/indra/newview/lldrawpoolbump.h b/linden/indra/newview/lldrawpoolbump.h index 665529e..246f5f3 100644 --- a/linden/indra/newview/lldrawpoolbump.h +++ b/linden/indra/newview/lldrawpoolbump.h | |||
@@ -43,31 +43,36 @@ class LLDrawInfo; | |||
43 | 43 | ||
44 | class LLDrawPoolBump : public LLRenderPass | 44 | class LLDrawPoolBump : public LLRenderPass |
45 | { | 45 | { |
46 | protected : | ||
47 | LLDrawPoolBump(const U32 type):LLRenderPass(type) { mShiny = FALSE; } | ||
46 | public: | 48 | public: |
47 | static U32 sVertexMask; | 49 | static U32 sVertexMask; |
50 | BOOL mShiny; | ||
48 | 51 | ||
49 | virtual U32 getVertexDataMask() { return sVertexMask; } | 52 | virtual U32 getVertexDataMask() { return sVertexMask; } |
50 | 53 | ||
51 | LLDrawPoolBump(); | 54 | LLDrawPoolBump(); |
52 | 55 | ||
53 | virtual void render(S32 pass = 0); | 56 | virtual void render(S32 pass = 0); |
54 | /*virtual*/ void beginRenderPass( S32 pass ); | 57 | virtual void beginRenderPass( S32 pass ); |
55 | /*virtual*/ void endRenderPass( S32 pass ); | 58 | virtual void endRenderPass( S32 pass ); |
56 | /*virtual*/ S32 getNumPasses(); | 59 | virtual S32 getNumPasses(); |
57 | /*virtual*/ void prerender(); | 60 | /*virtual*/ void prerender(); |
58 | /*virtual*/ void pushBatch(LLDrawInfo& params, U32 mask, BOOL texture); | 61 | /*virtual*/ void pushBatch(LLDrawInfo& params, U32 mask, BOOL texture); |
59 | 62 | ||
60 | void renderBump(U32 type, U32 mask); | 63 | void renderBump(U32 type, U32 mask); |
61 | void renderBumpActive(U32 type, U32 mask); | ||
62 | void renderGroup(LLSpatialGroup* group, U32 type, U32 mask, BOOL texture); | 64 | void renderGroup(LLSpatialGroup* group, U32 type, U32 mask, BOOL texture); |
63 | void renderGroupBump(LLSpatialGroup* group, U32 type, U32 mask); | 65 | void renderGroupBump(LLSpatialGroup* group, U32 type, U32 mask); |
64 | 66 | ||
65 | S32 numBumpPasses(); | 67 | S32 numBumpPasses(); |
66 | 68 | ||
67 | void beginShiny(); | 69 | void beginShiny(bool invisible = false); |
68 | void renderShiny(); | 70 | void renderShiny(bool invisible = false); |
69 | void endShiny(); | 71 | void endShiny(bool invisible = false); |
70 | void renderActive(U32 type, U32 mask, BOOL texture = TRUE); | 72 | |
73 | void beginFullbrightShiny(); | ||
74 | void renderFullbrightShiny(); | ||
75 | void endFullbrightShiny(); | ||
71 | 76 | ||
72 | void beginBump(); | 77 | void beginBump(); |
73 | void renderBump(); | 78 | void renderBump(); |
@@ -143,6 +148,25 @@ private: | |||
143 | 148 | ||
144 | extern LLBumpImageList gBumpImageList; | 149 | extern LLBumpImageList gBumpImageList; |
145 | 150 | ||
151 | class LLDrawPoolInvisible : public LLDrawPoolBump | ||
152 | { | ||
153 | public: | ||
154 | LLDrawPoolInvisible() : LLDrawPoolBump(LLDrawPool::POOL_INVISIBLE) { } | ||
155 | |||
156 | enum | ||
157 | { | ||
158 | VERTEX_DATA_MASK = LLVertexBuffer::MAP_VERTEX | ||
159 | }; | ||
160 | |||
161 | virtual U32 getVertexDataMask() { return VERTEX_DATA_MASK; } | ||
162 | |||
163 | virtual void prerender() { } | ||
164 | |||
165 | virtual void render(S32 pass = 0); | ||
166 | virtual void beginRenderPass( S32 pass ) { } | ||
167 | virtual void endRenderPass( S32 pass ) { } | ||
168 | virtual S32 getNumPasses() {return 1;} | ||
169 | }; | ||
146 | 170 | ||
147 | 171 | ||
148 | #endif // LL_LLDRAWPOOLBUMP_H | 172 | #endif // LL_LLDRAWPOOLBUMP_H |