File: imp_3ds_chunks.h

package info (click to toggle)
libg3d 0.0.8-26
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,700 kB
  • sloc: ansic: 27,295; sh: 9,288; xml: 4,123; makefile: 865; cpp: 13
file content (210 lines) | stat: -rw-r--r-- 9,679 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/* $Id$ */

/*
    libg3d - 3D object loading library

    Copyright (C) 2005-2009  Markus Dahms <mad@automagically.de>

    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_3DS_CHUNKS_H
#define _IMP_3DS_CHUNKS_H

#include <glib.h>

#include "imp_3ds_callbacks.h"

typedef struct {
	guint32 id;
	char *desc;
	gboolean container;
	x3ds_callback callback;
} x3ds_chunk_desc;

static x3ds_chunk_desc x3ds_chunks[] = {
	{ 0x0002, "M3D version",                0, x3ds_cb_0x0002 },
	{ 0x0001, "(unknown)",                  0, NULL },
	{ 0x0010, "color (float)",              0, x3ds_cb_0x0010 },
	{ 0x0011, "color (24 bit)",             0, x3ds_cb_0x0011 },
	{ 0x0012, "line color (24 bit)",        0, NULL },
	{ 0x0013, "line color (float)",         0, NULL },
	{ 0x0030, "percentage (short)",         0, x3ds_cb_0x0030 },
	{ 0x0031, "percentage (float)",         0, x3ds_cb_0x0031 },
	{ 0x0100, "global scale",               0, NULL },

	{ 0x1100, "BIT_MAP",                    0, NULL },
	{ 0x1101, "USE_BIT_MAP",                0, NULL },
	{ 0x1200, "SOLID_BGND",                 1, NULL },
	{ 0x1201, "USE_SOLID_BGND",             0, NULL },
	{ 0x1300, "V_GRADIENT",                 0, NULL },
	{ 0x1301, "USE_V_GRADIENT",             0, NULL },
	{ 0x1400, "LO_SHADOW_BIAS",             0, NULL },
	{ 0x1410, "HI_SHADOW_BIAS",             0, NULL },
	{ 0x1420, "SHADOW_MAP_SIZE",            0, NULL },
	{ 0x1430, "SHADOW_SAMPLES",             0, NULL },
	{ 0x1440, "SHADOW_RANGE",               0, NULL },
	{ 0x1450, "SHADOW_FILTER",              0, NULL },
	{ 0x1460, "RAY_BIAS",                   0, NULL },
	{ 0x1500, "O_CONSTS",                   0, NULL },

	{ 0x2100, "AMBIENT_LIGHT",              0, NULL },
	{ 0x2200, "FOG",                        0, NULL },
	{ 0x2300, "DISTANCE_CUE",               0, NULL },
	{ 0x2301, "USE_DISTANCE_CUE",           0, NULL },
	{ 0x2302, "LAYER_FOG",                  0, NULL },
	{ 0x2D2D, "SMAGIC",                     0, NULL },
	{ 0x2D3D, "LMAGIC",                     0, NULL },

	{ 0x3000, "default view",               1, NULL },
	{ 0x3010, "VIEW_TOP",                   0, NULL },
	{ 0x3020, "VIEW_BOTTOM",                0, NULL },
	{ 0x3030, "VIEW_LEFT",                  0, NULL },
	{ 0x3040, "VIEW_RIGHT",                 0, NULL },
	{ 0x3050, "VIEW_FRONT",                 0, NULL },
	{ 0x3060, "VIEW_BACK",                  0, NULL },
	{ 0x3070, "VIEW_USER",                  0, NULL },
	{ 0x3080, "VIEW_CAMERA",                0, NULL },
	{ 0x3090, "VIEW_WINDOW",                0, NULL },
	{ 0x3D3D, "mesh",                       1, NULL },
	{ 0x3D3E, "mesh version",               0, NULL },

	{ 0x4000, "named object",               1, x3ds_cb_0x4000 },
	{ 0x4010, "object hidden",              0, NULL },
	{ 0x4011, "object vis lofter",          0, NULL },
	{ 0x4012, "object doesn't cast",        0, NULL },
	{ 0x4013, "object matte",               0, NULL },
	{ 0x4014, "object fast",                0, NULL },
	{ 0x4015, "object procedural",          0, NULL },
	{ 0x4016, "object frozen",              0, NULL },
	{ 0x4017, "object don't recv shadow",   0, NULL },
	{ 0x4100, "triangle object",            1, NULL },
	{ 0x4110, "point array",                0, x3ds_cb_0x4110 },
	{ 0x4111, "point flag array",           0, NULL },
	{ 0x4120, "face array",                 1, x3ds_cb_0x4120 },
	{ 0x4130, "mesh mat group",             0, x3ds_cb_0x4130 },
	{ 0x4140, "texture vertices",           0, x3ds_cb_0x4140 },
	{ 0x4150, "smooth group",               0, x3ds_cb_0x4150 },
	{ 0x4160, "mesh matrix",                0, x3ds_cb_0x4160 },
	{ 0x4165, "mesh color",                 0, NULL },
	{ 0x4170, "texture info",               0, NULL },
	{ 0x4600, "N_DIRECT_LIGHT",             0, NULL },
	{ 0x4700, "N_CAMERA",                   0, NULL },

	{ 0x7001, "VIEWPORT_LAYOUT",            0, NULL },

	{ 0x8000, "XDATA_SECTION",              0, NULL },

	{ 0xA000, "material name",              0, x3ds_cb_0xA000 },
	{ 0xA010, "ambient color",              1, NULL },
	{ 0xA020, "diffuse color",              1, NULL },
	{ 0xA030, "specular color",             1, NULL },
	{ 0xA040, "shininess",                  1, NULL },
	{ 0xA041, "shininess (2)",              1, NULL },
	{ 0xA042, "shininess (3)",              1, NULL },
	{ 0xA050, "transparency",               1, NULL },
	{ 0xA052, "fallthrough",                1, NULL },
	{ 0xA053, "blur",                       1, NULL },
	{ 0xA081, "two-sided",                  0, x3ds_cb_0xA081 },
	{ 0xA082, "decal",                      0, NULL },
	{ 0xA083, "additive",                   0, NULL },
	{ 0xA084, "self illumination",          1, NULL },
	{ 0xA085, "wire",                       0, NULL },
	{ 0xA086, "super-sampling",             0, NULL },
	{ 0xA087, "wire size",                  0, NULL },
	{ 0xA088, "MAT_FACEMAP",                0, NULL },
	{ 0xA08A, "MAT_XPFALLIN",               0, NULL },
	{ 0xA08C, "MAT_PHONGSOFT",              0, NULL },
	{ 0xA08E, "MAT_WIREABS",                0, NULL },
	{ 0xA100, "shading",                    0, NULL },
	{ 0xA200, "texture map",                1, NULL },
	{ 0xA204, "spec map",                   1, NULL },
	{ 0xA210, "opacity map",                1, NULL },
	{ 0xA220, "reflection map",             1, NULL },
	{ 0xA230, "bump map",                   1, NULL },
	{ 0xA240, "mat use xpfall",             0, NULL },
	{ 0xA250, "mat use refblur",            0, NULL },
	{ 0xA252, "bump percentage",            0, NULL },
	{ 0xA300, "texture map name",           0, x3ds_cb_0xA300 },
	{ 0xA310, "MAT_ACUBIC",                 0, NULL },
	{ 0xA320, "MAT_SXP_TEXT_DATA",          0, NULL },
	{ 0xA324, "MAT_SXP_BUMP_DATA",          0, NULL },
	{ 0xA33A, "MAT_TEX2MAP",                0, NULL },
	{ 0xA351, "texture map tiling",         0, NULL },
	{ 0xA352, "texture map blurring (old)", 0, NULL },
	{ 0xA353, "texture map blurring",       0, NULL },
	{ 0xA354, "texture map scale u",        0, x3ds_cb_0xA354 },
	{ 0xA356, "texture map scale v",        0, x3ds_cb_0xA356 },
	{ 0xA358, "texture map offset u",       0, NULL },
	{ 0xA35A, "texture map offset v",       0, NULL },
	{ 0xAFFF, "material",                   1, x3ds_cb_0xAFFF },

	{ 0xB000, "keyframe data",              1, NULL },
	{ 0xB001, "ambient data node",          1, NULL },
	{ 0xB002, "object node",                1, NULL },
	{ 0xB003, "camera node",                1, NULL },
	{ 0xB004, "target node",                1, NULL },
	{ 0xB005, "light node",                 1, NULL },
	{ 0xB006, "L_TARGET_NODE_TAG",          1, NULL },
	{ 0xB007, "spotlight node",             1, NULL },
	{ 0xB008, "KFSEG",                      0, NULL },
	{ 0xB009, "KFCURTIME",                  0, NULL },
	{ 0xB00A, "keyframe data header",       0, x3ds_cb_0xB00A },
	{ 0xB010, "node header",                0, x3ds_cb_0xB010 },
	{ 0xB011, "instance name",              0, NULL },
	{ 0xB012, "PRESCALE",                   0, NULL },
	{ 0xB013, "pivot",                      0, x3ds_cb_0xB013 },
	{ 0xB014, "bounding box",               0, NULL },
	{ 0xB015, "MORPH_SMOOTH",               0, NULL },
	{ 0xB020, "position tracking tag",      0, x3ds_cb_0xB020 },
	{ 0xB021, "rotation tracking tag",      0, x3ds_cb_0xB021 },
	{ 0xB022, "scale tracking tag",         0, NULL },
	{ 0xB023, "FOV_TRACK_TAG",              0, NULL },
	{ 0xB024, "ROLL_TRACK_TAG",             0, NULL },
	{ 0xB025, "COL_TRACK_TAG",              0, NULL },
	{ 0xB026, "MORPH_TRACK_TAG",            0, NULL },
	{ 0xB027, "HOT_TRACK_TAG",              0, NULL },
	{ 0xB028, "FALL_TRACK_TAG",             0, NULL },
	{ 0xB029, "HIDE_TRACK_TAG",             0, NULL },
	{ 0xB030, "node identification",        0, x3ds_cb_0xB030 },

	{ 0xC010, "C_MDRAWER",                  0, NULL },
	{ 0xC030, "C_SHPDRAWER",                0, NULL },
	{ 0xC040, "C_MODDRAWER",                0, NULL },
	{ 0xC060, "C_TXDRAWER",                 0, NULL },
	{ 0xC064, "C_MTLDRAWER",                0, NULL },
	{ 0xC066, "C_FLIDRAWER",                0, NULL },
	{ 0xC067, "C_CUBDRAWER",                0, NULL },
	{ 0xC070, "C_MFILE",                    0, NULL },
	{ 0xC080, "C_SHPFILE",                  0, NULL },
	{ 0xC090, "C_MODFILE",                  0, NULL },
	{ 0xC0B0, "C_TXFILE",                   0, NULL },
	{ 0xC0B4, "C_MTLFILE",                  0, NULL },
	{ 0xC0B6, "C_FLIFILE",                  0, NULL },
	{ 0xC0B8, "C_PALFILE",                  0, NULL },
	{ 0xC0C0, "C_TX_STRING",                0, NULL },
	{ 0xC0D0, "C_CONSTS",                   0, NULL },
	{ 0xC0E0, "C_SNAPS",                    0, NULL },
	{ 0xC0F0, "C_GRIDS",                    0, NULL },
	{ 0xC100, "C_ASNAPS",                   0, NULL },
	{ 0xC25B, "C_BITMAP_DRAWER",            0, NULL },
	{ 0xC525, "C_CUR_MNAME",                0, NULL },
	{ 0xCA00, "C_MAPDRAWER",                0, NULL },

	{ 0xD000, "VPDATA",                     0, NULL },

	{ 0x0000, NULL, 0, NULL }
};

#endif