00001 /* 00002 Copyright (C) 2001 by Jorrit Tyberghein 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public 00015 License along with this library; if not, write to the Free 00016 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef __IMESH_SURF_H__ 00020 #define __IMESH_SURF_H__ 00021 00022 #include "csutil/scf.h" 00023 00024 class csVector3; 00025 class csColor; 00026 00027 struct iMaterialWrapper; 00028 00029 SCF_VERSION (iSurfaceState, 0, 0, 1); 00030 00036 struct iSurfaceState : public iBase 00037 { 00039 virtual void SetResolution (int x, int y) = 0; 00041 virtual int GetXResolution () const = 0; 00043 virtual int GetYResolution () const = 0; 00044 00046 virtual void SetTopLeftCorner (const csVector3& tl) = 0; 00048 virtual csVector3 GetTopLeftCorner () const = 0; 00049 00051 virtual void SetScale (float x, float y) = 0; 00053 virtual float GetXScale () const = 0; 00055 virtual float GetYScale () const = 0; 00056 00058 virtual void SetMaterialWrapper (iMaterialWrapper* material) = 0; 00060 virtual iMaterialWrapper* GetMaterialWrapper () const = 0; 00061 00063 virtual void SetMixMode (UInt mode) = 0; 00065 virtual UInt GetMixMode () const = 0; 00066 00068 virtual void SetLighting (bool l) = 0; 00070 virtual bool IsLighting () const = 0; 00071 00073 virtual void SetColor (const csColor& col) = 0; 00075 virtual csColor GetColor () const = 0; 00076 }; 00077 00078 #endif 00079