diff options
Diffstat (limited to 'linden/indra/newview/lltexlayer.h')
-rw-r--r-- | linden/indra/newview/lltexlayer.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/linden/indra/newview/lltexlayer.h b/linden/indra/newview/lltexlayer.h index 17cfb7c..742b484 100644 --- a/linden/indra/newview/lltexlayer.h +++ b/linden/indra/newview/lltexlayer.h | |||
@@ -86,7 +86,7 @@ public: | |||
86 | /*virtual*/ BOOL parseXml(LLXmlTreeNode* node); | 86 | /*virtual*/ BOOL parseXml(LLXmlTreeNode* node); |
87 | 87 | ||
88 | protected: | 88 | protected: |
89 | LLString mStaticImageFileName; | 89 | std::string mStaticImageFileName; |
90 | BOOL mMultiplyBlend; | 90 | BOOL mMultiplyBlend; |
91 | BOOL mSkipIfZeroWeight; | 91 | BOOL mSkipIfZeroWeight; |
92 | F32 mDomain; | 92 | F32 mDomain; |
@@ -126,7 +126,7 @@ public: | |||
126 | protected: | 126 | protected: |
127 | typedef std::vector<LLTexParamColorInfo *> color_info_list_t; | 127 | typedef std::vector<LLTexParamColorInfo *> color_info_list_t; |
128 | color_info_list_t mColorInfoList; | 128 | color_info_list_t mColorInfoList; |
129 | LLString mName; | 129 | std::string mName; |
130 | }; | 130 | }; |
131 | 131 | ||
132 | //----------------------------------------------------------------------------- | 132 | //----------------------------------------------------------------------------- |
@@ -143,10 +143,10 @@ public: | |||
143 | BOOL parseXml(LLXmlTreeNode* node); | 143 | BOOL parseXml(LLXmlTreeNode* node); |
144 | 144 | ||
145 | protected: | 145 | protected: |
146 | LLString mBodyRegion; | 146 | std::string mBodyRegion; |
147 | S32 mWidth; | 147 | S32 mWidth; |
148 | S32 mHeight; | 148 | S32 mHeight; |
149 | LLString mStaticAlphaFileName; | 149 | std::string mStaticAlphaFileName; |
150 | BOOL mClearAlpha; // Set alpha to 1 for this layerset (if there is no mStaticAlphaFileName) | 150 | BOOL mClearAlpha; // Set alpha to 1 for this layerset (if there is no mStaticAlphaFileName) |
151 | 151 | ||
152 | typedef std::vector<LLTexLayerInfo*> layer_info_list_t; | 152 | typedef std::vector<LLTexLayerInfo*> layer_info_list_t; |
@@ -173,20 +173,20 @@ public: | |||
173 | BOOL parseXml(LLXmlTreeNode* node); | 173 | BOOL parseXml(LLXmlTreeNode* node); |
174 | 174 | ||
175 | protected: | 175 | protected: |
176 | LLString mName; | 176 | std::string mName; |
177 | 177 | ||
178 | BOOL mWriteAllChannels; // Don't use masking. Just write RGBA into buffer, | 178 | BOOL mWriteAllChannels; // Don't use masking. Just write RGBA into buffer, |
179 | ERenderPass mRenderPass; | 179 | ERenderPass mRenderPass; |
180 | 180 | ||
181 | LLString mGlobalColor; | 181 | std::string mGlobalColor; |
182 | LLColor4 mFixedColor; | 182 | LLColor4 mFixedColor; |
183 | 183 | ||
184 | S32 mLocalTexture; | 184 | S32 mLocalTexture; |
185 | LLString mStaticImageFileName; | 185 | std::string mStaticImageFileName; |
186 | BOOL mStaticImageIsMask; | 186 | BOOL mStaticImageIsMask; |
187 | BOOL mUseLocalTextureAlphaOnly; // Ignore RGB channels from the input texture. Use alpha as a mask | 187 | BOOL mUseLocalTextureAlphaOnly; // Ignore RGB channels from the input texture. Use alpha as a mask |
188 | 188 | ||
189 | typedef std::vector<std::pair<LLString,BOOL> > morph_name_list_t; | 189 | typedef std::vector<std::pair<std::string,BOOL> > morph_name_list_t; |
190 | morph_name_list_t mMorphNameList; | 190 | morph_name_list_t mMorphNameList; |
191 | 191 | ||
192 | typedef std::vector<LLTexParamColorInfo*> color_info_list_t; | 192 | typedef std::vector<LLTexParamColorInfo*> color_info_list_t; |
@@ -260,7 +260,7 @@ public: | |||
260 | 260 | ||
261 | BOOL render( S32 x, S32 y, S32 width, S32 height ); | 261 | BOOL render( S32 x, S32 y, S32 width, S32 height ); |
262 | BOOL renderBump( S32 x, S32 y, S32 width,S32 height ); | 262 | BOOL renderBump( S32 x, S32 y, S32 width,S32 height ); |
263 | BOOL isBodyRegion( const char* region ) { return mInfo->mBodyRegion == region; } | 263 | BOOL isBodyRegion( const std::string& region ) { return mInfo->mBodyRegion == region; } |
264 | LLTexLayerSetBuffer* getComposite(); | 264 | LLTexLayerSetBuffer* getComposite(); |
265 | void requestUpdate(); | 265 | void requestUpdate(); |
266 | void requestUpload(); | 266 | void requestUpload(); |
@@ -276,7 +276,7 @@ public: | |||
276 | void deleteCaches(); | 276 | void deleteCaches(); |
277 | void gatherAlphaMasks(U8 *data, S32 width, S32 height); | 277 | void gatherAlphaMasks(U8 *data, S32 width, S32 height); |
278 | void applyMorphMask(U8* tex_data, S32 width, S32 height, S32 num_components); | 278 | void applyMorphMask(U8* tex_data, S32 width, S32 height, S32 num_components); |
279 | const LLString& getBodyRegion() { return mInfo->mBodyRegion; } | 279 | const std::string getBodyRegion() { return mInfo->mBodyRegion; } |
280 | BOOL hasComposite() { return (mComposite != NULL); } | 280 | BOOL hasComposite() { return (mComposite != NULL); } |
281 | void setBump( BOOL b ) { mHasBump = b; } | 281 | void setBump( BOOL b ) { mHasBump = b; } |
282 | BOOL hasBump() { return mHasBump; } | 282 | BOOL hasBump() { return mHasBump; } |
@@ -338,7 +338,7 @@ public: | |||
338 | 338 | ||
339 | void invalidateMorphMasks(); | 339 | void invalidateMorphMasks(); |
340 | ERenderPass getRenderPass() { return mInfo->mRenderPass; } | 340 | ERenderPass getRenderPass() { return mInfo->mRenderPass; } |
341 | const LLString& getGlobalColor() { return mInfo->mGlobalColor; } | 341 | const std::string& getGlobalColor() { return mInfo->mGlobalColor; } |
342 | BOOL findNetColor( LLColor4* color ); | 342 | BOOL findNetColor( LLColor4* color ); |
343 | BOOL renderImageRaw( U8* in_data, S32 in_width, S32 in_height, S32 in_components, S32 width, S32 height, BOOL is_mask ); | 343 | BOOL renderImageRaw( U8* in_data, S32 in_width, S32 in_height, S32 in_components, S32 width, S32 height, BOOL is_mask ); |
344 | BOOL renderAlphaMasks( S32 x, S32 y, S32 width, S32 height, LLColor4* colorp ); | 344 | BOOL renderAlphaMasks( S32 x, S32 y, S32 width, S32 height, LLColor4* colorp ); |
@@ -505,15 +505,15 @@ public: | |||
505 | LLTexStaticImageList(); | 505 | LLTexStaticImageList(); |
506 | ~LLTexStaticImageList(); | 506 | ~LLTexStaticImageList(); |
507 | 507 | ||
508 | LLImageRaw* getImageRaw( const LLString& file_name ); | 508 | LLImageRaw* getImageRaw( const std::string& file_name ); |
509 | LLImageGL* getImageGL( const LLString& file_name, BOOL is_mask ); | 509 | LLImageGL* getImageGL( const std::string& file_name, BOOL is_mask ); |
510 | LLImageTGA* getImageTGA( const LLString& file_name ); | 510 | LLImageTGA* getImageTGA( const std::string& file_name ); |
511 | 511 | ||
512 | void deleteCachedImages(); | 512 | void deleteCachedImages(); |
513 | void dumpByteCount(); | 513 | void dumpByteCount(); |
514 | 514 | ||
515 | private: | 515 | private: |
516 | BOOL loadImageRaw( const LLString& file_name, LLImageRaw* image_raw ); | 516 | BOOL loadImageRaw( const std::string& file_name, LLImageRaw* image_raw ); |
517 | 517 | ||
518 | private: | 518 | private: |
519 | static LLStringTable sImageNames; | 519 | static LLStringTable sImageNames; |