Simple command line tool to convert Wavefront OBJ models to C/C++ data arrays.
Usage:
$ obj2c source-file target-file [options]
Options:
-h, --help Shows this help text.
-v, --verbose Be verbose; output a lot of info and timings.
-s, --static_arrays If present, add the 'static' qualifier to array declarations.
-c, --write_counts Write lengths of data arrays as constants.
--inc_file[=name] If flag present, generate an include file externing the array variables.
Incompatible with 'static_arrays'. If no filename provided, uses the target file name.
-n, --smooth_normals If set, gen smooth per-vertex normals. Default are shared per-face 'flat' normals.
-f, --vb_friendly Make the output 'Vertex Buffer friendly'. That is, single index per-vertex.
--ib_type=type Index buffer data type for when using 'vb_friendly'.
Possible values are 16, 16std, 32 and 32std.
The 'std' suffix causes the use of the standard C data types found in cstdint/stdint.h
--no_uvs Don't output mesh UVs, even if they are present in the OBJ file.