00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00032 #ifndef __WOLFCORE_H__
00033 #define __WOLFCORE_H__
00034
00035
00036
00037
00038 #include "../../common/platform.h"
00039
00040
00041
00043
00044
00045
00047
00048 wtBoolean GFXFile_Setup( char *dictfname, char *headfname, char *graphfname );
00049 void GFXFile_Shutdown( void );
00050
00051 void GFXFile_cacheChunk( W32 chunkId );
00052 void *GFXFile_getChunk( W32 chunkId );
00053
00054 void *GFXFile_decodeChunk_RGB24( W32 chunkId, W32 *width_out, W32 *height_out, W8 *palette );
00055 void *GFXFile_decodeChunk_RGB32( W32 chunkId, W32 *width_out, W32 *height_out, W8 *palette );
00056
00057 void GFXFile_printPicTable( void );
00058 void GFXFile_decodeFont( W32 fontId, W32 font_width, W32 font_height, const char *path );
00059
00060 wtBoolean GFXFile_decodeScript( W32 textId_start, W32 textId_end, const char *path );
00061
00062 wtBoolean GFXFile_decodeGFX( W32 start, W32 end, W8 *palette, const char *path );
00063
00064
00066
00067
00068
00070
00071 extern const W32 SAMPLERATE;
00072
00073 wtBoolean PageFile_Setup( const char *pagefname, W32 *nBlocks, W32 *SpriteStart, W32 *SoundStart );
00074 void PageFile_Shutdown( void );
00075
00076 void *PageFile_getPage( W32 pagenum, W32 *length );
00077 void *PageFile_decodeWall( W8 *data, W8 *palette );
00078 void *PageFile_decodeSprite( W8 *data, W8 *palette );
00079
00080
00081 wtBoolean PageFile_ReduxDecodePageData( const char *vsfname, const char *wallPath, const char *spritePath, const char *soundPath, W32 bScale, W8 *palette );
00082
00083
00085
00086
00087
00089 wtBoolean AudioFile_Setup( const char *aheadfname, const char *audfname );
00090 void AudioFile_Shutdown( void );
00091
00092 void *AudioFile_CacheAudioChunk( W32 chunk );
00093
00094 void AudioFile_dataByteSwap( void *data, W32 length );
00095
00096
00097
00098 wtBoolean AudioFile_ReduxDecodeSound( W32 start, W32 end, const char *path );
00099 wtBoolean AudioFile_ReduxDecodeMusic( W32 start, W32 end, const char *path, char *songNames[] );
00100
00101
00103
00104
00105
00107
00108 typedef struct
00109 {
00110 float time;
00111 char timestr[ 6 ];
00112
00113 } parTimes_t;
00114
00115 wtBoolean MapFile_ReduxDecodeMapData( const char *fmaphead, const char *fmap, const char *path,
00116 W8 *palette, W32 *ceilingColour, char *musicFileName[], parTimes_t *parTimes, char *format );
00117
00118
00120
00121
00122
00124
00125
00126
00127 typedef struct
00128 {
00129 W32 PN_StatusBar;
00130 W32 PN_NoKey;
00131 W32 PN_Blank;
00132 W32 PN_Title1;
00133 W32 PN_Title2;
00134 W32 PN_TitlePalette;
00135 W32 PN_0;
00136 W32 PN_1;
00137 W32 PN_9;
00138 W32 PN_Colon;
00139 W32 PN_Num0;
00140 W32 PN_Num9;
00141 W32 PN_Percent;
00142 W32 PN_A;
00143 W32 PN_Z;
00144 W32 PN_Expoint;
00145 W32 PN_Apostrophe;
00146 W32 PN_IDGuys1;
00147 W32 PN_IDGuys2;
00148 W32 PN_EndScreen1;
00149 W32 PN_EndScreen9;
00150 W32 PN_HelpScript;
00151 W32 PN_ScriptStart;
00152 W32 PN_ScriptEnd;
00153 W32 PN_bottomInfoPic;
00154
00155 } picNum_t;
00156
00157
00158 void *wolfcore_ReduxGFX( W32 chunkid, void *data, W32 *width, W32 *height, W32 *ChunkChange, W8 *gamePalette, picNum_t *picNum );
00159
00160
00161 #endif
00162