diff options
author | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
commit | 420b91db29485df39fd6e724e782c449158811cb (patch) | |
tree | b471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/llappearance.h |
Print done when done.
Diffstat (limited to 'indra/newview/llappearance.h')
-rw-r--r-- | indra/newview/llappearance.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/indra/newview/llappearance.h b/indra/newview/llappearance.h new file mode 100644 index 0000000000..b198429865 --- /dev/null +++ b/indra/newview/llappearance.h @@ -0,0 +1,33 @@ +/** + * @file llappearance.h + * @brief LLAppearance class definition + * + * Copyright (c) 2002-$CurrentYear$, Linden Research, Inc. + * $License$ + */ + +#ifndef LL_LLAPPEARANCE_H +#define LL_LLAPPEARANCE_H + +#include "llskiplist.h" +#include "lluuid.h" + +class LLAppearance +{ +public: + LLAppearance() {} + ~LLAppearance() { mParamMap.deleteAllData(); } + + void addParam( S32 id, F32 value ) { mParamMap.addData( id, new F32(value) ); } + F32* getParam( S32 id ) { F32* temp = mParamMap.getIfThere( id ); return temp; } // temp works around an invalid warning. + + void addTexture( S32 te, const LLUUID& uuid ) { if( te < LLVOAvatar::TEX_NUM_ENTRIES ) mTextures[te] = uuid; } + const LLUUID& getTexture( S32 te ) { return ( te < LLVOAvatar::TEX_NUM_ENTRIES ) ? mTextures[te] : LLUUID::null; } + + void clear() { mParamMap.deleteAllData(); for( S32 i=0; i<LLVOAvatar::TEX_NUM_ENTRIES; i++ ) mTextures[i].setNull(); } + + LLPtrSkipMap<S32, F32*> mParamMap; + LLUUID mTextures[LLVOAvatar::TEX_NUM_ENTRIES]; +}; + +#endif // LL_LLAPPEARANCE_H |