ivideo/txtmgr.h
Go to the documentation of this file.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 csRGBcolor; 00039 struct csRGBpixel; 00040 struct csLightMapMapping; 00041 struct iImage; 00042 struct iTextureHandle; 00043 struct iMaterial; 00044 00051 00052 #define CS_TEXTURE_2D 0x00000001 00054 #define CS_TEXTURE_3D 0x00000002 00055 00064 #define CS_TEXTURE_NOMIPMAPS 0x00000008 00065 00069 #define CS_TEXTURE_CLAMP 0x00000010 00070 00073 #define CS_TEXTURE_NOFILTER 0x00000020 00074 00087 #define CS_TEXTURE_NPOTS 0x00000040 00088 00098 #define CS_TEXTURE_SCALE_UP 0x00000080 00099 00109 #define CS_TEXTURE_SCALE_DOWN 0x00000100 00110 00115 struct iRendererLightmap : public virtual iBase 00116 { 00117 SCF_INTERFACE (iRendererLightmap, 2, 1, 0); 00118 00123 virtual void GetSLMCoords (int& left, int& top, 00124 int& width, int& height) = 0; 00125 00127 virtual void SetData (csRGBcolor* data) = 0; 00128 00129 virtual void SetLightCellSize (int size) = 0; 00130 }; 00131 00135 struct iSuperLightmap : public virtual iBase 00136 { 00137 SCF_INTERFACE (iSuperLightmap, 2, 0, 0); 00138 00140 virtual csPtr<iRendererLightmap> RegisterLightmap (int left, int top, 00141 int width, int height) = 0; 00142 00144 virtual csPtr<iImage> Dump () = 0; 00145 00146 virtual iTextureHandle* GetTexture () = 0; 00147 }; 00148 00165 struct iTextureManager : public virtual iBase 00166 { 00167 SCF_INTERFACE(iTextureManager, 3,1,0); 00195 virtual csPtr<iTextureHandle> RegisterTexture (iImage *image, int flags) = 0; 00196 00204 virtual int GetTextureFormat () = 0; 00205 00209 virtual csPtr<iSuperLightmap> CreateSuperLightmap (int width, 00210 int height) = 0; 00211 00215 virtual void GetMaxTextureSize (int& w, int& h, int& aspect) = 0; 00216 }; 00217 00220 #endif // __CS_IVIDEO_TXTMGR_H__
Generated for Crystal Space by doxygen 1.4.7