Main Page   Class Hierarchy   Compound List   File List   Compound Members  

material.h

00001 /*
00002     Copyright (C) 2000 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 __IENGINE_MATERIAL_H__
00020 #define __IENGINE_MATERIAL_H__
00021 
00022 #include "csutil/scf.h"
00023 
00024 class csMaterialWrapper;
00025 struct iMaterial;
00026 struct iMaterialHandle;
00027 struct iTextureManager;
00028 struct iObject;
00029 
00030 SCF_VERSION (iMaterialWrapper, 0, 0, 4);
00031 
00039 struct iMaterialWrapper : public iBase
00040 {
00042   virtual csMaterialWrapper* GetPrivateObject () = 0;
00044   virtual iObject *QueryObject() = 0;
00045 
00050   virtual void SetMaterialHandle (iMaterialHandle *mat) = 0;
00052   virtual iMaterialHandle* GetMaterialHandle () = 0;
00053 
00058   virtual void SetMaterial (iMaterial* material) = 0;
00060   virtual iMaterial* GetMaterial () = 0;
00061 
00063   virtual void Register (iTextureManager *txtmng) = 0;
00064 
00070   virtual void Visit () = 0;
00071 };
00072 
00073 SCF_VERSION (iMaterialList, 0, 0, 1);
00074 
00078 struct iMaterialList : public iBase
00079 {
00081   virtual iMaterialWrapper* NewMaterial (iMaterial* material) = 0;
00082 
00087   virtual iMaterialWrapper *NewMaterial (iMaterialHandle *ith) = 0;
00088 
00090   virtual int GetCount () const = 0;
00091 
00093   virtual iMaterialWrapper *Get (int n) const = 0;
00094 
00096   virtual int Add (iMaterialWrapper *obj) = 0;
00097 
00099   virtual bool Remove (iMaterialWrapper *obj) = 0;
00100 
00102   virtual bool Remove (int n) = 0;
00103 
00105   virtual void RemoveAll () = 0;
00106 
00108   virtual int Find (iMaterialWrapper *obj) const = 0;
00109 
00111   virtual iMaterialWrapper *FindByName (const char *Name) const = 0;
00112 };
00113 
00114 #endif // __IENGINE_MATERIAL_H__

Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000