00001 /* 00002 Copyright (C) 2001 by Jorrit Tyberghein 00003 Plug-In Written by Richard D Shank 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 __IENGINE_TERRAIN_H__ 00021 #define __IENGINE_TERRAIN_H__ 00022 00023 #include "csutil/scf.h" 00024 #include "iutil/eventh.h" 00025 #include "iutil/comp.h" 00026 00027 class csTerrainWrapper; 00028 struct iLight; 00029 struct iTerrainObject; 00030 struct iTerrainObjectFactory; 00031 struct iObject; 00032 00033 SCF_VERSION (iTerrainWrapper, 0, 0, 1); 00034 00039 struct iTerrainWrapper : public iBase 00040 { 00042 virtual csTerrainWrapper* GetPrivateObject () = 0; 00043 00045 virtual iTerrainObject* GetTerrainObject () = 0; 00047 virtual void SetTerrainObject (iTerrainObject*) = 0; 00049 virtual iObject *QueryObject() = 0; 00050 00060 virtual void UpdateLighting (iLight** lights, int num_lights) = 0; 00061 }; 00062 00063 SCF_VERSION (iTerrainFactoryWrapper, 0, 0, 1); 00064 00069 struct iTerrainFactoryWrapper : public iBase 00070 { 00072 virtual iTerrainObjectFactory* GetTerrainObjectFactory () = 0; 00074 virtual void SetTerrainObjectFactory (iTerrainObjectFactory*) = 0; 00076 virtual iObject *QueryObject() = 0; 00077 }; 00078 00079 #endif // __IENGINE_TERRAIN_H__