From 3155c6737832c54310c70ecaaf8667d0362de5e8 Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 26 Sep 2024 15:22:02 +0000 Subject: implement a parser for a model(6). get rid of the libobj dependency. --- graphics.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'graphics.h') diff --git a/graphics.h b/graphics.h index 2fd516e..e64354c 100644 --- a/graphics.h +++ b/graphics.h @@ -403,9 +403,9 @@ Point3 world2model(Entity*, Point3); void perspective(Matrix3, double, double, double, double); void orthographic(Matrix3, double, double, double, double, double, double); -/* obj */ -int loadobjmodel(Model*, OBJ*); -Model *readobjmodel(char*); +/* marshal */ +Model *readmodel(int); +usize writemodel(int, Model*); /* scene */ Model *newmodel(void); @@ -441,9 +441,11 @@ Point maxpt(Point, Point); Point2 modulapt2(Point2, Point2); Point2 minpt2(Point2, Point2); Point2 maxpt2(Point2, Point2); +int eqpt2(Point2, Point2); Point3 modulapt3(Point3, Point3); Point3 minpt3(Point3, Point3); Point3 maxpt3(Point3, Point3); +int eqpt3(Point3, Point3); Memimage *rgba(ulong); Memimage *dupmemimage(Memimage*); -- cgit v1.2.3