diff options
author | rodri <rgl@antares-labs.eu> | 2024-09-26 15:22:02 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-09-26 15:22:02 +0000 |
commit | 3155c6737832c54310c70ecaaf8667d0362de5e8 (patch) | |
tree | 5046974fdbaef855fb29d19671a9b80a9deb41f2 /graphics.h | |
parent | a8c789be9ab0fec65004118b7df373e84900cb1a (diff) | |
download | libgraphics-3155c6737832c54310c70ecaaf8667d0362de5e8.tar.gz libgraphics-3155c6737832c54310c70ecaaf8667d0362de5e8.tar.bz2 libgraphics-3155c6737832c54310c70ecaaf8667d0362de5e8.zip |
implement a parser for a model(6). get rid of the libobj dependency.
Diffstat (limited to 'graphics.h')
-rw-r--r-- | graphics.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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*); |