From 7dc2c0d02e6fb4fbdafb15bd66aa7d45768eb6ac Mon Sep 17 00:00:00 2001 From: rodri Date: Fri, 23 Aug 2024 12:41:28 +0000 Subject: methods to add primitives and materials to a Model. --- graphics.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'graphics.h') diff --git a/graphics.h b/graphics.h index 448acbb..a2c42e2 100644 --- a/graphics.h +++ b/graphics.h @@ -164,6 +164,9 @@ struct Model ulong nmaterials; Texture *tex; /* texture map (TODO get rid of it, use materials) */ + + int (*addprim)(Model*, Primitive); + int (*addmaterial)(Model*, Material); }; struct Entity -- cgit v1.2.3