aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawable.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/lldrawable.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/lldrawable.h')
-rw-r--r--linden/indra/newview/lldrawable.h28
1 files changed, 5 insertions, 23 deletions
diff --git a/linden/indra/newview/lldrawable.h b/linden/indra/newview/lldrawable.h
index 1903587..8493747 100644
--- a/linden/indra/newview/lldrawable.h
+++ b/linden/indra/newview/lldrawable.h
@@ -83,7 +83,7 @@ public:
83 virtual void setVisible(LLCamera& camera_in, std::vector<LLDrawable*>* results = NULL, BOOL for_select = FALSE); 83 virtual void setVisible(LLCamera& camera_in, std::vector<LLDrawable*>* results = NULL, BOOL for_select = FALSE);
84 84
85 85
86 const LLViewerRegion* getRegion() const { return mVObjp->getRegion(); } 86 LLViewerRegion* getRegion() const { return mVObjp->getRegion(); }
87 const LLTextureEntry* getTextureEntry(U8 which) const { return mVObjp->getTE(which); } 87 const LLTextureEntry* getTextureEntry(U8 which) const { return mVObjp->getTE(which); }
88 LLPointer<LLViewerObject>& getVObj() { return mVObjp; } 88 LLPointer<LLViewerObject>& getVObj() { return mVObjp; }
89 const LLViewerObject *getVObj() const { return mVObjp; } 89 const LLViewerObject *getVObj() const { return mVObjp; }
@@ -153,13 +153,8 @@ public:
153 void updateMaterial(); 153 void updateMaterial();
154 virtual void updateDistance(LLCamera& camera); 154 virtual void updateDistance(LLCamera& camera);
155 BOOL updateGeometry(BOOL priority); 155 BOOL updateGeometry(BOOL priority);
156 BOOL updateLighting(BOOL priority);
157 void updateFaceSize(S32 idx); 156 void updateFaceSize(S32 idx);
158 void updateLightSet(); 157
159
160 F32 getSunShadowFactor() const { return mSunShadowFactor; }
161 void setSunShadowFactor(F32 factor) { mSunShadowFactor = factor; }
162 void applyLightsAsPoint(LLColor4& result);
163 void updateSpecialHoverCursor(BOOL enabled); 158 void updateSpecialHoverCursor(BOOL enabled);
164 159
165 virtual void shiftPos(const LLVector3 &shift_vector); 160 virtual void shiftPos(const LLVector3 &shift_vector);
@@ -169,7 +164,6 @@ public:
169 BOOL getLit() const { return isState(UNLIT) ? FALSE : TRUE; } 164 BOOL getLit() const { return isState(UNLIT) ? FALSE : TRUE; }
170 void setLit(BOOL lit) { lit ? clearState(UNLIT) : setState(UNLIT); } 165 void setLit(BOOL lit) { lit ? clearState(UNLIT) : setState(UNLIT); }
171 166
172 void clearLightSet();
173 virtual void cleanupReferences(); 167 virtual void cleanupReferences();
174 168
175 void setRadius(const F32 radius); 169 void setRadius(const F32 radius);
@@ -245,7 +239,6 @@ public:
245 239
246 typedef enum e_drawable_flags 240 typedef enum e_drawable_flags
247 { 241 {
248// TEXTURE = 0x00000001,
249 IN_REBUILD_Q1 = 0x00000002, 242 IN_REBUILD_Q1 = 0x00000002,
250 IN_REBUILD_Q2 = 0x00000004, 243 IN_REBUILD_Q2 = 0x00000004,
251 IN_LIGHT_Q = 0x00000008, 244 IN_LIGHT_Q = 0x00000008,
@@ -260,13 +253,11 @@ public:
260 REBUILD_VOLUME = 0x00001000, //volume changed LOD or parameters, or vertex buffer changed 253 REBUILD_VOLUME = 0x00001000, //volume changed LOD or parameters, or vertex buffer changed
261 REBUILD_TCOORD = 0x00002000, //texture coordinates changed 254 REBUILD_TCOORD = 0x00002000, //texture coordinates changed
262 REBUILD_COLOR = 0x00004000, //color changed 255 REBUILD_COLOR = 0x00004000, //color changed
263 REBUILD_LIGHTING= 0x00008000, //lighting information changed
264 REBUILD_POSITION= 0x00010000, //vertex positions/normals changed 256 REBUILD_POSITION= 0x00010000, //vertex positions/normals changed
265 REBUILD_GEOMETRY= REBUILD_POSITION|REBUILD_TCOORD|REBUILD_COLOR, 257 REBUILD_GEOMETRY= REBUILD_POSITION|REBUILD_TCOORD|REBUILD_COLOR,
266 REBUILD_MATERIAL= REBUILD_TCOORD|REBUILD_COLOR, 258 REBUILD_MATERIAL= REBUILD_TCOORD|REBUILD_COLOR,
267 REBUILD_ALL = REBUILD_GEOMETRY|REBUILD_LIGHTING|REBUILD_VOLUME, 259 REBUILD_ALL = REBUILD_GEOMETRY|REBUILD_VOLUME,
268 ON_SHIFT_LIST = 0x00100000, 260 ON_SHIFT_LIST = 0x00100000,
269// NO_INTERP_COLOR = 0x00200000,
270 BLOCKER = 0x00400000, 261 BLOCKER = 0x00400000,
271 ACTIVE = 0x00800000, 262 ACTIVE = 0x00800000,
272 DEAD = 0x01000000, 263 DEAD = 0x01000000,
@@ -284,14 +275,7 @@ public:
284 LLPointer<LLDrawable> mParent; 275 LLPointer<LLDrawable> mParent;
285 276
286 F32 mDistanceWRTCamera; 277 F32 mDistanceWRTCamera;
287 278
288 LLRectf mUVRect;
289 F32 mUVZ;
290
291 drawable_set_t mLightSet;
292 drawable_set_t mBlockSet;
293
294 LLVector3 mSavePos;
295 S32 mQuietCount; 279 S32 mQuietCount;
296 280
297 static S32 getCurrentFrame() { return sCurVisible; } 281 static S32 getCurrentFrame() { return sCurVisible; }
@@ -301,7 +285,7 @@ public:
301 285
302 static F32 sCurPixelAngle; //current pixels per radian 286 static F32 sCurPixelAngle; //current pixels per radian
303 287
304protected: 288private:
305 typedef std::vector<LLFace*> face_list_t; 289 typedef std::vector<LLFace*> face_list_t;
306 290
307 U32 mState; 291 U32 mState;
@@ -318,8 +302,6 @@ protected:
318 F64 mBinRadius; 302 F64 mBinRadius;
319 S32 mGeneration; 303 S32 mGeneration;
320 304
321 F32 mSunShadowFactor;
322
323 LLVector3 mCurrentScale; 305 LLVector3 mCurrentScale;
324 306
325 static U32 sCurVisible; // Counter for what value of mVisible means currently visible 307 static U32 sCurVisible; // Counter for what value of mVisible means currently visible