summaryrefslogtreecommitdiff
path: root/asset.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-07-22 20:21:34 +1000
committerquou <quou@disroot.org>2024-07-22 20:21:34 +1000
commitd2c76fd62fa735f3d4fc3ceb55a75d6f0b2dc758 (patch)
tree92351ab512c5ec914ec5cbd918a5d72ed60bc0b6 /asset.h
parentcf193ce71bd1f13cebcafac718c124640c912060 (diff)
sampling textures in game.
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