blob: beeb67298bf9bd7c33b8f1d236922ecf42ba12c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#include "gameCommon.h"
#ifndef ASSETS_H
#define ASSETS_H
#define ASSET_PATH_MAX 255
#define TEXTURE_ASSET_COUNT 4
#define MODEL_ASSET_COUNT 10
// Paths to assets.
extern const char textureAssetPaths[TEXTURE_ASSET_COUNT][ASSET_PATH_MAX];
extern const char modelAssetPaths[MODEL_ASSET_COUNT][ASSET_PATH_MAX];
typedef int32_t AssetId;
// Texture asset ids.
enum {
ICON_ASSET,
ICON128_ASSET,
ICON64_ASSET,
GYROSCOPE_TEXTURE_ASSET,
};
// Model asset ids.
enum {
ANTIFA_SHIP_ASSET,
SOLDATO_ASSET,
CAPORATE_ASSET,
SERGENTE_ASSET,
MARESCIALLO_ASSET,
GENERALE_ASSET,
MUSSOLINI_ASSET,
GUIDED_MISSILE_ASSET,
MISSILE_ASSET,
GYROSCOPE_ASSET
};
typedef struct Assets {
Texture2D textures[TEXTURE_ASSET_COUNT];
Model models[MODEL_ASSET_COUNT];
} Assets;
void LoadAssets(Assets * assets);
void unloadAssets(Assets * assets);
#endif
|