00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CS_IMAP_PARSER_H__
00021 #define __CS_IMAP_PARSER_H__
00022
00028 #include "csutil/scf.h"
00029 #include "ivideo/txtmgr.h"
00030 #include "igraphic/image.h"
00031
00032 struct iTextureHandle;
00033 struct iTextureWrapper;
00034 struct iMaterialWrapper;
00035 struct iSector;
00036 struct iSoundData;
00037 struct iSoundHandle;
00038 struct iMeshWrapper;
00039 struct iMeshFactoryWrapper;
00040 struct iSoundWrapper;
00041
00046
00047 #define CS_LOADER_NOCOMPRESS 0x00000001
00048
00049 #define CS_LOADER_NOBSP 0x00000002
00050
00051 #define CS_LOADER_NOTRANSFORM 0x00000004
00052
00054 SCF_VERSION (iLoader, 0, 0, 7);
00055
00059 struct iLoader : public iBase
00060 {
00065 virtual void SetMode (int iFlags) = 0;
00066
00073 virtual csPtr<iImage> LoadImage (const char* Filename,
00074 int Format = CS_IMGFMT_INVALID) = 0;
00082 virtual csPtr<iTextureHandle> LoadTexture (const char* Filename,
00083 int Flags = CS_TEXTURE_3D, iTextureManager *tm = NULL, iImage **image=NULL) = 0;
00094 virtual iTextureWrapper* LoadTexture (const char *Name,
00095 const char *FileName,
00096 int Flags = CS_TEXTURE_3D, iTextureManager *tm = NULL,
00097 bool reg = false, bool create_material = true) = 0;
00098
00100 virtual csPtr<iSoundData> LoadSoundData (const char *fname) = 0;
00102 virtual csPtr<iSoundHandle> LoadSound (const char *fname) = 0;
00104 virtual csPtr<iSoundWrapper> LoadSound (const char *name,
00105 const char *fname) = 0;
00106
00122 virtual bool LoadMapFile (const char* filename, bool clearEngine = true,
00123 bool resolveOnlyRegion = true, bool checkDupes = false) = 0;
00125 virtual bool LoadLibraryFile (const char* filename) = 0;
00126
00128 virtual csPtr<iMeshFactoryWrapper> LoadMeshObjectFactory (
00129 const char* fname) = 0;
00134 virtual csPtr<iMeshWrapper> LoadMeshObject (const char* fname) = 0;
00135
00137 virtual bool LoadEffectFile (const char* filename) = 0;
00138 };
00139
00142 #endif // __CS_IMAP_PARSER_H__
00143