ConvertShapeU8.cpp

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) 2002, 2003 The Pentagram Team
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 #include "pent_include.h"
00020 #include "ConvertShapeU8.h"
00021 
00022 // Shape format configuration for Ultima8
00023 const ConvertShapeFormat                U8ShapeFormat =
00024 {
00025         "Ultima8",
00026         6,              // header
00027         "",             // ident
00028         0,              // bytes_ident 
00029         0,              // bytes_special
00030         4,              // header_unk
00031         2,              // num_frames
00032 
00033         6,              // frameheader
00034         3,              // frame_offset
00035         1,              // frameheader_unk
00036         2,              // frame_length
00037         0,              // frame_length_kludge
00038 
00039         18,             // frameheader2
00040         8,              // frame_unknown
00041         2,              // frame_compression
00042         2,              // frame_width
00043         2,              // frame_height
00044         2,              // frame_xoff
00045         2,              // frame_yoff
00046 
00047         2,              // line_offset
00048         0               // line_offset_absolute
00049 };
00050 
00051 // Shape format configuration for Ultima8 2D interface components
00052 const ConvertShapeFormat                U82DShapeFormat =
00053 {
00054         "Ultima8 2D",
00055         6,              // header
00056         "",             // ident
00057         0,              // bytes_ident 
00058         0,              // bytes_special
00059         4,              // header_unk
00060         2,              // num_frames
00061 
00062         6,              // frameheader
00063         3,              // frame_offset
00064         1,              // frameheader_unk
00065         2,              // frame_length
00066         8,              // frame_length_kludge
00067 
00068         18,             // frameheader2
00069         8,              // frame_unknown
00070         2,              // frame_compression
00071         2,              // frame_width
00072         2,              // frame_height
00073         2,              // frame_xoff
00074         2,              // frame_yoff
00075 
00076         2,              // line_offset
00077         0               // line_offset_absolute
00078 };
00079 
00080 // Shape format configuration for Ultima8 SKF
00081 const ConvertShapeFormat                U8SKFShapeFormat =
00082 {
00083         "Ultima8 SKF",
00084         2,              // header
00085         "\2",   // ident
00086         2,              // bytes_ident 
00087         0,              // bytes_special
00088         0,              // header_unk
00089         0,              // num_frames
00090 
00091         0,              // frameheader
00092         0,              // frame_offset
00093         0,              // frameheader_unk
00094         0,              // frame_length
00095         0,              // frame_length_kludge
00096 
00097         10,             // frameheader2
00098         0,              // frame_unknown
00099         2,              // frame_compression
00100         2,              // frame_width
00101         2,              // frame_height
00102         2,              // frame_xoff
00103         2,              // frame_yoff
00104 
00105         2,              // line_offset
00106         0               // line_offset_absolute
00107 };
00108 
00109 // Shape format configuration for Compressed Ultima 8 shapes
00110 const ConvertShapeFormat                U8CMPShapeFormat =
00111 {
00112         "Ultima8 CMP",
00113         11,             // header
00114         "",             // ident
00115         0,              // bytes_ident 
00116         5,              // bytes_special
00117         4,              // header_unk
00118         2,              // num_frames
00119 
00120         6,              // frameheader
00121         4,              // frame_offset
00122         2,              // frameheader_unk
00123         0,//2,          // frame_length
00124         0,//-16,        // frame_length_kludge
00125 
00126         10,             // frameheader2
00127         0,              // frame_unknown
00128         2,              // frame_compression
00129         2,              // frame_width
00130         2,              // frame_height
00131         2,              // frame_xoff
00132         2,              // frame_yoff
00133 
00134         0,              // line_offset
00135         0               // line_offset_absolute
00136 };
00137 

Generated on Fri Jul 27 22:27:12 2007 for pentagram by  doxygen 1.4.7