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 00045 #define CS_DEFAULT_RENDERLOOP_NAME "*default" 00046 00052 struct iRenderLoop : public iRenderStepContainer 00053 { 00054 SCF_INTERFACE(iRenderLoop, 2,0,0); 00055 virtual void Draw (iRenderView *rview, iSector *s) = 0; 00056 }; 00057 00058 00065 struct iRenderLoopManager : public virtual iBase 00066 { 00067 SCF_INTERFACE(iRenderLoopManager, 2,0,0); 00072 virtual csPtr<iRenderLoop> Create () = 0; 00073 00083 virtual bool Register (const char* name, iRenderLoop* loop) = 0; 00090 virtual iRenderLoop* Retrieve (const char* name) = 0; 00096 virtual const char* GetName (iRenderLoop* loop) = 0; 00102 virtual bool Unregister (iRenderLoop* loop) = 0; 00108 virtual csPtr<iRenderLoop> Load (const char* fileName) = 0; 00109 }; 00110 00113 #endif
Generated for Crystal Space by doxygen 1.4.6