From cdfd05b4e5b4ffedae1a4fffa46f1217a88d09ee Mon Sep 17 00:00:00 2001 From: rodri Date: Fri, 27 Sep 2024 20:58:01 +0000 Subject: implement exportmodel(2). this writes a model and its assets into a directory. --- graphics.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics.h') 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); -- cgit v1.2.3