Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages
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 csRGBpixel; 00039 struct csLightMapMapping; 00040 struct iImage; 00041 struct iTextureHandle; 00042 struct iMaterial; 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 00077 #define CS_TEXTURE_CLAMP 0x00000010 00078 00081 #define CS_TEXTURE_NOFILTER 0x00000020 00082 00095 #define CS_TEXTURE_NPOTS 0x00000040 00096 00098 SCF_VERSION (iRendererLightmap, 1, 1, 0); 00099 00103 struct iRendererLightmap : public iBase 00104 { 00109 virtual void GetSLMCoords (int& left, int& top, 00110 int& width, int& height) = 0; 00111 00113 virtual void SetData (csRGBpixel* data) = 0; 00114 00115 virtual void SetLightCellSize (int size) = 0; 00116 }; 00117 00118 SCF_VERSION (iSuperLightmap, 1, 0, 1); 00119 00123 struct iSuperLightmap : public iBase 00124 { 00126 virtual csPtr<iRendererLightmap> RegisterLightmap (int left, int top, 00127 int width, int height) = 0; 00128 00130 virtual csPtr<iImage> Dump () = 0; 00131 00132 virtual iTextureHandle* GetTexture () = 0; 00133 }; 00134 00135 SCF_VERSION (iTextureManager, 2, 5, 0); 00136 00156 struct iTextureManager : public iBase 00157 { 00185 virtual csPtr<iTextureHandle> RegisterTexture (iImage *image, int flags) = 0; 00186 00194 virtual int GetTextureFormat () = 0; 00195 00199 virtual csPtr<iSuperLightmap> CreateSuperLightmap (int width, 00200 int height) = 0; 00201 00205 virtual void GetMaxTextureSize (int& w, int& h, int& aspect) = 0; 00206 00212 virtual void GetLightmapRendererCoords (int slmWidth, int slmHeight, 00213 int lm_x1, int lm_y1, int lm_x2, int lm_y2, 00214 float& lm_u1, float& lm_v1, float &lm_u2, float& lm_v2) = 0; 00215 }; 00216 00219 #endif // __CS_IVIDEO_TXTMGR_H__
Generated for Crystal Space by doxygen 1.4.4