diff options
author | rodri <rgl@antares-labs.eu> | 2020-04-17 11:37:10 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2020-04-17 11:37:10 +0000 |
commit | e77a34629060abfad8e463efda0c3ffc54379793 (patch) | |
tree | 9151e47fab853248f95594e6ef48999a1ff6255f /libobj/obj.2.man | |
parent | 263444216730830b712a4f8f3a087513c5ac93e9 (diff) | |
download | 3dee-e77a34629060abfad8e463efda0c3ffc54379793.tar.gz 3dee-e77a34629060abfad8e463efda0c3ffc54379793.tar.bz2 3dee-e77a34629060abfad8e463efda0c3ffc54379793.zip |
roll everything back.
Diffstat (limited to 'libobj/obj.2.man')
-rw-r--r-- | libobj/obj.2.man | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/libobj/obj.2.man b/libobj/obj.2.man deleted file mode 100644 index 9196385..0000000 --- a/libobj/obj.2.man +++ /dev/null @@ -1,88 +0,0 @@ -.TH OBJ 2 -.SH NAME -objparse, -objfree, -OBJfmt, -OBJfmtinstall -\- OBJ parser -.SH SYNOPSIS -.ta 0.7i +0.7i +0.7i +0.7i +0.7i +0.7i +0.7i -.EX -#include <u.h> -#include <libc.h> -#include <obj.h> - -enum { - OBJVGeometric, - OBJVTexture, - OBJVNormal, - OBJVParametric, - OBJNVERT -}; - -enum { - OBJEPoint, - OBJELine, - OBJEFace, - OBJECurve, - OBJECurve2, - OBJESurface -}; - -enum { - OBJHTSIZE = 17 -}; - -typedef struct -{ - union { - struct { double x, y, z, w; }; /* geometric */ - struct { double u, v, vv; }; /* texture and parametric */ - struct { double i, j, k; }; /* normal */ - }; -} OBJVertex; - -typedef struct -{ - OBJVertex *verts; - int nvert; -} OBJVertexArray; - -typedef struct -{ - int *indices; - int nindex; - int type; - OBJElem *next; -} OBJElem; - -typedef struct -{ - char *name; - OBJElem *child; - OBJObject *next; -} OBJObject; - -typedef struct -{ - OBJVertexArray vertdata[OBJNVERT]; - OBJObject *objtab[OBJHTSIZE]; -} OBJ; - -OBJ *objparse(char *file); -void objfree(OBJ *obj); -int OBJfmt(Fmt*); -void OBJfmtinstall(void); -.EE -.SH DESCRIPTION -An OBJ structure contains geometry and material information about a set of 3D objects -.SH SOURCE -.B /sys/src/libobj -.SH SEE ALSO -.IR geometry (2) -.br -http://paulbourke.net/dataformats/obj -.br -https://people.sc.fsu.edu/~jburkardt/data/obj/obj.html -.SH DIAGNOSTICS -.SH BUGS |