![]() |
Public API Reference |
00001 /* 00002 Copyright (C) 2002 by Mårten 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 "ivideo/graph3d.h" 00033 00034 class csVector3; 00035 class csVector2; 00036 class csColor; 00037 class csReversibleTransform; 00038 struct iTextureHandle; 00039 struct iMaterialWrapper; 00040 struct iRenderBufferSource; 00041 00043 enum csRenderMeshType 00044 { 00045 CS_MESHTYPE_TRIANGLES, 00046 CS_MESHTYPE_QUADS, 00047 CS_MESHTYPE_TRIANGLESTRIP, 00048 CS_MESHTYPE_TRIANGLEFAN, 00049 CS_MESHTYPE_POINTS, 00050 CS_MESHTYPE_LINES, 00051 CS_MESHTYPE_LINESTRIP 00052 }; 00053 00055 class csRenderMesh 00056 { 00057 public: 00058 csRenderMesh () 00059 { 00060 z_buf_mode = CS_ZBUF_NONE; 00061 mixmode = CS_FX_COPY; 00062 clip_portal = 0; 00063 clip_plane = 0; 00064 clip_z_plane = 0; 00065 do_mirror = false; 00066 indexstart = indexend = 0; 00067 } 00068 00069 virtual ~csRenderMesh () {} 00070 00071 /* 00072 typedef enum 00073 { 00074 SPECIAL_NONE = 0, 00075 SPECIAL_BILLBOARD = 1, 00076 SPECIAL_ZFILL = 2 00077 } specialattributes;*/ 00078 00080 csZBufMode z_buf_mode; 00081 00083 uint mixmode; 00084 00086 int clip_portal; 00087 00089 int clip_plane; 00090 00092 int clip_z_plane; 00093 00095 bool do_mirror; 00096 00098 csRenderMeshType meshtype; 00099 00101 unsigned int indexstart; 00102 00104 unsigned int indexend; 00105 00107 iRenderBufferSource* buffersource; 00108 00110 //iMaterialHandle* mathandle; 00111 iMaterialWrapper* material; 00112 00114 csReversibleTransform *transform; 00115 }; 00116 00119 #endif // __CS_IVIDEO_RENDERMESH_H__