aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolsimple.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/lldrawpoolsimple.h
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-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 'linden/indra/newview/lldrawpoolsimple.h')
-rw-r--r--linden/indra/newview/lldrawpoolsimple.h56
1 files changed, 8 insertions, 48 deletions
diff --git a/linden/indra/newview/lldrawpoolsimple.h b/linden/indra/newview/lldrawpoolsimple.h
index 32fd320..85dcacf 100644
--- a/linden/indra/newview/lldrawpoolsimple.h
+++ b/linden/indra/newview/lldrawpoolsimple.h
@@ -30,64 +30,24 @@
30 30
31#include "lldrawpool.h" 31#include "lldrawpool.h"
32 32
33class LLFRInfo 33class LLDrawPoolSimple : public LLRenderPass
34{ 34{
35public: 35public:
36 U32 mPrimType;
37 U32 mGeomIndex;
38 U32 mGeomIndexEnd;
39 U32 mNumIndices;
40 U32 mIndicesStart;
41
42 LLFRInfo()
43 {
44 }
45
46 LLFRInfo(const U32 pt, const U32 gi, const U32 gc, const U32 ni, const U32 is) :
47 mPrimType(pt),
48 mGeomIndex(gi),
49 mGeomIndexEnd(gi+gc),
50 mNumIndices(ni),
51 mIndicesStart(is)
52 {
53 }
54};
55
56class LLDrawPoolSimple : public LLDrawPool
57{
58 LLPointer<LLViewerImage> mTexturep;
59public:
60 enum 36 enum
61 { 37 {
62 SHADER_LEVEL_LOCAL_LIGHTS = 2 38 VERTEX_DATA_MASK = LLVertexBuffer::MAP_VERTEX |
39 LLVertexBuffer::MAP_NORMAL |
40 LLVertexBuffer::MAP_TEXCOORD |
41 LLVertexBuffer::MAP_COLOR
63 }; 42 };
64 43 virtual U32 getVertexDataMask() { return VERTEX_DATA_MASK; }
65 LLDrawPoolSimple(LLViewerImage *texturep);
66
67 /*virtual*/ LLDrawPool *instancePool();
68 44
45 LLDrawPoolSimple();
46
69 /*virtual*/ void beginRenderPass(S32 pass); 47 /*virtual*/ void beginRenderPass(S32 pass);
70 /*virtual*/ void endRenderPass(S32 pass);
71 /*virtual*/ void render(S32 pass = 0); 48 /*virtual*/ void render(S32 pass = 0);
72 /*virtual*/ void renderFaceSelected(LLFace *facep,
73 LLImageGL *image,
74 const LLColor4 &color,
75 const S32 index_offset = 0, const S32 index_count = 0);
76 /*virtual*/ void prerender(); 49 /*virtual*/ void prerender();
77 /*virtual*/ void renderForSelect();
78 /*virtual*/ void dirtyTexture(const LLViewerImage *texturep);
79 /*virtual*/ LLViewerImage *getTexture();
80 /*virtual*/ LLViewerImage *getDebugTexture();
81 /*virtual*/ LLColor3 getDebugColor() const; // For AGP debug display
82 /*virtual*/ BOOL match(LLFace* last_face, LLFace* facep);
83
84 /*virtual*/ void enableShade();
85 /*virtual*/ void disableShade();
86 /*virtual*/ void setShade(F32 shade);
87
88 virtual S32 getMaterialAttribIndex();
89 50
90 static S32 sDiffTex;
91}; 51};
92 52
93#endif // LL_LLDRAWPOOLSIMPLE_H 53#endif // LL_LLDRAWPOOLSIMPLE_H