MCPcopy Create free account
hub / github.com/SpartanJ/eepp / addTexture

Method addTexture

src/eepp/graphics/texturepacker.cpp:495–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495bool 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
510Int32 TexturePacker::packTextures() {
511 TexturePackerTex* t = NULL;

Callers 1

createChildMethod · 0.80

Calls 1

svgScaleMethod · 0.80

Tested by

no test coverage detected