CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

loader.h

Go to the documentation of this file.
00001 /*
00002     The Crystal Space geometry loader interface
00003     Copyright (C) 2000 by Andrew Zabolotny <bit@eltech.ru>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public
00016     License along with this library; if not, write to the Free
00017     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 

Generated for Crystal Space by doxygen 1.2.14