diff options
author | quou <quou@disroot.org> | 2024-07-22 20:21:34 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-07-22 20:21:34 +1000 |
commit | d2c76fd62fa735f3d4fc3ceb55a75d6f0b2dc758 (patch) | |
tree | 92351ab512c5ec914ec5cbd918a5d72ed60bc0b6 /asset.h | |
parent | cf193ce71bd1f13cebcafac718c124640c912060 (diff) |
sampling textures in game.
Diffstat (limited to 'asset.h')
-rw-r--r-- | asset.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |