aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoavatar.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvoavatar.h')
-rw-r--r--linden/indra/newview/llvoavatar.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/linden/indra/newview/llvoavatar.h b/linden/indra/newview/llvoavatar.h
index d66ddfc..9806ceb 100644
--- a/linden/indra/newview/llvoavatar.h
+++ b/linden/indra/newview/llvoavatar.h
@@ -5,7 +5,7 @@
5 * 5 *
6 * $LicenseInfo:firstyear=2001&license=viewergpl$ 6 * $LicenseInfo:firstyear=2001&license=viewergpl$
7 * 7 *
8 * Copyright (c) 2001-2008, Linden Research, Inc. 8 * Copyright (c) 2001-2009, Linden Research, Inc.
9 * 9 *
10 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
11 * The source code in this file ("Source Code") is provided by Linden Lab 11 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -308,6 +308,16 @@ public:
308 U32 renderTransparent(); 308 U32 renderTransparent();
309 void renderCollisionVolumes(); 309 void renderCollisionVolumes();
310 310
311 /*virtual*/ BOOL lineSegmentIntersect(const LLVector3& start, const LLVector3& end,
312 S32 face = -1, // which face to check, -1 = ALL_SIDES
313 BOOL pick_transparent = FALSE,
314 S32* face_hit = NULL, // which face was hit
315 LLVector3* intersection = NULL, // return the intersection point
316 LLVector2* tex_coord = NULL, // return the texture coordinates of the intersection point
317 LLVector3* normal = NULL, // return the surface normal at the intersection point
318 LLVector3* bi_normal = NULL // return the surface bi-normal at the intersection point
319 );
320
311 /*virtual*/ void updateTextures(LLAgent &agent); 321 /*virtual*/ void updateTextures(LLAgent &agent);
312 // If setting a baked texture, need to request it from a non-local sim. 322 // If setting a baked texture, need to request it from a non-local sim.
313 /*virtual*/ S32 setTETexture(const U8 te, const LLUUID& uuid); 323 /*virtual*/ S32 setTETexture(const U8 te, const LLUUID& uuid);
@@ -903,6 +913,11 @@ public:
903 static BOOL sJointDebug; 913 static BOOL sJointDebug;
904 static ETextureIndex sBakedTextureIndices[BAKED_TEXTURE_COUNT]; 914 static ETextureIndex sBakedTextureIndices[BAKED_TEXTURE_COUNT];
905 915
916 static F32 sUnbakedTime; // Total seconds with >=1 unbaked avatars
917 static F32 sUnbakedUpdateTime; // Last time stats were updated (to prevent multiple updates per frame)
918 static F32 sGreyTime; // Total seconds with >=1 grey avatars
919 static F32 sGreyUpdateTime; // Last time stats were updated (to prevent multiple updates per frame)
920
906 //-------------------------------------------------------------------- 921 //--------------------------------------------------------------------
907 // Texture Layer Sets and Global Colors 922 // Texture Layer Sets and Global Colors
908 //-------------------------------------------------------------------- 923 //--------------------------------------------------------------------
@@ -967,6 +982,7 @@ protected:
967 F32 mLastFadeDistance; 982 F32 mLastFadeDistance;
968 F32 mMinPixelArea; // debug 983 F32 mMinPixelArea; // debug
969 F32 mMaxPixelArea; // debug 984 F32 mMaxPixelArea; // debug
985 BOOL mHasGrey; // debug
970 986
971 //-------------------------------------------------------------------- 987 //--------------------------------------------------------------------
972 // Global Colors 988 // Global Colors
@@ -1002,7 +1018,7 @@ protected:
1002 1018
1003 BOOL isFullyBaked(); 1019 BOOL isFullyBaked();
1004 void deleteLayerSetCaches(); 1020 void deleteLayerSetCaches();
1005 static BOOL areAllNearbyInstancesBaked(); 1021 static BOOL areAllNearbyInstancesBaked(S32& grey_avatars);
1006 1022
1007 static void onBakedTextureMasksLoaded(BOOL success, LLViewerImage *src_vi, LLImageRaw* src, LLImageRaw* aux_src, S32 discard_level, BOOL final, void* userdata); 1023 static void onBakedTextureMasksLoaded(BOOL success, LLViewerImage *src_vi, LLImageRaw* src, LLImageRaw* aux_src, S32 discard_level, BOOL final, void* userdata);
1008 1024