summaryrefslogtreecommitdiff
path: root/indra/newview/llvopartgroup.h
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2007-03-02 21:25:50 +0000
committerSteven Bennetts <steve@lindenlab.com>2007-03-02 21:25:50 +0000
commit4dabd9c0472deb49573fdafef2fa413e59703f19 (patch)
tree06c680d6a2047e03838d6548bccd26c7baf9d652 /indra/newview/llvopartgroup.h
parentd4462963c6ba5db2088723bbedc7b60f1184c594 (diff)
merge release@58699 beta-1-14-0@58707 -> release
Diffstat (limited to 'indra/newview/llvopartgroup.h')
-rw-r--r--indra/newview/llvopartgroup.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/indra/newview/llvopartgroup.h b/indra/newview/llvopartgroup.h
index 657d1824d0..4082700971 100644
--- a/indra/newview/llvopartgroup.h
+++ b/indra/newview/llvopartgroup.h
@@ -16,26 +16,50 @@
class LLViewerPartGroup;
-class LLVOPartGroup : public LLViewerObject
+class LLVOPartGroup : public LLAlphaObject
{
public:
+ enum
+ {
+ VERTEX_DATA_MASK = (1 << LLVertexBuffer::TYPE_VERTEX) |
+ (1 << LLVertexBuffer::TYPE_NORMAL) |
+ (1 << LLVertexBuffer::TYPE_TEXCOORD) |
+ (1 << LLVertexBuffer::TYPE_COLOR)
+ }
+ eVertexDataMask;
+
LLVOPartGroup(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp);
~LLVOPartGroup();
/*virtual*/ BOOL isActive() const; // Whether this object needs to do an idleUpdate.
BOOL idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time);
+ BOOL isParticle();
+ virtual F32 getBinRadius();
+ virtual void updateSpatialExtents(LLVector3& newMin, LLVector3& newMax);
+ virtual U32 getPartitionType() const;
+
/*virtual*/ void setPixelAreaAndAngle(LLAgent &agent);
/*virtual*/ void updateTextures(LLAgent &agent);
/*virtual*/ LLDrawable* createDrawable(LLPipeline *pipeline);
/*virtual*/ BOOL updateGeometry(LLDrawable *drawable);
+ void getGeometry(S32 idx,
+ LLStrider<LLVector3>& verticesp,
+ LLStrider<LLVector3>& normalsp,
+ LLStrider<LLVector2>& texcoordsp,
+ LLStrider<LLColor4U>& colorsp,
+ LLStrider<U32>& indicesp);
+ void updateFaceSize(S32 idx) { }
+ F32 getPartSize(S32 idx);
void setViewerPartGroup(LLViewerPartGroup *part_groupp) { mViewerPartGroupp = part_groupp; }
+ LLViewerPartGroup* getViewerPartGroup() { return mViewerPartGroupp; }
+
protected:
LLViewerPartGroup *mViewerPartGroupp;
-
+ LLVector3 mExtents[2];
LLColor4 mDebugColor;
};