00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __IVIDEO_TXTMGR_H__
00021 #define __IVIDEO_TXTMGR_H__
00022
00023 #include "csutil/scf.h"
00024
00025 class Vector2;
00026 class csMatrix3;
00027 class csVector3;
00028 class csRect;
00029
00030 struct iImage;
00031 struct iTextureHandle;
00032 struct iMaterial;
00033 struct iMaterialHandle;
00034
00035
00036
00037
00038
00039
00040
00042 #define CS_TEXTURE_2D 0x00000001
00043
00044 #define CS_TEXTURE_3D 0x00000002
00045
00053 #define CS_TEXTURE_DITHER 0x00000004
00054
00063 #define CS_TEXTURE_NOMIPMAPS 0x00000008
00064
00070 #define CS_TEXTURE_PROC 0x00000010
00071
00075 #define CS_TEXTURE_PROC_MIPMAP_ON_SYNC 0x00000020
00076
00081 #define CS_TEXTURE_PROC_PERSISTENT 0x00000040
00082
00095 #define CS_TEXTURE_PROC_ALONE_HINT 0x00000080
00096
00097
00098 SCF_VERSION (iTextureManager, 2, 0, 0);
00099
00110 struct iTextureManager : public iBase
00111 {
00137 virtual iTextureHandle *RegisterTexture (iImage *image, int flags) = 0;
00138
00145 virtual void PrepareTextures () = 0;
00146
00155 virtual void FreeImages () = 0;
00156
00166 virtual iMaterialHandle* RegisterMaterial (iMaterial* material) = 0;
00167
00175 virtual iMaterialHandle* RegisterMaterial (iTextureHandle* txthandle) = 0;
00176
00180 virtual void PrepareMaterials () = 0;
00181
00186 virtual void FreeMaterials () = 0;
00187
00193 virtual void ResetPalette () = 0;
00194
00201 virtual void ReserveColor (int r, int g, int b) = 0;
00202
00208 virtual int FindRGB (int r, int g, int b) = 0;
00209
00217 virtual void SetPalette () = 0;
00218
00224 virtual void SetVerbose (bool vb) = 0;
00225
00233 virtual int GetTextureFormat () = 0;
00234 };
00235
00236 #endif // __IVIDEO_TXTMGR_H__