summaryrefslogtreecommitdiff
path: root/include/assets.h
blob: 61b198effe2379dfe31e37d671c73edd5dea21be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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);
void UnloadAssets();