summaryrefslogtreecommitdiff
path: root/asset.h
diff options
context:
space:
mode:
Diffstat (limited to 'asset.h')
-rw-r--r--asset.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/asset.h b/asset.h
index 35496bf..91bb2fe 100644
--- a/asset.h
+++ b/asset.h
@@ -21,6 +21,11 @@ struct Mesh;
asset_type_mesh, \
"gun.msh" \
) \
+ x( \
+ asset_id_gun_texture, \
+ asset_type_texture, \
+ "gun.bc1" \
+ ) \
typedef enum {
#define x(id, type, path) id,
@@ -30,7 +35,8 @@ typedef enum {
} Asset_ID;
typedef enum {
- asset_type_mesh
+ asset_type_mesh,
+ asset_type_texture
} Asset_Type;
typedef struct {
@@ -61,5 +67,6 @@ Asset_Data* read_asset_data(
);
const struct Mesh* get_mesh(Asset_ID id);
+const struct Texture* get_texture(Asset_ID id);
#endif