Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages
terraform.h
00001 /* 00002 Copyright (C) 2004 by Anders Stenberg, Daniel Duhprey 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 __CS_IVARIA_TERRAFORM_H__ 00020 #define __CS_IVARIA_TERRAFORM_H__ 00021 00022 #include "csutil/scf.h" 00023 #include "csutil/strset.h" 00024 00025 struct iMaterialWrapper; 00026 struct iTerraSampler; 00027 00028 class csBox2; 00029 class csVector2; 00030 class csVector3; 00031 00032 SCF_VERSION (iTerraFormer, 0, 0, 1); 00033 00038 struct iTerraFormer : public iBase 00039 { 00044 virtual csPtr<iTerraSampler> GetSampler (csBox2 region, 00045 unsigned int resolution) = 0; 00046 00053 virtual bool SampleFloat (csStringID type, float x, float z, 00054 float &value) = 0; 00055 00062 virtual bool SampleVector2 (csStringID type, float x, float z, 00063 csVector2 &value) = 0; 00064 00071 virtual bool SampleVector3 (csStringID type, float x, float z, 00072 csVector3 &value) = 0; 00073 00080 virtual bool SampleInteger (csStringID type, float x, float z, 00081 int &value) = 0; 00082 }; 00083 00084 00085 SCF_VERSION (iTerraSampler, 0, 0, 1); 00086 00092 struct iTerraSampler : public iBase 00093 { 00100 virtual const float *SampleFloat (csStringID type) = 0; 00101 00108 virtual const csVector2 *SampleVector2 (csStringID type) = 0; 00109 00116 virtual const csVector3 *SampleVector3 (csStringID type) = 0; 00117 00124 virtual const int *SampleInteger (csStringID type) = 0; 00125 00130 virtual const csArray<iMaterialWrapper*> &GetMaterialPalette () = 0; 00131 00133 virtual const csBox2 &GetRegion () const = 0; 00134 00136 virtual unsigned int GetResolution () const = 0; 00137 00143 virtual unsigned int GetVersion () const = 0; 00144 00153 virtual void Cleanup () = 0; 00154 }; 00155 00156 #endif // __CS_IVARIA_TERRAFORM_H__
Generated for Crystal Space by doxygen 1.4.4