torcs - 1.2.2

src/modules/graphic/ssggraph/grmain.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003     file                 : grmain.h
00004     created              : Fri Aug 18 00:00:41 CEST 2000
00005     copyright            : (C) 2000 by Eric Espie
00006     email                : torcs@free.fr
00007     version              : $Id: grmain.h,v 1.12 2004/01/15 18:16:54 torcs Exp $
00008 
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   (at your option) any later version.                                   *
00017  *                                                                         *
00018  ***************************************************************************/
00019 
00020  
00021 #ifndef _GRMAIN_H_
00022 #define _GRMAIN_H_
00023 
00024 #include <plib/ssg.h>
00025 #include <raceman.h>
00026 
00027 #if GL_VERSION_1_3
00028 #define glActiveTextureARB glActiveTexture
00029 #define glMultiTexCoord2fvARB glMultiTexCoord2fv
00030 #define glClientActiveTextureARB glClientActiveTexture
00031 #endif
00032 
00033 #ifdef WIN32
00034 #include <windows.h>
00035 #include <GL/gl.h>
00036 #include "win32_glext.h"
00038 /*typedef void (APIENTRY * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
00039 typedef void (APIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
00040 typedef void (APIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);*/
00041 extern PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB ;
00042 extern PFNGLMULTITEXCOORD2FVARBPROC glMultiTexCoord2fvARB;
00043 extern PFNGLACTIVETEXTUREARBPROC   glActiveTextureARB ;
00044 extern PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTextureARB ;
00045 
00046 /*
00047   PFNGLMULTITEXCOORD2FVARBPROC  glMultiTexCoord2fvARB           = NULL;
00048   PFNGLACTIVETEXTUREARBPROC             glActiveTextureARB                      = NULL;
00049   PFNGLCLIENTACTIVETEXTUREARBPROC       glClientActiveTextureARB        = NULL;
00050   
00051   PFNGLDRAWARRAYSEXTPROC                        glDrawArraysEXT                         = NULL;
00052   PFNGLVERTEXPOINTEREXTPROC             glVertexPointerEXT                      = NULL;
00053   PFNGLNORMALPOINTEREXTPROC             glNormalPointerEXT                      = NULL;
00054   PFNGLTEXCOORDPOINTEREXTPROC           glTexCoordPointerEXT            = NULL;
00055 */
00056 extern bool InStr(char *searchStr, char *str);
00057 #endif
00058 
00059 extern bool InitMultiTex();
00060 extern int grWinx, grWiny, grWinw, grWinh;
00061 
00062 extern int grVectFlag;
00063 extern int grVectDispFlag[];
00064 extern int segIndice;
00065 
00066 extern double grCurTime;
00067 
00068 extern void *grHandle;
00069 extern void *grTrackHandle;
00070 
00071 extern ssgContext grContext;
00072 extern int grNbCars;
00073 
00074 extern int  initView(int x, int y, int width, int height, int flag, void *screen);
00075 extern int  initCars(tSituation *s);
00076 extern int  refresh(tSituation *s);
00077 extern void shutdownCars(void);
00078 extern int  initTrack(tTrack *track);
00079 extern void shutdownTrack(void);
00080 extern int maxTextureUnits;
00081 extern tdble grMaxDammage;
00082 
00083 extern class cGrScreen *grScreens[];
00084 
00085 #define GR_SPLIT_ADD    0
00086 #define GR_SPLIT_REM    1
00087 
00088 #define GR_NB_MAX_SCREEN 4
00089 
00090 extern tdble grLodFactorValue;
00091 extern double grDeltaTime;
00092 
00093 #endif /* _GRMAIN_H_ */ 
00094 
00095 
00096 

Generated at Thu Feb 26 21:52:29 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.