summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpool.h
diff options
context:
space:
mode:
authorBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
committerBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
commit6d52efe452aa8469e0343da1c7d108f3f52ab651 (patch)
treea87be48e9840d7fc1f7ee514d7c7f994e71fdb3c /indra/newview/lldrawpool.h
parent6027ad2630b8650cabcf00628ee9b0d25bedd67f (diff)
Merge of windlight into release (QAR-286). This includes all changes in
windlight14 which have passed QA (up through r79932). svn merge -r 80831:80833 svn+ssh://svn.lindenlab.com/svn/linden/branches/merge_windlight14_r80620
Diffstat (limited to 'indra/newview/lldrawpool.h')
-rw-r--r--indra/newview/lldrawpool.h33
1 files changed, 15 insertions, 18 deletions
diff --git a/indra/newview/lldrawpool.h b/indra/newview/lldrawpool.h
index cd85a55d34..30a16a24ba 100644
--- a/indra/newview/lldrawpool.h
+++ b/indra/newview/lldrawpool.h
@@ -43,8 +43,6 @@ class LLViewerImage;
class LLSpatialGroup;
class LLDrawInfo;
-#define DEFAULT_MAX_VERTICES 65535
-
class LLDrawPool
{
public:
@@ -53,18 +51,18 @@ public:
enum
{
// Correspond to LLPipeline render type
- POOL_SKY = 1,
- POOL_STARS,
- POOL_GROUND,
+ POOL_SIMPLE = 1,
POOL_TERRAIN,
- POOL_SIMPLE,
+ POOL_TREE,
+ POOL_SKY,
+ POOL_WL_SKY,
+ POOL_GROUND,
POOL_BUMP,
+ POOL_INVISIBLE,
POOL_AVATAR,
- POOL_TREE,
+ POOL_WATER,
POOL_GLOW,
POOL_ALPHA,
- POOL_WATER,
- POOL_ALPHA_POST_WATER,
NUM_POOL_TYPES,
};
@@ -82,7 +80,6 @@ public:
virtual S32 getNumPasses() { return 1; }
virtual void render(S32 pass = 0) = 0;
virtual void prerender() = 0;
- virtual S32 getMaterialAttribIndex() = 0;
virtual U32 getVertexDataMask() = 0;
virtual BOOL verify() const { return TRUE; } // Verify that all data in the draw pool is correct!
virtual S32 getVertexShaderLevel() const { return mVertexShaderLevel; }
@@ -110,12 +107,14 @@ public:
enum
{
PASS_SIMPLE = NUM_POOL_TYPES,
- PASS_GLOW,
+ PASS_GRASS,
PASS_FULLBRIGHT,
PASS_INVISIBLE,
+ PASS_INVISI_SHINY,
+ PASS_FULLBRIGHT_SHINY,
PASS_SHINY,
PASS_BUMP,
- PASS_GRASS,
+ PASS_GLOW,
PASS_ALPHA,
NUM_RENDER_TYPES,
};
@@ -123,17 +122,16 @@ public:
LLRenderPass(const U32 type);
virtual ~LLRenderPass();
/*virtual*/ LLDrawPool* instancePool();
- /*vritual*/ S32 getMaterialAttribIndex() { return -1; }
/*virtual*/ LLViewerImage* getDebugTexture() { return NULL; }
LLViewerImage* getTexture() { return NULL; }
BOOL isDead() { return FALSE; }
void resetDrawOrders() { }
+ static void applyModelMatrix(LLDrawInfo& params);
+ virtual void pushBatches(U32 type, U32 mask, BOOL texture = TRUE);
virtual void pushBatch(LLDrawInfo& params, U32 mask, BOOL texture);
virtual void renderGroup(LLSpatialGroup* group, U32 type, U32 mask, BOOL texture = TRUE);
- virtual void renderStatic(U32 type, U32 mask, BOOL texture = TRUE);
- virtual void renderActive(U32 type, U32 mask, BOOL texture = TRUE);
- virtual void renderInvisible(U32 mask);
+ virtual void renderGroups(U32 type, U32 mask, BOOL texture = TRUE);
virtual void renderTexture(U32 type, U32 mask);
};
@@ -179,8 +177,6 @@ public:
static S32 drawLoopSetTex(face_array_t& face_list, S32 stage);
void drawLoop();
- void renderVisibility();
-
void addFaceReference(LLFace *facep);
void removeFaceReference(LLFace *facep);
@@ -235,4 +231,5 @@ public:
};
};
+
#endif //LL_LLDRAWPOOL_H