CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

region.h

Go to the documentation of this file.
00001 /*
00002     Crystal Space 3D engine
00003     Copyright (C) 2000 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_IENGINE_REGION_H__
00021 #define __CS_IENGINE_REGION_H__
00022 
00029 #include "csutil/scf.h"
00030 
00031 struct iSector;
00032 struct iSprite;
00033 struct iSpriteTemplate;
00034 struct iMeshWrapper;
00035 struct iMeshFactoryWrapper;
00036 struct iTextureWrapper;
00037 struct iMaterialWrapper;
00038 struct iCameraPosition;
00039 struct iObject;
00040 struct iCollection;
00041 
00042 SCF_VERSION (iRegion, 0, 1, 7);
00043 
00048 struct iRegion : public iBase
00049 {
00051   virtual iObject *QueryObject() = 0;
00052 
00056   virtual void Add (iObject *obj) = 0;
00057 
00061   virtual void Remove (iObject *obj) = 0;
00062 
00067   virtual void Clear () = 0;
00068 
00072   virtual void DeleteAll () = 0;
00073 
00077   virtual bool PrepareTextures () = 0;
00078 
00082   virtual bool ShineLights () = 0;
00083 
00090   virtual bool Prepare () = 0;
00091 
00093   virtual iSector *FindSector (const char *iName) = 0;
00095   virtual iMeshWrapper *FindMeshObject (const char *iName) = 0;
00097   virtual iMeshFactoryWrapper *FindMeshFactory (const char *iName) = 0;
00099   virtual iTextureWrapper *FindTexture (const char *iName) = 0;
00101   virtual iMaterialWrapper *FindMaterial (const char *iName) = 0;
00103   virtual iCameraPosition *FindCameraPosition (const char *iName) = 0;
00105   virtual iCollection *FindCollection (const char *iName) = 0;
00106 
00112   virtual bool IsInRegion (iObject* obj) = 0;
00113 };
00114 
00115 
00116 SCF_VERSION (iRegionList, 0, 0, 1);
00117 
00121 struct iRegionList : public iBase
00122 {
00124   virtual int GetCount () const = 0;
00125 
00127   virtual iRegion *Get (int n) const = 0;
00128 
00130   virtual int Add (iRegion *obj) = 0;
00131 
00133   virtual bool Remove (iRegion *obj) = 0;
00134 
00136   virtual bool Remove (int n) = 0;
00137 
00139   virtual void RemoveAll () = 0;
00140 
00142   virtual int Find (iRegion *obj) const = 0;
00143 
00145   virtual iRegion *FindByName (const char *Name) const = 0;
00146 };
00147 
00150 #endif // __CS_IENGINE_REGION_H__

Generated for Crystal Space by doxygen 1.3.9.1