summaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-09-27 20:58:01 +0000
committerrodri <rgl@antares-labs.eu>2024-09-27 20:58:01 +0000
commitcdfd05b4e5b4ffedae1a4fffa46f1217a88d09ee (patch)
tree3ede2d2c9d05f04daa64c0deb542cd1b2e6ce0b9 /graphics.h
parent50d107f27c8ee8980693f54d0fadbdd641516e2a (diff)
downloadlibgraphics-cdfd05b4e5b4ffedae1a4fffa46f1217a88d09ee.tar.gz
libgraphics-cdfd05b4e5b4ffedae1a4fffa46f1217a88d09ee.tar.bz2
libgraphics-cdfd05b4e5b4ffedae1a4fffa46f1217a88d09ee.zip
implement exportmodel(2).
this writes a model and its assets into a directory.
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics.h b/graphics.h
index e64354c..3479c7d 100644
--- a/graphics.h
+++ b/graphics.h
@@ -82,6 +82,7 @@ struct Texture
{
Memimage *image;
int type;
+ char *file;
};
struct Cubemap
@@ -406,6 +407,7 @@ void orthographic(Matrix3, double, double, double, double, double, double);
/* marshal */
Model *readmodel(int);
usize writemodel(int, Model*);
+int exportmodel(char*, Model*);
/* scene */
Model *newmodel(void);