aboutsummaryrefslogtreecommitdiffstats
path: root/src/assets.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-25 06:06:55 +0000
committernathan <nathansmith@disroot.org>2025-07-25 06:06:55 +0000
commitf96ad3c93b9a5a74d2af2e9b8b4835a672a9875b (patch)
tree3fa0e29ff83976450bab683401df422a1078b729 /src/assets.c
parent7c4d899d6b8703f5cf787629a329c59a77a5411e (diff)
downloadFindThings-f96ad3c93b9a5a74d2af2e9b8b4835a672a9875b.tar.gz
FindThings-f96ad3c93b9a5a74d2af2e9b8b4835a672a9875b.tar.bz2
FindThings-f96ad3c93b9a5a74d2af2e9b8b4835a672a9875b.zip
Fixing things up for future thingies
Diffstat (limited to 'src/assets.c')
-rw-r--r--src/assets.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/assets.c b/src/assets.c
index a50b824..604b622 100644
--- a/src/assets.c
+++ b/src/assets.c
@@ -1,11 +1,6 @@
#include "assets.h"
-const char imageAssetPaths[IMAGE_ASSET_COUNT][FT_NAMEMAX] = {
- "heightmap.png"
-};
-
const char textureAssetPaths[TEXTURE_ASSET_COUNT][FT_NAMEMAX] = {
- "heightmap.png",
"mint.png",
"nickel.png",
"tree.png"
@@ -13,14 +8,6 @@ const char textureAssetPaths[TEXTURE_ASSET_COUNT][FT_NAMEMAX] = {
void initAssets(Assets* assets)
{
- // Images.
- for (int index = 0; index < IMAGE_ASSET_COUNT; ++index)
- {
- assets->images[index] = LoadImage(
- TextFormat("assets/%s", imageAssetPaths[index]));
- }
-
- // Textures.
for (int index = 0; index < TEXTURE_ASSET_COUNT; ++index)
{
assets->textures[index] = LoadTexture(
@@ -30,14 +17,7 @@ void initAssets(Assets* assets)
void closeAssets(Assets* assets)
{
- // Images.
- for (int index = 0; index < IMAGE_ASSET_COUNT; ++index)
- {
- UnloadImage(assets->images[index]);
- }
-
- // Textures.
- for (int index = 0; index < TEXTURE_ASSET_COUNT; ++index)
+ for (int index = 0; index < TEXTURE_ASSET_COUNT; ++index)
{
UnloadTexture(assets->textures[index]);
}