aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappearance.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/llappearance.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/llappearance.h')
-rw-r--r--linden/indra/newview/llappearance.h12
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
38class LLAppearance 37class LLAppearance
39{ 38{
40public: 39public:
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