Rename load_asset to load_asset_from_file
This commit is contained in:
1 parent
b74f7c6e3a
commit
c60a9e6507
2 files changed
+2
-2
No files matched your search
@@ -45,7 +45,7 @@ void remove_object(ObjectID *id);
|
|||||||
// END OBJECT MANAGEMENT API
|
// END OBJECT MANAGEMENT API
|
||||||
|
|
||||||
// ASSET 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);
|
void unload_asset(AssetID *id);
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
|
|||||||
+1
-1
@@ -206,7 +206,7 @@ void remove_object(ObjectID *id) {
|
|||||||
remove_object_from_store(GameEngine.object_store, 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
|
return type == ASSET_TYPE_IMAGE
|
||||||
? load_asset_to_manager(GameEngine.asset_manager, path, type,
|
? load_asset_to_manager(GameEngine.asset_manager, path, type,
|
||||||
GameEngine.window.renderer, NULL)
|
GameEngine.window.renderer, NULL)
|
||||||
|
|||||||
Reference in new issue
Block a user