aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender/llvertexbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llrender/llvertexbuffer.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/linden/indra/llrender/llvertexbuffer.h b/linden/indra/llrender/llvertexbuffer.h
index aa1aafc..aad948e 100644
--- a/linden/indra/llrender/llvertexbuffer.h
+++ b/linden/indra/llrender/llvertexbuffer.h
@@ -17,7 +17,8 @@
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -99,8 +100,10 @@ public:
99 enum { 100 enum {
100 TYPE_VERTEX, 101 TYPE_VERTEX,
101 TYPE_NORMAL, 102 TYPE_NORMAL,
102 TYPE_TEXCOORD, 103 TYPE_TEXCOORD0,
104 TYPE_TEXCOORD1,
103 TYPE_TEXCOORD2, 105 TYPE_TEXCOORD2,
106 TYPE_TEXCOORD3,
104 TYPE_COLOR, 107 TYPE_COLOR,
105 // These use VertexAttribPointer and should possibly be made generic 108 // These use VertexAttribPointer and should possibly be made generic
106 TYPE_BINORMAL, 109 TYPE_BINORMAL,
@@ -112,16 +115,15 @@ public:
112 enum { 115 enum {
113 MAP_VERTEX = (1<<TYPE_VERTEX), 116 MAP_VERTEX = (1<<TYPE_VERTEX),
114 MAP_NORMAL = (1<<TYPE_NORMAL), 117 MAP_NORMAL = (1<<TYPE_NORMAL),
115 MAP_TEXCOORD = (1<<TYPE_TEXCOORD), 118 MAP_TEXCOORD0 = (1<<TYPE_TEXCOORD0),
119 MAP_TEXCOORD1 = (1<<TYPE_TEXCOORD1),
116 MAP_TEXCOORD2 = (1<<TYPE_TEXCOORD2), 120 MAP_TEXCOORD2 = (1<<TYPE_TEXCOORD2),
121 MAP_TEXCOORD3 = (1<<TYPE_TEXCOORD3),
117 MAP_COLOR = (1<<TYPE_COLOR), 122 MAP_COLOR = (1<<TYPE_COLOR),
118 // These use VertexAttribPointer and should possibly be made generic 123 // These use VertexAttribPointer and should possibly be made generic
119 MAP_BINORMAL = (1<<TYPE_BINORMAL), 124 MAP_BINORMAL = (1<<TYPE_BINORMAL),
120 MAP_WEIGHT = (1<<TYPE_WEIGHT), 125 MAP_WEIGHT = (1<<TYPE_WEIGHT),
121 MAP_CLOTHWEIGHT = (1<<TYPE_CLOTHWEIGHT), 126 MAP_CLOTHWEIGHT = (1<<TYPE_CLOTHWEIGHT),
122 MAP_DRAW = 0x2000, // Buffer is in draw (read-only) mode
123 MAP_MAPPED = 0x4000, // Indicates that buffer has been mapped, but not to any type of data
124 MAP_UNMAPPED = 0x8000 // Indicates that buffer has been logically un-mapped
125 }; 127 };
126 128
127protected: 129protected:
@@ -164,8 +166,8 @@ public:
164 // vb->unmapBuffer(); 166 // vb->unmapBuffer();
165 bool getVertexStrider(LLStrider<LLVector3>& strider, S32 index=0); 167 bool getVertexStrider(LLStrider<LLVector3>& strider, S32 index=0);
166 bool getIndexStrider(LLStrider<U16>& strider, S32 index=0); 168 bool getIndexStrider(LLStrider<U16>& strider, S32 index=0);
167 bool getTexCoordStrider(LLStrider<LLVector2>& strider, S32 index=0); 169 bool getTexCoord0Strider(LLStrider<LLVector2>& strider, S32 index=0);
168 bool getTexCoord2Strider(LLStrider<LLVector2>& strider, S32 index=0); 170 bool getTexCoord1Strider(LLStrider<LLVector2>& strider, S32 index=0);
169 bool getNormalStrider(LLStrider<LLVector3>& strider, S32 index=0); 171 bool getNormalStrider(LLStrider<LLVector3>& strider, S32 index=0);
170 bool getBinormalStrider(LLStrider<LLVector3>& strider, S32 index=0); 172 bool getBinormalStrider(LLStrider<LLVector3>& strider, S32 index=0);
171 bool getColorStrider(LLStrider<LLColor4U>& strider, S32 index=0); 173 bool getColorStrider(LLStrider<LLColor4U>& strider, S32 index=0);