diff options
author | Dave Parks <davep@lindenlab.com> | 2012-05-02 15:45:38 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-05-02 15:45:38 -0500 |
commit | 423659c68076f99a73985b9bd1befa5c0f5d3457 (patch) | |
tree | f4f4b78e2d208ca8d1d03de113d7b32de513e26c /indra/newview/llvopartgroup.h | |
parent | cabc36e993e8876a99c019e19fdf7e2ff0737af8 (diff) |
MAINT-775 Particle vertex buffer management optimizations
Diffstat (limited to 'indra/newview/llvopartgroup.h')
-rw-r--r-- | indra/newview/llvopartgroup.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llvopartgroup.h b/indra/newview/llvopartgroup.h index e58fed86d9..dde0b0476d 100644 --- a/indra/newview/llvopartgroup.h +++ b/indra/newview/llvopartgroup.h @@ -31,12 +31,25 @@ #include "v3math.h" #include "v3color.h" #include "llframetimer.h" +#include "llviewerpartsim.h" +#include "llvertexbuffer.h" class LLViewerPartGroup; class LLVOPartGroup : public LLAlphaObject { public: + + //vertex buffer for holding all particles + static LLPointer<LLVertexBuffer> sVB; + static S32 sVBSlotFree[LL_MAX_PARTICLE_COUNT]; + static S32* sVBSlotCursor; + + static void restoreGL(); + static void destroyGL(); + static S32 findAvailableVBSlot(); + static void freeVBSlot(S32 idx); + enum { VERTEX_DATA_MASK = (1 << LLVertexBuffer::TYPE_VERTEX) | |