CrystalSpace

Public API Reference

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

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 #include "iengine/rendersteps/icontainer.h"
00034 
00035 struct iCamera;
00036 struct iClipper2D;
00037 struct iSector;
00038 struct iRenderStep;
00039 //class csRenderView;
00040 struct iRenderView;
00041 
00045 #define CS_DEFAULT_RENDERLOOP_NAME      "*default"
00046 
00047 SCF_VERSION (iRenderLoop, 0, 0, 3);
00048 
00054 struct iRenderLoop : public iRenderStepContainer
00055 {
00056   virtual void Draw (iRenderView *rview, iSector *s) = 0;
00057 };
00058 
00059 SCF_VERSION (iRenderLoopManager, 0, 0, 2);
00060 
00067 struct iRenderLoopManager : public iBase
00068 {
00073   virtual csPtr<iRenderLoop> Create () = 0;
00074   
00084   virtual bool Register (const char* name, iRenderLoop* loop) = 0;
00091   virtual iRenderLoop* Retrieve (const char* name) = 0;
00097   virtual const char* GetName (iRenderLoop* loop) = 0;
00103   virtual bool Unregister (iRenderLoop* loop) = 0;
00104 };
00105  
00108 #endif

Generated for Crystal Space by doxygen 1.2.18