summaryrefslogtreecommitdiff
path: root/include/assets.h
blob: 6761d5197037bf5ab8b2536b302c40f1c7d914a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <raylib.h>

typedef enum AssetType {
  Texture_Asset
} AssetType;

typedef struct Asset {
  AssetType type;
  const char* name;
  const char* filePath;

  Texture2D texture;
} Asset;

void LoadAssets();
Asset* GetMatchingAssetWithType(const char* targetName, AssetType targetType);
Asset* GetMatchingAssetExitOnFail(const char* targetName, AssetType targetType);
void UnloadAssets();