imesh/bcterr.h
00001 /* 00002 Copyright (C) 2002 by Jorrit Tyberghein and Ryan Surkamp 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_IMESH_BCTERR_H__ 00020 #define __CS_IMESH_BCTERR_H__ 00021 00022 #include "csutil/scf.h" 00023 00024 struct iEngine; 00025 struct iImage; 00026 struct iMaterialWrapper; 00027 struct iMaterialList; 00028 struct iLoaderContext; 00029 class csVector3; 00030 class csVector2; 00031 class csColor; 00032 class csTransform; 00033 class csSharedLODMesh; 00034 class csBCTerrBlock; 00035 class csBox3; 00036 00037 00038 00039 SCF_VERSION (iBCTerrState, 0, 0, 3); 00040 00058 struct iBCTerrState : public iBase 00059 { 00061 virtual void SetSize (int x, int z) = 0; 00063 virtual void SetTopLeftCorner (const csVector3& topleft) = 0; 00065 virtual void SetBlockMaterial (int x_block, int z_block, 00066 iMaterialWrapper* mat) = 0; 00068 virtual void SetHeightMap (iImage* im) = 0; 00070 virtual int HeightTest (csVector3 *point) = 0; 00072 virtual void SetBlockMaterialNum (int num, iMaterialWrapper* mat) = 0; 00074 virtual int CameraHeightTest (csVector3 *point) = 0; 00076 virtual void SetControlPoint (const csVector3 point, const int iter) = 0; 00078 virtual void SetControlPoint (const csVector3 point, const int x, 00079 const int z) = 0; 00081 virtual void SetControlPointHeight (const float height, const int iter) = 0; 00083 virtual void SetControlPointHeight (const float height, const int x, 00084 const int z) = 0; 00086 virtual void SetFlattenHeight (const float up, const float down, 00087 const float left, const float right) = 0; 00092 virtual void DoFlatten (const bool up, const bool down, 00093 const bool left, const bool right) = 0; 00095 virtual void SetSystemInc (const int inc) = 0; 00100 virtual void PreBuild () = 0; 00102 virtual void Build () = 0; 00104 virtual int GetControlLength () = 0; 00107 virtual bool GetControlPoint (int iter, csVector3 &point) = 0; 00108 }; 00109 00110 SCF_VERSION (iBCTerrFactoryState, 0, 0, 3); 00111 00129 struct iBCTerrFactoryState : public iBase 00130 { 00132 virtual void SetMaxEdgeResolution (int res) = 0; 00133 virtual int GetMaxEdgeResolution () = 0; 00135 virtual void SetBlockSize (float x, float z) = 0; 00136 00138 virtual void AddLOD (float distance, int increments) = 0; 00140 virtual void SetLODDistance (int lod_level, float distance) = 0; 00142 virtual void SetMultiplier (float m ) = 0; 00144 virtual csSharedLODMesh* GetSharedMesh (int level, csBCTerrBlock *owner) = 0; 00145 virtual void FreeShared (csBCTerrBlock *owner, int level ) = 0; 00147 virtual void AddTime (csTicks time) = 0; 00148 virtual csVector2* GetSize () = 0; 00149 virtual float GetMultiplier () = 0; 00151 virtual csSharedLODMesh* CreateFreeMesh (bool wavy) = 0; 00152 virtual void SetFocusPoint (const csVector3 focus) = 0; 00153 virtual csVector2* GetLODUV (int lod_level) = 0; 00154 virtual float* GetLODDistances () = 0; 00155 virtual void SetDefaultMaterial ( iMaterialWrapper* mat ) = 0; 00156 virtual iMaterialWrapper* GetDefaultMaterial () = 0; 00158 virtual int GetUserLOD () = 0; 00159 virtual void GetSystemDistance (float &start, float &dist) = 0; 00161 virtual void SetSystemDistance (float start, float new_dist) = 0; 00162 }; 00163 00164 #endif // __CS_IMESH_BCTERR_H__ 00165
Generated for Crystal Space by doxygen 1.2.18