aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h136
1 files changed, 136 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h
new file mode 100644
index 0000000..8cb02b0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h
@@ -0,0 +1,136 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_FLT_OPCODES_H
23#define _IMP_FLT_OPCODES_H
24
25#include <glib.h>
26
27#include "imp_flt_callbacks.h"
28
29typedef struct {
30 guint32 opcode;
31 gchar *description;
32 gboolean container;
33 FltCallbackFunc callback;
34} FltOpcode;
35
36static FltOpcode flt_opcodes[] = {
37 { 1, "header", 0, flt_cb_0001 },
38 { 2, "group", 0, flt_cb_0002 },
39
40 { 4, "object", 0, flt_cb_0004 },
41 { 5, "face", 0, flt_cb_0005 },
42
43 { 10, "push level", 0, flt_cb_0010 },
44 { 11, "pop level", 0, flt_cb_0011 },
45
46 { 14, "degree of freedom", 0, NULL },
47
48 { 19, "push subface", 0, NULL },
49 { 20, "pop subface", 0, NULL },
50 { 21, "push extension", 0, NULL },
51 { 22, "pop extension", 0, NULL },
52 { 23, "continuation", 0, NULL },
53
54 { 31, "comment", 0, NULL },
55 { 32, "color palette", 0, flt_cb_0032 },
56 { 33, "long ID", 0, flt_cb_0033 },
57
58 { 49, "matrix", 0, NULL },
59 { 50, "vector", 0, NULL },
60
61 { 52, "multitexture", 0, NULL },
62 { 53, "UV list", 0, NULL },
63
64 { 55, "binary separating plane", 0, NULL },
65
66 { 60, "replicate", 0, NULL },
67 { 61, "instance reference", 0, NULL },
68 { 62, "instance definition", 0, NULL },
69 { 63, "external reference", 0, NULL },
70 { 64, "texture palette", 0, flt_cb_0064 },
71
72 { 67, "vertex palette", 0, flt_cb_0067 },
73 { 68, "vertex with color", 0, flt_cb_0068 },
74 { 69, "vertex with color and normal", 0, flt_cb_0069 },
75 { 70, "vertex with color, normal and UV", 0, flt_cb_0070 },
76 { 71, "vertex with color and UV", 0, flt_cb_0071 },
77 { 72, "vertex list", 0, flt_cb_0072 },
78 { 73, "level of detail", 0, NULL },
79 { 74, "bounding box", 0, NULL },
80
81 { 76, "rotate about edge", 0, NULL },
82
83 { 78, "translate", 0, NULL },
84 { 79, "scale", 0, NULL },
85 { 80, "rotate about point", 0, NULL },
86 { 81, "rotate and/or scale to point", 0, NULL },
87 { 82, "put", 0, NULL },
88 { 83, "eyepoint and trackplane palette", 0, NULL },
89 { 84, "mesh", 0, flt_cb_0084 },
90 { 85, "local vertex pool", 0, flt_cb_0085 },
91 { 86, "mesh primitive", 0, flt_cb_0086 },
92 { 87, "road segment", 0, NULL },
93 { 88, "road zone", 0, NULL },
94 { 89, "morph vertex list", 0, NULL },
95 { 90, "linkage palette", 0, NULL },
96 { 91, "sound node", 0, NULL },
97 { 92, "road path", 0, NULL },
98 { 93, "sound palette", 0, NULL },
99 { 94, "general matrix", 0, NULL },
100 { 95, "text", 0, NULL },
101 { 96, "switch", 0, NULL },
102 { 97, "line style palette", 0, NULL },
103 { 98, "clip region", 0, NULL },
104
105 { 100, "extension", 0, NULL },
106 { 101, "light source", 0, NULL },
107 { 102, "light source palette", 0, NULL },
108
109 { 105, "bounding sphere", 0, NULL },
110 { 106, "bounding cylinder", 0, NULL },
111 { 107, "bounding convex hull", 0, NULL },
112 { 108, "bounding volume center", 0, NULL },
113 { 109, "bounding volume orientation", 0, NULL },
114
115 { 111, "light point", 0, NULL },
116 { 112, "texture mapping palette", 0, NULL },
117 { 113, "material palette", 0, flt_cb_0113 },
118 { 114, "name table", 0, NULL },
119 { 115, "continuously adaptive terrain (CAT)", 0, NULL },
120 { 116, "CAT data", 0, NULL },
121
122 { 119, "bounding histogram", 0, NULL },
123
124 { 126, "curve", 0, NULL },
125 { 127, "road construction", 0, NULL },
126 { 128, "light point appearance palette", 0, NULL },
127 { 129, "light point animation", 0, NULL },
128 { 130, "indexed light point", 0, NULL },
129
130 { 132, "indexed string", 0, NULL },
131 { 133, "shader", 0, NULL },
132
133 { 0, NULL, 0, NULL }
134};
135
136#endif /* _IMP_FLT_OPCODES_H */