mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 18:50:16 +03:00
migrate texture consumers to shared ownership
- return TexturePtr from texture creation and lookup APIs - retain texture handles in regions, atlases, fonts, framebuffers, sprites, UI, and maps - keep queued batch textures alive until rendering completes - preserve asynchronous atlas load results directly - replace TextureLoader unload semantics with reset - remove public texture deletion APIs and obsolete Sprite ownership flags - migrate bundled tools, examples, tests, ecode, and diagnostics - document Stage 2 completion and the temporary factory retention boundary
This commit is contained in:
@@ -101,8 +101,8 @@ EE_MAIN_FUNC int main( int, char*[] ) {
|
||||
FileSystem::changeWorkingDirectory( Sys::getProcessPath() );
|
||||
|
||||
// Load the rock texture
|
||||
Texture* PlanetTex = TextureFactory::instance()->loadFromFile( "assets/sprites/7.png" );
|
||||
Texture* RockTex = TextureFactory::instance()->loadFromFile( "assets/sprites/5.png" );
|
||||
TexturePtr PlanetTex = TextureFactory::instance()->loadFromFile( "assets/sprites/7.png" );
|
||||
TexturePtr RockTex = TextureFactory::instance()->loadFromFile( "assets/sprites/5.png" );
|
||||
|
||||
// Load a previously generated texture atlas that contains the TextureRegions needed to load
|
||||
// an animated sprite
|
||||
|
||||
Reference in New Issue
Block a user