diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llviewerpartsource.h | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/newview/llviewerpartsource.h')
-rw-r--r-- | linden/indra/newview/llviewerpartsource.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewerpartsource.h b/linden/indra/newview/llviewerpartsource.h index 32e1475..3e3e63c 100644 --- a/linden/indra/newview/llviewerpartsource.h +++ b/linden/indra/newview/llviewerpartsource.h | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llviewerpartsource.h | 2 | * @file llviewerpartsource.h |
3 | * @brief LLViewerPartSource class header file | 3 | * @brief LLViewerPartSource class header file |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2003&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2003-2007, Linden Research, Inc. | 7 | * Copyright (c) 2003-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #ifndef LL_LLVIEWERPARTSOURCE_H | 32 | #ifndef LL_LLVIEWERPARTSOURCE_H |
@@ -68,6 +71,8 @@ public: | |||
68 | static void updatePart(LLViewerPart &part, const F32 dt); | 71 | static void updatePart(LLViewerPart &part, const F32 dt); |
69 | void setOwnerUUID(const LLUUID& owner_id) { mOwnerUUID = owner_id; } | 72 | void setOwnerUUID(const LLUUID& owner_id) { mOwnerUUID = owner_id; } |
70 | LLUUID getOwnerUUID() const { return mOwnerUUID; } | 73 | LLUUID getOwnerUUID() const { return mOwnerUUID; } |
74 | U32 getID() const { return mID; } | ||
75 | LLUUID getImageUUID() const; | ||
71 | 76 | ||
72 | LLVector3 mPosAgent; // Location of the particle source | 77 | LLVector3 mPosAgent; // Location of the particle source |
73 | LLVector3 mTargetPosAgent; // Location of the target position | 78 | LLVector3 mTargetPosAgent; // Location of the target position |
@@ -82,7 +87,8 @@ protected: | |||
82 | F32 mLastUpdateTime; | 87 | F32 mLastUpdateTime; |
83 | F32 mLastPartTime; | 88 | F32 mLastPartTime; |
84 | LLUUID mOwnerUUID; | 89 | LLUUID mOwnerUUID; |
85 | 90 | LLPointer<LLViewerImage> mImagep; | |
91 | |||
86 | // Particle information | 92 | // Particle information |
87 | U32 mPartFlags; // Flags for the particle | 93 | U32 mPartFlags; // Flags for the particle |
88 | }; | 94 | }; |
@@ -120,7 +126,6 @@ public: | |||
120 | 126 | ||
121 | protected: | 127 | protected: |
122 | LLQuaternion mRotation; // Current rotation for particle source | 128 | LLQuaternion mRotation; // Current rotation for particle source |
123 | LLPointer<LLViewerImage> mImagep; // Cached image pointer of the mPartSysData UUID | ||
124 | LLPointer<LLViewerObject> mTargetObjectp; // Target object for the particle source | 129 | LLPointer<LLViewerObject> mTargetObjectp; // Target object for the particle source |
125 | }; | 130 | }; |
126 | 131 | ||
@@ -145,7 +150,6 @@ public: | |||
145 | static void updatePart(LLViewerPart &part, const F32 dt); | 150 | static void updatePart(LLViewerPart &part, const F32 dt); |
146 | LLColor4 mColor; | 151 | LLColor4 mColor; |
147 | protected: | 152 | protected: |
148 | LLPointer<LLViewerImage> mImagep; | ||
149 | LLVector3d mLKGSourcePosGlobal; | 153 | LLVector3d mLKGSourcePosGlobal; |
150 | }; | 154 | }; |
151 | 155 | ||
@@ -171,7 +175,6 @@ public: | |||
171 | void setColor(const LLColor4 &color); | 175 | void setColor(const LLColor4 &color); |
172 | 176 | ||
173 | static void updatePart(LLViewerPart &part, const F32 dt); | 177 | static void updatePart(LLViewerPart &part, const F32 dt); |
174 | LLPointer<LLViewerImage> mImagep; | ||
175 | LLPointer<LLViewerObject> mTargetObjectp; | 178 | LLPointer<LLViewerObject> mTargetObjectp; |
176 | LLVector3d mLKGTargetPosGlobal; | 179 | LLVector3d mLKGTargetPosGlobal; |
177 | LLColor4 mColor; | 180 | LLColor4 mColor; |
@@ -197,11 +200,9 @@ public: | |||
197 | 200 | ||
198 | void setSourceObject(LLViewerObject *objp); | 201 | void setSourceObject(LLViewerObject *objp); |
199 | void setColor(const LLColor4 &color); | 202 | void setColor(const LLColor4 &color); |
200 | |||
201 | static void updatePart(LLViewerPart &part, const F32 dt); | 203 | static void updatePart(LLViewerPart &part, const F32 dt); |
202 | LLColor4 mColor; | 204 | LLColor4 mColor; |
203 | protected: | 205 | protected: |
204 | LLPointer<LLViewerImage> mImagep; | ||
205 | LLVector3d mLKGSourcePosGlobal; | 206 | LLVector3d mLKGSourcePosGlobal; |
206 | }; | 207 | }; |
207 | 208 | ||