Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

Render.h

Go to the documentation of this file.
00001 /****************************************************************************************/
00002 /*  Render.h                                                                            */
00003 /*                                                                                      */
00004 /*  Author: George McBay (gfm@my-deja.com)                                              */
00005 /*  Description: Polygon rasterization functions for OpenGL driver                      */
00006 /*                                                                                      */
00007 /*  The contents of this file are subject to the Genesis3D Public License               */
00008 /*  Version 1.01 (the "License"); you may not use this file except in                   */
00009 /*  compliance with the License. You may obtain a copy of the License at                */
00010 /*  http://www.genesis3d.com                                                            */
00011 /*                                                                                      */
00012 /*  Software distributed under the License is distributed on an "AS IS"                 */
00013 /*  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See                */
00014 /*  the License for the specific language governing rights and limitations              */
00015 /*  under the License.                                                                  */
00016 /*                                                                                      */
00017 /*                                                                                      */
00018 /****************************************************************************************/
00019 
00020 #ifndef RENDER_H
00021 #define RENDER_H
00022 
00023 #include "DCommon.h"
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 enum 
00030 {  
00031         RENDER_UNKNOWN_MODE,
00032         RENDER_MISC_TEX_POLY_MODE, 
00033         RENDER_MISC_GOURAD_POLY_MODE, 
00034         RENDER_LINES_POLY_MODE, 
00035         RENDER_WORLD_TRANSPARENT_POLY_MODE,
00036         RENDER_WORLD_POLY_MODE,
00037         RENDER_LIGHTMAP_POLY_MODE,
00038         RENDER_LIGHTMAP_FOG_POLY_MODE,
00039         RENDER_DECAL_MODE,
00040 };
00041 
00042 extern uint32                           PolyMode;
00043 extern DRV_CacheInfo            CacheInfo;
00044 extern GLint decalTexObj;
00045 
00046 void Render_SetHardwareMode(int32 NewMode, uint32 NewFlags);
00047 geBoolean DRIVERCC Render_GouraudPoly(DRV_TLVertex *Pnts, int32 NumPoints, uint32 Flags);
00048 geBoolean DRIVERCC Render_WorldPoly(DRV_TLVertex *Pnts, int32 NumPoints, geRDriver_THandle *THandle, DRV_TexInfo *TexInfo, DRV_LInfo *LInfo, uint32 Flags);
00049 geBoolean DRIVERCC Render_MiscTexturePoly(DRV_TLVertex *Pnts, int32 NumPoints, geRDriver_THandle *THandle, uint32 Flags);
00050 geBoolean DRIVERCC DrawDecal(geRDriver_THandle *THandle, RECT *SRect, int32 x, int32 y);
00051 geBoolean DRIVERCC BeginScene(geBoolean Clear, geBoolean ClearZ, RECT *WorldRect);
00052 geBoolean DRIVERCC EndScene(void);
00053 geBoolean DRIVERCC BeginWorld(void);
00054 geBoolean DRIVERCC EndWorld(void);
00055 geBoolean DRIVERCC BeginMeshes(void);
00056 geBoolean DRIVERCC EndMeshes(void);
00057 geBoolean DRIVERCC BeginModels(void);
00058 geBoolean DRIVERCC EndModels(void);
00059 
00060 
00061 #ifdef __cplusplus
00062 }
00063 #endif
00064 
00065 #endif

Generated on Tue Sep 30 12:36:18 2003 for GTestAndEngine by doxygen 1.3.2