From d2c76fd62fa735f3d4fc3ceb55a75d6f0b2dc758 Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 22 Jul 2024 20:21:34 +1000 Subject: sampling textures in game. --- asset.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'asset.h') 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 -- cgit v1.2.3-54-g00ecf