| 493 | } |
| 494 | |
| 495 | bool TexturePacker::addTexture( const std::string& TexturePath ) { |
| 496 | if ( FileSystem::fileExists( TexturePath ) ) { |
| 497 | Image::FormatConfiguration imageFormatConfiguration; |
| 498 | |
| 499 | imageFormatConfiguration.svgScale( mScalableSVG ? mPixelDensity / 100.f : 1.f ); |
| 500 | |
| 501 | TexturePackerTex* TPack = |
| 502 | eeNew( TexturePackerTex, ( TexturePath, imageFormatConfiguration ) ); |
| 503 | |
| 504 | return addPackerTex( TPack ); |
| 505 | } |
| 506 | |
| 507 | return false; |
| 508 | } |
| 509 | |
| 510 | Int32 TexturePacker::packTextures() { |
| 511 | TexturePackerTex* t = NULL; |