![]() |
Public API Reference |
00001 /* 00002 Copyright (C) 1998 by Jorrit Tyberghein 00003 Written by Jorrit Tyberghein. 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_IVIDEO_TXTMGR_H__ 00021 #define __CS_IVIDEO_TXTMGR_H__ 00022 00031 #include "csutil/scf.h" 00032 00033 class Vector2; 00034 class csMatrix3; 00035 class csVector3; 00036 class csRect; 00037 00038 struct iImage; 00039 struct iTextureHandle; 00040 struct iMaterial; 00041 struct iMaterialHandle; 00042 struct iImageVector; 00043 00050 00051 #define CS_TEXTURE_2D 0x00000001 00052 00053 #define CS_TEXTURE_3D 0x00000002 00054 00062 #define CS_TEXTURE_DITHER 0x00000004 00063 00072 #define CS_TEXTURE_NOMIPMAPS 0x00000008 00073 00075 SCF_VERSION (iTextureManager, 2, 1, 0); 00076 00087 struct iTextureManager : public iBase 00088 { 00118 virtual csPtr<iTextureHandle> RegisterTexture (iImage *image, int flags) = 0; 00119 #ifdef CS_USE_NEW_RENDERER 00120 virtual csPtr<iTextureHandle> RegisterTexture (iImageVector *image, int flags, int target) = 0; 00121 #endif 00122 00128 virtual void PrepareTextures () = 0; 00129 00138 virtual void FreeImages () = 0; 00139 00149 virtual csPtr<iMaterialHandle> RegisterMaterial (iMaterial* material) = 0; 00150 00158 virtual csPtr<iMaterialHandle> RegisterMaterial ( 00159 iTextureHandle* txthandle) = 0; 00160 00164 virtual void PrepareMaterials () = 0; 00165 00170 virtual void FreeMaterials () = 0; 00171 00177 virtual void SetVerbose (bool vb) = 0; 00178 00186 virtual int GetTextureFormat () = 0; 00187 }; 00188 00191 #endif // __CS_IVIDEO_TXTMGR_H__