TORCS  1.3.9
The Open Racing Car Simulator
glfeatures.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  file : glfeatures.h
4  created : Wed Jun 1 14:56:31 CET 2005
5  copyright : (C) 2005 by Bernhard Wymann
6  version : $Id$
7 
8 ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 /*
20  Functions to check if features seems to be available and requested by the
21  user. The isAvailable functions should return if a feature is working on
22  the system, the isEnabled feature should check if the user wants to enable
23  it as well.
24  It should NOT check if the features are really working, that is subject
25  to another part eventually.
26 */
27 
28 #ifndef _GRFEATURES_H_
29 #define _GRFEATURES_H_
30 
31 #ifdef WIN32
32 #include <windows.h>
33 #include <GL/gl.h>
34 #include <GL/glext.h>
35 #else
36 #include <GL/gl.h>
37 #endif // WIN32
38 
39 #include <tgfclient.h>
40 #include <graphic.h>
41 
42 // Initialize
43 extern void checkGLFeatures(void);
44 
45 // GL_ARB_texture_compression
46 extern bool isCompressARBAvailable(void);
47 extern bool isCompressARBEnabled(void);
48 extern void updateCompressARBEnabled(void);
49 
50 extern int getUserTextureMaxSize(void);
51 extern int getGLTextureMaxSize(void);
52 extern void updateUserTextureMaxSize(void);
53 
54 #endif // _GRFEATURES_H_
55 
bool isCompressARBEnabled(void)
Definition: glfeatures.cpp:99
int getUserTextureMaxSize(void)
Definition: glfeatures.cpp:145
The Gaming Framework API (client part).
bool isCompressARBAvailable(void)
Definition: glfeatures.cpp:93
void updateCompressARBEnabled(void)
Definition: glfeatures.cpp:86
void updateUserTextureMaxSize(void)
Definition: glfeatures.cpp:134
void checkGLFeatures(void)
Definition: glfeatures.cpp:152
Graphic Module Interface Definition.
int getGLTextureMaxSize(void)
Definition: glfeatures.cpp:139