aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolavatar.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/lldrawpoolavatar.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/lldrawpoolavatar.h')
-rw-r--r--linden/indra/newview/lldrawpoolavatar.h33
1 files changed, 30 insertions, 3 deletions
diff --git a/linden/indra/newview/lldrawpoolavatar.h b/linden/indra/newview/lldrawpoolavatar.h
index 52a7fe4..32c02b5 100644
--- a/linden/indra/newview/lldrawpoolavatar.h
+++ b/linden/indra/newview/lldrawpoolavatar.h
@@ -32,7 +32,7 @@
32 32
33class LLVOAvatar; 33class LLVOAvatar;
34 34
35class LLDrawPoolAvatar : public LLDrawPool 35class LLDrawPoolAvatar : public LLFacePool
36{ 36{
37protected: 37protected:
38 S32 mNumFaces; 38 S32 mNumFaces;
@@ -43,21 +43,48 @@ public:
43 SHADER_LEVEL_CLOTH = 3 43 SHADER_LEVEL_CLOTH = 3
44 }; 44 };
45 45
46 enum
47 {
48 VERTEX_DATA_MASK = LLVertexBuffer::MAP_VERTEX |
49 LLVertexBuffer::MAP_NORMAL |
50 LLVertexBuffer::MAP_TEXCOORD |
51 LLVertexBuffer::MAP_WEIGHT |
52 LLVertexBuffer::MAP_CLOTHWEIGHT |
53 LLVertexBuffer::MAP_BINORMAL
54
55 };
56
57 virtual U32 getVertexDataMask() { return VERTEX_DATA_MASK; }
58
59 virtual S32 getVertexShaderLevel() const;
60
46 LLDrawPoolAvatar(); 61 LLDrawPoolAvatar();
47 62
63 static LLMatrix4& getModelView();
64
48 /*virtual*/ LLDrawPool *instancePool(); 65 /*virtual*/ LLDrawPool *instancePool();
49 66
67 /*virtual*/ S32 getNumPasses();
68 /*virtual*/ void beginRenderPass(S32 pass);
69 /*virtual*/ void endRenderPass(S32 pass);
50 /*virtual*/ void prerender(); 70 /*virtual*/ void prerender();
51 /*virtual*/ void render(S32 pass = 0); 71 /*virtual*/ void render(S32 pass = 0);
52 /*virtual*/ void renderForSelect(); 72 /*virtual*/ void renderForSelect();
53 /*virtual*/ S32 rebuild();
54 73
74 void beginRigid();
75 void beginFootShadow();
76 void beginSkinned();
77
78 void endRigid();
79 void endFootShadow();
80 void endSkinned();
81
55 /*virtual*/ LLViewerImage *getDebugTexture(); 82 /*virtual*/ LLViewerImage *getDebugTexture();
56 /*virtual*/ LLColor3 getDebugColor() const; // For AGP debug display 83 /*virtual*/ LLColor3 getDebugColor() const; // For AGP debug display
57 84
58 virtual S32 getMaterialAttribIndex() { return 0; } 85 virtual S32 getMaterialAttribIndex() { return 0; }
59 86
60 void renderAvatars(LLVOAvatar *single_avatar, BOOL no_shaders = FALSE); // renders only one avatar if single_avatar is not null. 87 void renderAvatars(LLVOAvatar *single_avatar, S32 pass = -1); // renders only one avatar if single_avatar is not null.
61}; 88};
62 89
63 90