| 148 | } |
| 149 | |
| 150 | void App::loadImage( std::string path ) { |
| 151 | std::string filename( FileSystem::fileRemoveExtension( FileSystem::fileNameFromPath( path ) ) ); |
| 152 | Texture* tex = TextureFactory::instance()->loadFromFile( path ); |
| 153 | if ( tex ) { |
| 154 | Uint32 texId = tex->getTextureId(); |
| 155 | TextureRegion* texRegion = GlobalTextureAtlas::instance()->add( texId, filename ); |
| 156 | mImagesLoaded[texId] = texRegion; |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | FontTrueType* App::loadFont( const std::string& name, std::string fontPath, |
| 161 | const std::string& fallback ) { |
nothing calls this directly
no test coverage detected