1 /* 2 PLIB - A Suite of Portable Game Libraries 3 Copyright (C) 1998,2002 Steve Baker 4 5 This library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Library General Public 7 License as published by the Free Software Foundation; either 8 version 2 of the License, or (at your option) any later version. 9 10 This library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Library General Public License for more details. 14 15 You should have received a copy of the GNU Library General Public 16 License along with this library; if not, write to the Free Software 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 19 For further information visit http://plib.sourceforge.net 20 21 $Id: ssg3ds.h 2108 2006-12-11 20:42:05Z fayjf $ 22 */ 23 24 /******************************************************* 25 ** ssg3ds.h 26 ** 27 * Common data for ssgLoad3ds.cxx and ssgSave3ds.cxx 28 *******************************************************/ 29 30 // 3ds chunk identifiers 31 static const int CHUNK_VERSION = 0x0002; 32 static const int CHUNK_RGB1 = 0x0010; // 3 floats of RGB 33 static const int CHUNK_RGB2 = 0x0011; // 3 bytes of RGB 34 static const int CHUNK_RGB3 = 0x0012; // 3 bytes of RGB (gamma) 35 static const int CHUNK_AMOUNT = 0x0030; 36 static const int CHUNK_MAIN = 0x4D4D; 37 static const int CHUNK_OBJMESH = 0x3D3D; 38 static const int CHUNK_ONEUNIT = 0x0100; 39 static const int CHUNK_BKGCOLOR = 0x1200; 40 static const int CHUNK_AMBCOLOR = 0x2100; 41 static const int CHUNK_OBJBLOCK = 0x4000; 42 static const int CHUNK_TRIMESH = 0x4100; 43 static const int CHUNK_VERTLIST = 0x4110; 44 static const int CHUNK_FACELIST = 0x4120; 45 static const int CHUNK_FACEMAT = 0x4130; 46 static const int CHUNK_MAPLIST = 0x4140; 47 static const int CHUNK_SMOOLIST = 0x4150; 48 static const int CHUNK_TRMATRIX = 0x4160; 49 static const int CHUNK_LIGHT = 0x4600; 50 static const int CHUNK_SPOTLIGHT = 0x4610; 51 static const int CHUNK_CAMERA = 0x4700; 52 static const int CHUNK_MATERIAL = 0xAFFF; 53 static const int CHUNK_MATNAME = 0xA000; 54 static const int CHUNK_AMBIENT = 0xA010; 55 static const int CHUNK_DIFFUSE = 0xA020; 56 static const int CHUNK_SPECULAR = 0xA030; 57 static const int CHUNK_SHININESS = 0xA040; 58 static const int CHUNK_SHINE_STRENGTH = 0xA041; 59 static const int CHUNK_TRANSPARENCY = 0xA050; 60 static const int CHUNK_TRANSP_FALLOFF = 0xA052; 61 static const int CHUNK_DOUBLESIDED = 0xA081; 62 static const int CHUNK_TEXTURE = 0xA200; 63 static const int CHUNK_BUMPMAP = 0xA230; 64 static const int CHUNK_MAPFILENAME = 0xA300; 65 static const int CHUNK_MAPOPTIONS = 0xA351; 66 static const int CHUNK_MAP_VSCALE = 0xA354; 67 static const int CHUNK_MAP_USCALE = 0xA356; 68 static const int CHUNK_MAP_UOFFST = 0xA358; 69 static const int CHUNK_MAP_VOFFST = 0xA35A; 70 static const int CHUNK_KEYFRAMER = 0xB000; 71 static const int CHUNK_FRAMES = 0xB008; 72 static const int CHUNK_KEYFRAME_MESH = 0xB002; 73 static const int CHUNK_FRAME_OBJNAME = 0xB010; 74 static const int CHUNK_FRAME_DUMMYNAME = 0xB011; 75 static const int CHUNK_FRAME_PIVOT = 0xB013; 76 static const int CHUNK_FRAME_POSITION = 0xB020; 77 static const int CHUNK_FRAME_ROTATION = 0xB021; 78 static const int CHUNK_FRAME_SCALE = 0xB022; 79 static const int CHUNK_FRAME_HIERARCHY = 0xB030; 80