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

Method loadImage

src/tools/uieditor/uieditor.cpp:150–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void 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
160FontTrueType* App::loadFont( const std::string& name, std::string fontPath,
161 const std::string& fallback ) {

Callers

nothing calls this directly

Calls 2

loadFromFileMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected