- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osg/Texture.cpp
r12543 r13041 118 118 if (fr[0].matchWord("useHardwareMipMapGeneration")) 119 119 { 120 if (fr[1].matchWord("TRUE")) 120 if (fr[1].matchWord("TRUE")) 121 121 { 122 122 texture.setUseHardwareMipMapGeneration(true); … … 124 124 iteratorAdvanced = true; 125 125 } 126 else if (fr[1].matchWord("FALSE")) 126 else if (fr[1].matchWord("FALSE")) 127 127 { 128 128 texture.setUseHardwareMipMapGeneration(false); … … 134 134 if (fr[0].matchWord("unRefImageDataAfterApply")) 135 135 { 136 if (fr[1].matchWord("TRUE")) 136 if (fr[1].matchWord("TRUE")) 137 137 { 138 138 texture.setUnRefImageDataAfterApply(true); … … 140 140 iteratorAdvanced = true; 141 141 } 142 else if (fr[1].matchWord("FALSE")) 142 else if (fr[1].matchWord("FALSE")) 143 143 { 144 144 texture.setUnRefImageDataAfterApply(false); … … 192 192 if (fr[0].matchWord("resizeNonPowerOfTwo")) 193 193 { 194 if (fr[1].matchWord("TRUE")) 194 if (fr[1].matchWord("TRUE")) 195 195 { 196 196 texture.setResizeNonPowerOfTwoHint(true); … … 198 198 iteratorAdvanced = true; 199 199 } 200 else if (fr[1].matchWord("FALSE")) 200 else if (fr[1].matchWord("FALSE")) 201 201 { 202 202 texture.setResizeNonPowerOfTwoHint(false); … … 208 208 if (fr[0].matchWord("shadowComparison")) 209 209 { 210 if (fr[1].matchWord("TRUE")) 210 if (fr[1].matchWord("TRUE")) 211 211 { 212 212 texture.setShadowComparison(true); … … 214 214 iteratorAdvanced = true; 215 215 } 216 else if (fr[1].matchWord("FALSE")) 216 else if (fr[1].matchWord("FALSE")) 217 217 { 218 218 texture.setShadowComparison(false); … … 259 259 fw.indent() << "mag_filter " << Texture_getFilterStr(texture.getFilter(Texture::MAG_FILTER)) << std::endl; 260 260 fw.indent() << "maxAnisotropy " << texture.getMaxAnisotropy() << std::endl; 261 261 262 262 fw.indent() << "borderColor " << texture.getBorderColor() << std::endl; 263 263 fw.indent() << "borderWidth " << texture.getBorderWidth() << std::endl; … … 265 265 fw.indent() << "useHardwareMipMapGeneration "<< (texture.getUseHardwareMipMapGeneration()?"TRUE":"FALSE") << std::endl; 266 266 fw.indent() << "unRefImageDataAfterApply "<< (texture.getUnRefImageDataAfterApply()?"TRUE":"FALSE") << std::endl; 267 267 268 268 fw.indent() << "internalFormatMode " << Texture_getInternalFormatModeStr(texture.getInternalFormatMode()) << std::endl; 269 269 if (texture.getInternalFormatMode()==Texture::USE_USER_DEFINED_FORMAT) … … 276 276 277 277 } 278 278 279 279 if (texture.getSourceFormat()) 280 280 { … … 283 283 if (str) fw.indent() << "sourceFormat " << str << std::endl; 284 284 else fw.indent() << "sourceFormat " << texture.getSourceFormat() << std::endl; 285 285 286 286 } 287 287 … … 292 292 if (str) fw.indent() << "sourceType " << str << std::endl; 293 293 else fw.indent() << "sourceType " << texture.getSourceType() << std::endl; 294 294 295 295 } 296 296
