CrystalSpace

Public API Reference

iengine/renderloop.h

Go to the documentation of this file.
00001 /*
00002     Crystal Space 3D engine
00003     Copyright (C) 2003 by Jorrit Tyberghein
00004               (C) 2003 by Frank Richter
00005               (C) 2004 by Marten Svanfeldt
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Library General Public License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public
00018     License along with this library; if not, write to the Free
00019     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020 */
00021 
00022 #ifndef __CS_IENGINE_RENDERLOOP_H__
00023 #define __CS_IENGINE_RENDERLOOP_H__
00024 
00032 #include "csutil/scf.h"
00033 
00034 #include "iengine/rendersteps/icontainer.h"
00035 
00036 struct iCamera;
00037 struct iClipper2D;
00038 struct iSector;
00039 struct iRenderStep;
00040 struct iRenderView;
00041 struct iMeshWrapper;
00042 
00046 #define CS_DEFAULT_RENDERLOOP_NAME      "*default"
00047 
00062 struct iRenderLoop : public iRenderStepContainer
00063 {
00064   SCF_INTERFACE(iRenderLoop, 2,0,0);
00065   virtual void Draw (iRenderView *rview, iSector *s,
00066         iMeshWrapper* mesh = 0) = 0;
00067 };
00068 
00069 
00079 struct iRenderLoopManager : public virtual iBase
00080 {
00081   SCF_INTERFACE(iRenderLoopManager, 2,0,0);
00086   virtual csPtr<iRenderLoop> Create () = 0;
00087   
00097   virtual bool Register (const char* name, iRenderLoop* loop) = 0;
00104   virtual iRenderLoop* Retrieve (const char* name) = 0;
00110   virtual const char* GetName (iRenderLoop* loop) = 0;
00116   virtual bool Unregister (iRenderLoop* loop) = 0;
00122   virtual csPtr<iRenderLoop> Load (const char* fileName) = 0;
00123 };
00124  
00127 #endif

Generated for Crystal Space 1.2.1 by doxygen 1.5.3