TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
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-2026 by Bernhard Wymann
6
7***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18/*
19 Functions to check if features seems to be available and requested by the
20 user. The isAvailable functions should return if a feature is working on
21 the system, the isEnabled feature should check if the user wants to enable
22 it as well.
23 It should NOT check if the features are really working, that is subject
24 to another part eventually.
25*/
26
27#ifndef _GRFEATURES_H_
28#define _GRFEATURES_H_
29
30#ifdef WIN32
31#include <windows.h>
32#include <GL/gl.h>
33#include <GL/glext.h>
34#else
35#include <GL/gl.h>
36#endif // WIN32
37
38#include <tgfclient.h>
39#include <graphic.h>
40
41// Initialize
42extern void checkGLFeatures(void);
43
44// GL_ARB_texture_compression
45extern bool isCompressARBAvailable(void);
46extern bool isCompressARBEnabled(void);
47extern void updateCompressARBEnabled(void);
48
49extern int getUserTextureMaxSize(void);
50extern int getGLTextureMaxSize(void);
51extern void updateUserTextureMaxSize(void);
52
53extern bool isTextureAnisotropyAvailable(void);
54extern int getGLTextureMaxAnisotropy(void);
55extern int getUserTextureAnisotropy(void);
56extern void updateUserTextureAnisotropy(void);
57extern void applyUserTextureAnisotropy(void);
58
59#endif // _GRFEATURES_H_
bool isCompressARBEnabled(void)
void applyUserTextureAnisotropy(void)
int getGLTextureMaxSize(void)
int getUserTextureAnisotropy(void)
void updateUserTextureMaxSize(void)
void updateUserTextureAnisotropy(void)
bool isCompressARBAvailable(void)
int getUserTextureMaxSize(void)
int getGLTextureMaxAnisotropy(void)
void updateCompressARBEnabled(void)
bool isTextureAnisotropyAvailable(void)
void checkGLFeatures(void)
The Gaming Framework API (client part).