CrystalSpace

Public API Reference

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

ivideo/rendermesh.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2002 by Marten Svanfeldt
00003                       Anders Stenberg
00004 
00005 This library is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU Library General Public
00007 License as published by the Free Software Foundation; either
00008 version 2 of the License, or (at your option) any later version.
00009 
00010 This library is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 Library General Public License for more details.
00014 
00015 You should have received a copy of the GNU Library General Public
00016 License along with this library; if not, write to the Free
00017 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 */
00019 
00020 #ifndef __CS_IVIDEO_RENDERMESH_H__
00021 #define __CS_IVIDEO_RENDERMESH_H__
00022 
00031 #include "csutil/strset.h"
00032 #include "csutil/ref.h"
00033 #include "ivideo/graph3d.h"
00034 #include "csgeom/transfrm.h"
00035 #include "ivideo/shader/shader.h"
00036 
00037 class csVector3;
00038 class csVector2;
00039 class csColor;
00040 class csReversibleTransform;
00041 struct iTextureHandle;
00042 struct iMaterialWrapper;
00043 struct iPortalContainer;
00044 
00046 struct csRenderMesh
00047 {
00048   csRenderMesh () 
00049   {
00050     z_buf_mode = CS_ZBUF_NONE;
00051     mixmode = CS_FX_COPY;
00052     clip_portal = 0;
00053     clip_plane = 0;
00054     clip_z_plane = 0;
00055     do_mirror = false;
00056     indexstart = indexend = 0;
00057     dynDomain = 0;
00058     portal = 0;
00059   }
00060 
00061   ~csRenderMesh () {}
00062 
00064   csZBufMode z_buf_mode;
00065 
00067   uint mixmode;
00068 
00070   int clip_portal;
00071 
00073   int clip_plane;
00074 
00076   int clip_z_plane;
00077 
00079   bool do_mirror;
00080 
00082   csRenderMeshType meshtype;
00083 
00085   unsigned int indexstart;
00086 
00088   unsigned int indexend;
00089 
00091   //iMaterialHandle* mathandle;
00092   iMaterialWrapper* material;
00093 
00095   csReversibleTransform object2camera;
00096 
00097   csRef<iShaderVariableContext> dynDomain;
00098   
00099   csAlphaMode::AlphaType alphaType;
00100 
00101   //pointer to a portalcontainer, if there is any
00102   iPortalContainer* portal;
00103 };
00104 
00107 #endif // __CS_IVIDEO_RENDERMESH_H__

Generated for Crystal Space by doxygen 1.2.18