aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerobject.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerobject.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewerobject.h b/linden/indra/newview/llviewerobject.h
index 06d385c..5827dc2 100644
--- a/linden/indra/newview/llviewerobject.h
+++ b/linden/indra/newview/llviewerobject.h
@@ -132,7 +132,7 @@ public:
132 typedef std::list<LLPointer<LLViewerObject> > child_list_t; 132 typedef std::list<LLPointer<LLViewerObject> > child_list_t;
133 typedef const child_list_t const_child_list_t; 133 typedef const child_list_t const_child_list_t;
134 134
135 LLViewerObject(const LLUUID &id, const LLPCode type, LLViewerRegion *regionp); 135 LLViewerObject(const LLUUID &id, const LLPCode type, LLViewerRegion *regionp, BOOL is_global = FALSE);
136 MEM_TYPE_NEW(LLMemType::MTYPE_OBJECT); 136 MEM_TYPE_NEW(LLMemType::MTYPE_OBJECT);
137 137
138 virtual void markDead(); // Mark this object as dead, and clean up its references 138 virtual void markDead(); // Mark this object as dead, and clean up its references
@@ -248,6 +248,7 @@ public:
248 //returns TRUE if intersection detected and returns information about intersection 248 //returns TRUE if intersection detected and returns information about intersection
249 virtual BOOL lineSegmentIntersect(const LLVector3& start, const LLVector3& end, 249 virtual BOOL lineSegmentIntersect(const LLVector3& start, const LLVector3& end,
250 S32 face = -1, // which face to check, -1 = ALL_SIDES 250 S32 face = -1, // which face to check, -1 = ALL_SIDES
251 BOOL pick_transparent = FALSE,
251 S32* face_hit = NULL, // which face was hit 252 S32* face_hit = NULL, // which face was hit
252 LLVector3* intersection = NULL, // return the intersection point 253 LLVector3* intersection = NULL, // return the intersection point
253 LLVector2* tex_coord = NULL, // return the texture coordinates of the intersection point 254 LLVector2* tex_coord = NULL, // return the texture coordinates of the intersection point
@@ -255,6 +256,8 @@ public:
255 LLVector3* bi_normal = NULL // return the surface bi-normal at the intersection point 256 LLVector3* bi_normal = NULL // return the surface bi-normal at the intersection point
256 ); 257 );
257 258
259 virtual BOOL lineSegmentBoundingBox(const LLVector3& start, const LLVector3& end);
260
258 virtual const LLVector3d getPositionGlobal() const; 261 virtual const LLVector3d getPositionGlobal() const;
259 virtual const LLVector3 &getPositionRegion() const; 262 virtual const LLVector3 &getPositionRegion() const;
260 virtual const LLVector3 getPositionEdit() const; 263 virtual const LLVector3 getPositionEdit() const;
@@ -507,6 +510,7 @@ public:
507 LL_VO_PART_GROUP = LL_PCODE_APP | 0x90, 510 LL_VO_PART_GROUP = LL_PCODE_APP | 0x90,
508 LL_VO_TRIANGLE_TORUS = LL_PCODE_APP | 0xa0, 511 LL_VO_TRIANGLE_TORUS = LL_PCODE_APP | 0xa0,
509 LL_VO_WL_SKY = LL_PCODE_APP | 0xb0, // should this be moved to 0x40? 512 LL_VO_WL_SKY = LL_PCODE_APP | 0xb0, // should this be moved to 0x40?
513 LL_VO_HUD_PART_GROUP = LL_PCODE_APP | 0xc0,
510 } EVOType; 514 } EVOType;
511 515
512 LLUUID mID; 516 LLUUID mID;
@@ -705,8 +709,8 @@ public:
705class LLStaticViewerObject : public LLViewerObject 709class LLStaticViewerObject : public LLViewerObject
706{ 710{
707public: 711public:
708 LLStaticViewerObject(const LLUUID& id, const LLPCode type, LLViewerRegion* regionp) 712 LLStaticViewerObject(const LLUUID& id, const LLPCode type, LLViewerRegion* regionp, BOOL is_global = FALSE)
709 : LLViewerObject(id,type,regionp) 713 : LLViewerObject(id,type,regionp, is_global)
710 { } 714 { }
711 715
712 virtual void updateDrawable(BOOL force_damped); 716 virtual void updateDrawable(BOOL force_damped);