summaryrefslogtreecommitdiff
path: root/indra/llappearance/llavatarappearance.h
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2012-09-04 04:24:47 +0000
committerDon Kjer <don@lindenlab.com>2012-09-04 04:24:47 +0000
commit7b4385420edf3f431ddc4a7042bbc9623ffedd34 (patch)
treedfe4d1b483a2f5c86299f6ffb10397b2316cfa7b /indra/llappearance/llavatarappearance.h
parent403d1b6404355fa26b0bfeff206f5c56758a491c (diff)
More clean-up to closer match original file order. For llavatarappearance diffs
Diffstat (limited to 'indra/llappearance/llavatarappearance.h')
-rw-r--r--indra/llappearance/llavatarappearance.h95
1 files changed, 67 insertions, 28 deletions
diff --git a/indra/llappearance/llavatarappearance.h b/indra/llappearance/llavatarappearance.h
index 0ab3960e64..e882868e91 100644
--- a/indra/llappearance/llavatarappearance.h
+++ b/indra/llappearance/llavatarappearance.h
@@ -31,8 +31,8 @@
#include "llframetimer.h"
#include "llavatarappearancedefines.h"
-class LLTexGlobalColor;
class LLTexLayerSet;
+class LLTexGlobalColor;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// LLAvatarAppearance
@@ -43,27 +43,36 @@ class LLAvatarAppearance : public LLCharacter
{
LOG_CLASS(LLAvatarAppearance);
+/********************************************************************************
+ ** **
+ ** INITIALIZATION
+ **/
+
public:
LLAvatarAppearance();
- //--------------------------------------------------------------------
- // Clothing colors (convenience functions to access visual parameters)
- //--------------------------------------------------------------------
-public:
- void setClothesColor(LLAvatarAppearanceDefines::ETextureIndex te, const LLColor4& new_color, BOOL upload_bake);
- LLColor4 getClothesColor(LLAvatarAppearanceDefines::ETextureIndex te);
- static BOOL teToColorParams(LLAvatarAppearanceDefines::ETextureIndex te, U32 *param_name);
+/** Initialization
+ ** **
+ *******************************************************************************/
- //--------------------------------------------------------------------
- // Global colors
- //--------------------------------------------------------------------
+/********************************************************************************
+ ** **
+ ** STATE
+ **/
public:
- LLColor4 getGlobalColor(const std::string& color_name ) const;
- virtual void onGlobalColorChanged(const LLTexGlobalColor* global_color, BOOL upload_bake) = 0;
-protected:
- LLTexGlobalColor* mTexSkinColor;
- LLTexGlobalColor* mTexHairColor;
- LLTexGlobalColor* mTexEyeColor;
+ virtual bool isSelf() const { return false; } // True if this avatar is for this viewer's agent
+ virtual BOOL isUsingBakedTextures() const = 0;
+
+/** State
+ ** **
+ *******************************************************************************/
+
+
+/********************************************************************************
+ ** **
+ ** RENDERING
+ **/
+ BOOL mIsDummy; // for special views
//--------------------------------------------------------------------
// Morph masks
@@ -71,6 +80,10 @@ protected:
public:
virtual void applyMorphMask(U8* tex_data, S32 width, S32 height, S32 num_components, LLAvatarAppearanceDefines::EBakedTextureIndex index = LLAvatarAppearanceDefines::BAKED_NUM_INDICES) = 0;
+/** Rendering
+ ** **
+ *******************************************************************************/
+
//--------------------------------------------------------------------
// Composites
//--------------------------------------------------------------------
@@ -81,39 +94,65 @@ public:
** **
** MESHES
**/
+
+public:
+ virtual void updateMeshTextures() = 0;
virtual void dirtyMesh() = 0; // Dirty the avatar mesh
+protected:
virtual void dirtyMesh(S32 priority) = 0; // Dirty the avatar mesh, with priority
-/********************************************************************************
+/** Meshes
** **
- ** RENDERING
- **/
- BOOL mIsDummy; // for special views
+ *******************************************************************************/
/********************************************************************************
** **
- ** STATE
+ ** APPEARANCE
**/
+
+ //--------------------------------------------------------------------
+ // Clothing colors (convenience functions to access visual parameters)
+ //--------------------------------------------------------------------
public:
- virtual bool isSelf() const { return false; } // True if this avatar is for this viewer's agent
- virtual BOOL isUsingBakedTextures() const = 0;
+ void setClothesColor(LLAvatarAppearanceDefines::ETextureIndex te, const LLColor4& new_color, BOOL upload_bake);
+ LLColor4 getClothesColor(LLAvatarAppearanceDefines::ETextureIndex te);
+ static BOOL teToColorParams(LLAvatarAppearanceDefines::ETextureIndex te, U32 *param_name);
+
+ //--------------------------------------------------------------------
+ // Global colors
+ //--------------------------------------------------------------------
+public:
+ LLColor4 getGlobalColor(const std::string& color_name ) const;
+ virtual void onGlobalColorChanged(const LLTexGlobalColor* global_color, BOOL upload_bake) = 0;
+protected:
+ LLTexGlobalColor* mTexSkinColor;
+ LLTexGlobalColor* mTexHairColor;
+ LLTexGlobalColor* mTexEyeColor;
+
+ //--------------------------------------------------------------------
+ // Visibility
+ //--------------------------------------------------------------------
+public:
+ static LLColor4 getDummyColor();
+/** Appearance
+ ** **
+ *******************************************************************************/
/********************************************************************************
** **
** WEARABLES
**/
+
public:
+ virtual BOOL isWearingWearableType(LLWearableType::EType type ) const = 0;
+
virtual U32 getWearableCount(const LLWearableType::EType type) const = 0;
virtual U32 getWearableCount(const U32 tex_index) const = 0;
virtual LLWearable* getWearable(const LLWearableType::EType type, U32 index /*= 0*/) = 0;
virtual const LLWearable* getWearable(const LLWearableType::EType type, U32 index /*= 0*/) const = 0;
- virtual BOOL isWearingWearableType(LLWearableType::EType type ) const = 0;
-public:
- static LLColor4 getDummyColor();
- virtual void updateMeshTextures() = 0;
};
#endif // LL_AVATAR_APPEARANCE_H