Rename load_asset to load_asset_from_file

This commit is contained in:
abdelrahman committed 2023-11-04 22:16:10 +00:00
1 parent b74f7c6e3a
commit c60a9e6507
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ void remove_object(ObjectID *id);
// END OBJECT MANAGEMENT API
// ASSET MANAGEMENT API
AssetID load_asset(const char *path, AssetType type);
AssetID load_asset_from_file(const char *path, AssetType type);
void unload_asset(AssetID *id);
#ifdef __ANDROID__
+1 -1
View File
@@ -206,7 +206,7 @@ void remove_object(ObjectID *id) {
remove_object_from_store(GameEngine.object_store, id);
}
AssetID load_asset(const char *path, AssetType type) {
AssetID load_asset_from_file(const char *path, AssetType type) {
return type == ASSET_TYPE_IMAGE
? load_asset_to_manager(GameEngine.asset_manager, path, type,
GameEngine.window.renderer, NULL)