summaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-08-23 12:41:28 +0000
committerrodri <rgl@antares-labs.eu>2024-08-23 12:41:28 +0000
commit7dc2c0d02e6fb4fbdafb15bd66aa7d45768eb6ac (patch)
tree87b5bc8c10d218861cd7e2b22aafc965cef697f8 /graphics.h
parentaad0e63683c0b66cdd8d30c0253aafc5e4da0ef0 (diff)
downloadlibgraphics-7dc2c0d02e6fb4fbdafb15bd66aa7d45768eb6ac.tar.gz
libgraphics-7dc2c0d02e6fb4fbdafb15bd66aa7d45768eb6ac.tar.bz2
libgraphics-7dc2c0d02e6fb4fbdafb15bd66aa7d45768eb6ac.zip
methods to add primitives and materials to a Model.
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h3
1 files changed, 3 insertions, 0 deletions
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