shithub: libobj

Download patch

ref: d1dbc002287de52e837af551e2a3a03678cc4bb4
parent: 1d7dfcbe21d9037ec2a6d48a14c5bbc0b5ed0552
author: rodri <rgl@antares-labs.eu>
date: Wed Jul 16 12:46:46 EDT 2025

forgot about objexport in the manpage

--- a/obj.2.man
+++ b/obj.2.man
@@ -189,11 +189,9 @@
 .PP
 .B Objallocobject
 allocates a new object with name
-.IR n .
-The name cannot be
-.B nil
-and it must be unique within the
-.BR OBJ .
+.IR n ,
+which cannot be
+.BR nil .
 .PP
 .B Objfreeobject
 frees the passed object and all of its children elements.
@@ -204,6 +202,9 @@
 to
 .IR obj 's
 hash table.
+.IR O 's
+name should be unique, otherwise the existing homonymous object will
+be replaced by it.
 .PP
 .B Objgetobject
 retrieves the object named
@@ -280,6 +281,26 @@
 takes a pointer to a previously allocated
 .B OBJMaterlist
 and releases its memory and that of its members.
+.PP
+.B Objexport
+creates a file structure within the directory
+.IR dstdir ,
+writing the serialized
+.I obj
+into a file named
+.BR main.obj ,
+and its
+.B OBJMaterlist
+into another file named after its
+.I filename
+property.  It also creates a file for every
+texture referenced by the materials, formatting them based on the
+.B OBJTexture
+.I filename
+property's extension (which can be any of
+.B .png
+or
+.BR .jpe?g .)
 .PP
 .B OBJfmt
 is a formatting routine used to serialize an
--