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 
00043 class csShaderVariableStack;
00044 
00048 #define CS_DEFAULT_RENDERLOOP_NAME      "*default"
00049 
00064 struct iRenderLoop : public iRenderStepContainer
00065 {
00066   SCF_INTERFACE(iRenderLoop, 2,0,0);
00067   virtual void Draw (iRenderView *rview, iSector *s,
00068         iMeshWrapper* mesh = 0) = 0;
00069 };
00070 
00071 
00081 struct iRenderLoopManager : public virtual iBase
00082 {
00083   SCF_INTERFACE(iRenderLoopManager, 3,0,0);
00088   virtual csPtr<iRenderLoop> Create () = 0;
00089   
00099   virtual bool Register (const char* name, iRenderLoop* loop, bool checkDupes = false) = 0;
00106   virtual iRenderLoop* Retrieve (const char* name) = 0;
00112   virtual const char* GetName (iRenderLoop* loop) = 0;
00118   virtual bool Unregister (iRenderLoop* loop) = 0;
00124   virtual csPtr<iRenderLoop> Load (const char* fileName) = 0;
00130   virtual void UnregisterAll (bool evenDefault = false) = 0;
00131 };
00132  
00135 #endif

Generated for Crystal Space 2.0 by doxygen 1.7.6.1