From cb3716ffb584fe0f593b6f1669a8efdba1305104 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 29 Mar 2016 02:16:55 +1000 Subject: Added my version of libg3d and friends. --- .../plugins/import/imp_maya/imp_maya_chunks.h | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h') diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h new file mode 100644 index 0000000..84997a9 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h @@ -0,0 +1,130 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_MAYA_CHUNKS_H +#define _IMP_MAYA_CHUNKS_H + +#include + +#include "imp_maya_callbacks.h" + +static G3DIffChunkInfo maya_chunks[] = { + { "ATTR", "unknown", 0, NULL }, + { "AUDI", "audio", 1, NULL }, /* FOR4 */ + { "AUNI", "angle unit", 0, NULL }, + { "BRSH", "brush", 1, NULL }, /* FOR4 */ + { "CHNG", "changes", 0, NULL }, + { "CMP#", "unknown", 0, NULL }, + { "CMPD", "compound", 0, maya_cb_CMPD }, + { "CONN", "connection list", 1, NULL }, /* FOR4 */ + { "CONS", "construction", 1, NULL }, /* LIS4 */ + { "CWFL", "connect attr", 0, maya_cb_CWFL }, + { "CREA", "create node", 0, maya_cb_CREA }, + { "DBL#", "double #", 0, maya_cb_DBLn }, + { "DBL2", "double 2", 0, maya_cb_DBL2 }, + { "DBL3", "double 3", 0, maya_cb_DBL3 }, + { "DBLE", "double", 0, maya_cb_DBLE }, + { "DCAM", "camera", 1, NULL }, /* FOR4 */ + { "DECT", "delete component", 1, NULL }, /* FOR4 */ + { "DELA", "delete attribute", 1, NULL }, /* FOR4 */ + { "DELL", "delete list", 1, NULL }, /* LIS4 */ + { "DISC", "unknown", 0, NULL }, + { "DISL", "unknown", 1, NULL }, /* LIS4 */ + { "DMSH", "mesh", 1, maya_cb_DMSH }, + { "DMTI", "material info", 1, NULL }, /* FOR4 */ + { "DPLM", "layer manager", 1, NULL }, /* FOR4 */ + { "DSPL", "layer ?", 1, NULL }, /* FOR4 */ + { "FINF", "file information", 0, maya_cb_STR_ }, + { "FDFL", "flare ?", 1, NULL }, /* FOR4 */ + { "FLGS", "flags", 0, NULL }, + { "FLT2", "float 2", 0, NULL }, + { "FLT3", "float 3", 0, maya_cb_FLT3 }, + { "FMPT", "unknown", 1, NULL }, /* FOR4 */ + { "FNLD", "unknown", 1, NULL }, /* FOR4 */ + { "GPID", "group id", 1, NULL }, /* FOR4 */ + { "GRPP", "group parts", 1, NULL }, /* FOR4 */ + { "HEAD", "header", 1, NULL }, /* FOR4 */ + { "ICON", "icon", 0, NULL }, + { "INCL", "includes", 0, NULL }, + { "INFO", "information", 0, NULL }, + { "LUNI", "length unit", 0, NULL }, + { "MADE", "creation date", 0, NULL }, + { "MATR", "matrix", 0, maya_cb_MATR }, + { "MESH", "mesh", 0, maya_cb_MESH }, + { "NPLN", "unknown", 0, NULL }, + { "NRBS", "NURBS ?", 0, NULL }, + { "NSRF", "surface", 1, NULL }, /* FOR4 */ + { "OBJN", "unknown", 0, NULL }, + { "OBST", "unknown", 1, NULL }, /* FOR4 */ + { "PAUP", "poly auto proj", 1, NULL }, /* FOR4 */ + { "PBOP", "poly boolean operation", 1, NULL }, /* FOR4 */ + { "PBVL", "poly bevel", 1, NULL }, /* FOR4 */ + { "PCRE", "poly create face", 1, NULL }, /* FOR4 */ + { "PCTA", "poly rotate ?", 1, NULL }, /* FOR4 */ + { "PCTL", "poly translate ?", 1, NULL }, /* FOR4 */ + { "PCTU", "poly scale ?", 1, NULL }, /* FOR4 */ + { "PCUB", "poly cube", 1, maya_cb_PCUB }, + { "PCYL", "poly cylinder", 1, maya_cb_PCYL }, + { "PEXE", "poly extrude", 1, NULL }, /* FOR4 */ + { "PEXF", "poly extrude face", 1, NULL }, /* FOR4 */ + { "PFUV", "poly flip UV", 1, NULL }, /* FOR4 */ + { "PING", "unknown", 1, NULL }, /* FOR4 */ + { "PLUG", "plugin ?", 0, NULL }, + { "PMIR", "poly mirror", 1, NULL }, /* FOR4 */ + { "PMVE", "poly merge vertices", 1, NULL }, /* FOR4 */ + { "PPCT", "poly cut", 1, NULL }, /* FOR4 */ + { "PPIP", "poly pipe", 1, NULL }, /* FOR4 */ + { "PRNS", "unknown", 0, NULL }, + { "PRNT", "unknown", 0, NULL }, + { "PSEP", "poly separate", 1, NULL }, /* FOR4 */ + { "PSMF", "poly smooth face", 1, NULL }, /* FOR4 */ + { "PSOE", "poly soft edge", 1, NULL }, /* FOR4 */ + { "PSPH", "poly sphere", 1, NULL }, /* FOR4 */ + { "PSPL", "poly split", 1, NULL }, /* FOR4 */ + { "PTRI", "poly triangulate", 1, NULL }, /* FOR4 */ + { "PTUV", "poly tweak UV", 1, NULL }, /* FOR4 */ + { "PTWK", "poly tweak", 1, NULL }, /* FOR4 */ + { "PUNI", "poly unite", 1, NULL }, /* FOR4 */ + { "RANI", "anisotropic", 1, NULL }, /* FOR4 */ + { "RBLN", "unknown", 1, NULL }, /* FOR4 */ + { "RLAM", "lambert", 1, NULL }, /* FOR4 */ + { "RLLK", "light linker", 1, NULL }, /* FOR4 */ + { "RNDL", "render layer", 1, NULL }, /* FOR4 */ + { "RNLM", "render layer manager", 1, NULL }, /* FOR4 */ + { "RPHO", "phong ?", 1, NULL }, /* FOR4 */ + { "RPL2", "place texture", 1, NULL }, /* FOR4 */ + { "RPLD", "place texture", 1, NULL }, /* FOR4 */ + { "RPRJ", "projection", 1, NULL }, /* FOR4 */ + { "RTFT", "texture file", 1, NULL }, /* FOR4 */ + { "SCRP", "script", 1, NULL }, /* FOR4 */ + { "SHAD", "shadow", 1, NULL }, /* FOR4 */ + { "SLCT", "select", 0, NULL }, /* evil ;) */ + { "STR ", "string", 0, maya_cb_STR_ }, + { "TGEO", "transform geometry", 1, NULL }, /* FOR4 */ + { "TUNI", "time unit", 0, NULL }, + { "UVER", "minor version?", 0, NULL }, + { "VERS", "version", 0, NULL }, + { "XFRM", "transformation", 1, maya_cb_XFRM }, + + { NULL, NULL, 0, NULL } +}; + +#endif /* _IMP_MAYA_CHUNKS_H */ -- cgit v1.1