aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltexlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltexlayer.cpp')
-rw-r--r--linden/indra/newview/lltexlayer.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/linden/indra/newview/lltexlayer.cpp b/linden/indra/newview/lltexlayer.cpp
index 0e4c9c2..e331146 100644
--- a/linden/indra/newview/lltexlayer.cpp
+++ b/linden/indra/newview/lltexlayer.cpp
@@ -991,7 +991,7 @@ BOOL LLTexLayerInfo::parseXml(LLXmlTreeNode* node)
991 static LLStdStringHandle write_all_channels_string = LLXmlTree::addAttributeString("write_all_channels"); 991 static LLStdStringHandle write_all_channels_string = LLXmlTree::addAttributeString("write_all_channels");
992 node->getFastAttributeBOOL( write_all_channels_string, mWriteAllChannels ); 992 node->getFastAttributeBOOL( write_all_channels_string, mWriteAllChannels );
993 993
994 LLString render_pass_name; 994 std::string render_pass_name;
995 static LLStdStringHandle render_pass_string = LLXmlTree::addAttributeString("render_pass"); 995 static LLStdStringHandle render_pass_string = LLXmlTree::addAttributeString("render_pass");
996 if( node->getFastAttributeString( render_pass_string, render_pass_name ) ) 996 if( node->getFastAttributeString( render_pass_string, render_pass_name ) )
997 { 997 {
@@ -1019,7 +1019,7 @@ BOOL LLTexLayerInfo::parseXml(LLXmlTreeNode* node)
1019 texture_node; 1019 texture_node;
1020 texture_node = node->getNextNamedChild()) 1020 texture_node = node->getNextNamedChild())
1021 { 1021 {
1022 LLString local_texture; 1022 std::string local_texture;
1023 static LLStdStringHandle tga_file_string = LLXmlTree::addAttributeString("tga_file"); 1023 static LLStdStringHandle tga_file_string = LLXmlTree::addAttributeString("tga_file");
1024 static LLStdStringHandle local_texture_string = LLXmlTree::addAttributeString("local_texture"); 1024 static LLStdStringHandle local_texture_string = LLXmlTree::addAttributeString("local_texture");
1025 static LLStdStringHandle file_is_mask_string = LLXmlTree::addAttributeString("file_is_mask"); 1025 static LLStdStringHandle file_is_mask_string = LLXmlTree::addAttributeString("file_is_mask");
@@ -1105,14 +1105,14 @@ BOOL LLTexLayerInfo::parseXml(LLXmlTreeNode* node)
1105 maskNode; 1105 maskNode;
1106 maskNode = node->getNextNamedChild()) 1106 maskNode = node->getNextNamedChild())
1107 { 1107 {
1108 LLString morph_name; 1108 std::string morph_name;
1109 static LLStdStringHandle morph_name_string = LLXmlTree::addAttributeString("morph_name"); 1109 static LLStdStringHandle morph_name_string = LLXmlTree::addAttributeString("morph_name");
1110 if (maskNode->getFastAttributeString(morph_name_string, morph_name)) 1110 if (maskNode->getFastAttributeString(morph_name_string, morph_name))
1111 { 1111 {
1112 BOOL invert = FALSE; 1112 BOOL invert = FALSE;
1113 static LLStdStringHandle invert_string = LLXmlTree::addAttributeString("invert"); 1113 static LLStdStringHandle invert_string = LLXmlTree::addAttributeString("invert");
1114 maskNode->getFastAttributeBOOL(invert_string, invert); 1114 maskNode->getFastAttributeBOOL(invert_string, invert);
1115 mMorphNameList.push_back(std::pair<LLString,BOOL>(morph_name,invert)); 1115 mMorphNameList.push_back(std::pair<std::string,BOOL>(morph_name,invert));
1116 } 1116 }
1117 } 1117 }
1118 1118
@@ -1206,7 +1206,7 @@ BOOL LLTexLayer::setInfo(LLTexLayerInfo* info)
1206 // morph target, need a better way of actually looking 1206 // morph target, need a better way of actually looking
1207 // this up. 1207 // this up.
1208 LLPolyMorphTarget *morph_param; 1208 LLPolyMorphTarget *morph_param;
1209 LLString *name = &(iter->first); 1209 std::string *name = &(iter->first);
1210 morph_param = (LLPolyMorphTarget *)(getTexLayerSet()->getAvatar()->getVisualParam(name->c_str())); 1210 morph_param = (LLPolyMorphTarget *)(getTexLayerSet()->getAvatar()->getVisualParam(name->c_str()));
1211 if (morph_param) 1211 if (morph_param)
1212 { 1212 {
@@ -2244,11 +2244,11 @@ BOOL LLTexParamColorInfo::parseXml(LLXmlTreeNode *node)
2244 return FALSE; 2244 return FALSE;
2245 } 2245 }
2246 2246
2247 LLString op_string; 2247 std::string op_string;
2248 static LLStdStringHandle operation_string = LLXmlTree::addAttributeString("operation"); 2248 static LLStdStringHandle operation_string = LLXmlTree::addAttributeString("operation");
2249 if( param_color_node->getFastAttributeString( operation_string, op_string ) ) 2249 if( param_color_node->getFastAttributeString( operation_string, op_string ) )
2250 { 2250 {
2251 LLString::toLower(op_string); 2251 LLStringUtil::toLower(op_string);
2252 if ( op_string == "add" ) mOperation = OP_ADD; 2252 if ( op_string == "add" ) mOperation = OP_ADD;
2253 else if ( op_string == "multiply" ) mOperation = OP_MULTIPLY; 2253 else if ( op_string == "multiply" ) mOperation = OP_MULTIPLY;
2254 else if ( op_string == "blend" ) mOperation = OP_BLEND; 2254 else if ( op_string == "blend" ) mOperation = OP_BLEND;
@@ -2465,7 +2465,7 @@ void LLTexStaticImageList::deleteCachedImages()
2465 2465
2466// Returns an LLImageTGA that contains the encoded data from a tga file named file_name. 2466// Returns an LLImageTGA that contains the encoded data from a tga file named file_name.
2467// Caches the result to speed identical subsequent requests. 2467// Caches the result to speed identical subsequent requests.
2468LLImageTGA* LLTexStaticImageList::getImageTGA(const LLString& file_name) 2468LLImageTGA* LLTexStaticImageList::getImageTGA(const std::string& file_name)
2469{ 2469{
2470 const char *namekey = sImageNames.addString(file_name); 2470 const char *namekey = sImageNames.addString(file_name);
2471 image_tga_map_t::iterator iter = mStaticImageListTGA.find(namekey); 2471 image_tga_map_t::iterator iter = mStaticImageListTGA.find(namekey);
@@ -2476,7 +2476,7 @@ LLImageTGA* LLTexStaticImageList::getImageTGA(const LLString& file_name)
2476 else 2476 else
2477 { 2477 {
2478 std::string path; 2478 std::string path;
2479 path = gDirUtilp->getExpandedFilename(LL_PATH_CHARACTER,file_name.c_str()); 2479 path = gDirUtilp->getExpandedFilename(LL_PATH_CHARACTER,file_name);
2480 LLPointer<LLImageTGA> image_tga = new LLImageTGA( path ); 2480 LLPointer<LLImageTGA> image_tga = new LLImageTGA( path );
2481 if( image_tga->getDataSize() > 0 ) 2481 if( image_tga->getDataSize() > 0 )
2482 { 2482 {
@@ -2495,7 +2495,7 @@ LLImageTGA* LLTexStaticImageList::getImageTGA(const LLString& file_name)
2495 2495
2496// Returns a GL Image (without a backing ImageRaw) that contains the decoded data from a tga file named file_name. 2496// Returns a GL Image (without a backing ImageRaw) that contains the decoded data from a tga file named file_name.
2497// Caches the result to speed identical subsequent requests. 2497// Caches the result to speed identical subsequent requests.
2498LLImageGL* LLTexStaticImageList::getImageGL(const LLString& file_name, BOOL is_mask ) 2498LLImageGL* LLTexStaticImageList::getImageGL(const std::string& file_name, BOOL is_mask )
2499{ 2499{
2500 LLPointer<LLImageGL> image_gl; 2500 LLPointer<LLImageGL> image_gl;
2501 const char *namekey = sImageNames.addString(file_name); 2501 const char *namekey = sImageNames.addString(file_name);
@@ -2536,11 +2536,11 @@ LLImageGL* LLTexStaticImageList::getImageGL(const LLString& file_name, BOOL is_m
2536 2536
2537// Reads a .tga file, decodes it, and puts the decoded data in image_raw. 2537// Reads a .tga file, decodes it, and puts the decoded data in image_raw.
2538// Returns TRUE if successful. 2538// Returns TRUE if successful.
2539BOOL LLTexStaticImageList::loadImageRaw( const LLString& file_name, LLImageRaw* image_raw ) 2539BOOL LLTexStaticImageList::loadImageRaw( const std::string& file_name, LLImageRaw* image_raw )
2540{ 2540{
2541 BOOL success = FALSE; 2541 BOOL success = FALSE;
2542 std::string path; 2542 std::string path;
2543 path = gDirUtilp->getExpandedFilename(LL_PATH_CHARACTER,file_name.c_str()); 2543 path = gDirUtilp->getExpandedFilename(LL_PATH_CHARACTER,file_name);
2544 LLPointer<LLImageTGA> image_tga = new LLImageTGA( path ); 2544 LLPointer<LLImageTGA> image_tga = new LLImageTGA( path );
2545 if( image_tga->getDataSize() > 0 ) 2545 if( image_tga->getDataSize() > 0 )
2546 { 2546 {