diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llappearance.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-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/llappearance.h')
-rw-r--r-- | linden/indra/newview/llappearance.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llappearance.h b/linden/indra/newview/llappearance.h index 582b559..ee8c22c 100644 --- a/linden/indra/newview/llappearance.h +++ b/linden/indra/newview/llappearance.h | |||
@@ -32,24 +32,24 @@ | |||
32 | #ifndef LL_LLAPPEARANCE_H | 32 | #ifndef LL_LLAPPEARANCE_H |
33 | #define LL_LLAPPEARANCE_H | 33 | #define LL_LLAPPEARANCE_H |
34 | 34 | ||
35 | #include "llskiplist.h" | ||
36 | #include "lluuid.h" | 35 | #include "lluuid.h" |
37 | 36 | ||
38 | class LLAppearance | 37 | class LLAppearance |
39 | { | 38 | { |
40 | public: | 39 | public: |
41 | LLAppearance() {} | 40 | LLAppearance() {} |
42 | ~LLAppearance() { mParamMap.deleteAllData(); } | 41 | ~LLAppearance() { mParamMap.clear(); } |
43 | 42 | ||
44 | void addParam( S32 id, F32 value ) { mParamMap.addData( id, new F32(value) ); } | 43 | void addParam( S32 id, F32 value ) { mParamMap[id] = value; } |
45 | F32* getParam( S32 id ) { F32* temp = mParamMap.getIfThere( id ); return temp; } // temp works around an invalid warning. | 44 | F32 getParam( S32 id, F32 defval ) { return get_if_there(mParamMap, id, defval ); } |
46 | 45 | ||
47 | void addTexture( S32 te, const LLUUID& uuid ) { if( te < LLVOAvatar::TEX_NUM_ENTRIES ) mTextures[te] = uuid; } | 46 | void addTexture( S32 te, const LLUUID& uuid ) { if( te < LLVOAvatar::TEX_NUM_ENTRIES ) mTextures[te] = uuid; } |
48 | const LLUUID& getTexture( S32 te ) { return ( te < LLVOAvatar::TEX_NUM_ENTRIES ) ? mTextures[te] : LLUUID::null; } | 47 | const LLUUID& getTexture( S32 te ) { return ( te < LLVOAvatar::TEX_NUM_ENTRIES ) ? mTextures[te] : LLUUID::null; } |
49 | 48 | ||
50 | void clear() { mParamMap.deleteAllData(); for( S32 i=0; i<LLVOAvatar::TEX_NUM_ENTRIES; i++ ) mTextures[i].setNull(); } | 49 | void clear() { mParamMap.clear(); for( S32 i=0; i<LLVOAvatar::TEX_NUM_ENTRIES; i++ ) mTextures[i].setNull(); } |
51 | 50 | ||
52 | LLPtrSkipMap<S32, F32*> mParamMap; | 51 | typedef std::map<S32, F32> param_map_t; |
52 | param_map_t mParamMap; | ||
53 | LLUUID mTextures[LLVOAvatar::TEX_NUM_ENTRIES]; | 53 | LLUUID mTextures[LLVOAvatar::TEX_NUM_ENTRIES]; |
54 | }; | 54 | }; |
55 | 55 | ||