aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender/llvertexbuffer.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:49 -0500
committerJacek Antonelli2008-08-15 23:45:49 -0500
commit8538c0f35dc5fb780f02930256e627e5266ede4a (patch)
tree58950646aae6534fafe680a5cf879d01cd99d254 /linden/indra/llrender/llvertexbuffer.h
parentSecond Life viewer sources 1.20.5 (diff)
downloadmeta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.zip
meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.gz
meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.bz2
meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.xz
Second Life viewer sources 1.20.6
Diffstat (limited to 'linden/indra/llrender/llvertexbuffer.h')
-rw-r--r--linden/indra/llrender/llvertexbuffer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llrender/llvertexbuffer.h b/linden/indra/llrender/llvertexbuffer.h
index 453f3ac..64a6f60 100644
--- a/linden/indra/llrender/llvertexbuffer.h
+++ b/linden/indra/llrender/llvertexbuffer.h
@@ -85,9 +85,7 @@ public:
85 static void initClass(bool use_vbo); 85 static void initClass(bool use_vbo);
86 static void cleanupClass(); 86 static void cleanupClass();
87 static void setupClientArrays(U32 data_mask); 87 static void setupClientArrays(U32 data_mask);
88 static void startRender(); //between start and stop render, no client copies will occur 88 static void clientCopy(F64 max_time = 0.005); //copy data from client to GL
89 static void stopRender(); //any buffer not copied to GL will be rendered from client memory
90 static void clientCopy(F64 max_time = 0.005); //copy data from client to GL
91 static void unbind(); //unbind any bound vertex buffer 89 static void unbind(); //unbind any bound vertex buffer
92 90
93 //get the size of a vertex with the given typemask 91 //get the size of a vertex with the given typemask
@@ -131,6 +129,8 @@ public:
131 POINTS, 129 POINTS,
132 LINES, 130 LINES,
133 LINE_STRIP, 131 LINE_STRIP,
132 QUADS,
133 LINE_LOOP,
134 NUM_MODES 134 NUM_MODES
135 }; 135 };
136protected: 136protected:
@@ -205,6 +205,7 @@ public:
205 void markDirty(U32 vert_index, U32 vert_count, U32 indices_index, U32 indices_count); 205 void markDirty(U32 vert_index, U32 vert_count, U32 indices_index, U32 indices_count);
206 206
207 void draw(U32 mode, U32 count, U32 indices_offset) const; 207 void draw(U32 mode, U32 count, U32 indices_offset) const;
208 void drawArrays(U32 mode, U32 offset, U32 count) const;
208 void drawRange(U32 mode, U32 start, U32 end, U32 count, U32 indices_offset) const; 209 void drawRange(U32 mode, U32 start, U32 end, U32 count, U32 indices_offset) const;
209 210
210protected: 211protected:
@@ -244,7 +245,6 @@ protected:
244 std::vector<DirtyRegion> mDirtyRegions; //vector of dirty regions to rebuild 245 std::vector<DirtyRegion> mDirtyRegions; //vector of dirty regions to rebuild
245 246
246public: 247public:
247 static BOOL sRenderActive;
248 static S32 sCount; 248 static S32 sCount;
249 static S32 sGLCount; 249 static S32 sGLCount;
250 static S32 sMappedCount; 250 static S32 sMappedCount;