51 glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB, &numformats);
52 if (numformats == 0) {
57 result = (compressARB > 0) ?
true :
false;
70 const int BUFSIZE = 1024;
76 if (strcmp(optionName, tcEnabledStr) != 0) {
113 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &result);
114 if (result > 16384) {
122 const int BUFSIZE = 1024;
void * GfParmReadFile(const char *file, int mode)
Read parameter set from file and return handle to parameter set.
void getUserTextureMaxSize(int &result)
void GfParmReleaseHandle(void *parmHandle)
Release given parameter set handle parmHandle.
static bool compressARBEnabled
void checkGLFeatures(void)
void getGLTextureMaxSize(int &result)
#define GR_ATT_TEXTURECOMPRESSION
const char * GfParmGetStr(void *parmHandle, const char *path, const char *key, const char *deflt)
Get a string parameter from the parameter set handle.
bool isCompressARBAvailable(void)
#define GR_ATT_TEXTURECOMPRESSION_DISABLED
float tdble
Floating point type used in TORCS.
static int glTextureMaxSize
#define GFPARM_RMODE_REREAD
reread the parameters from file and release the previous ones
void checkCompressARBAvailable(bool &result)
void updateUserTextureMaxSize(void)
void updateCompressARBEnabled(void)
#define GR_ATT_TEXTURESIZE
bool isCompressARBEnabled(void)
tdble GfParmGetNum(void *handle, const char *path, const char *key, const char *unit, tdble deflt)
Get a numerical parameter from the parameter set handle.
#define GR_SCT_GLFEATURES
static int userTextureMaxSize
int GfuiGlutExtensionSupported(const char *str)
#define GFPARM_RMODE_CREAT
Create the file if doesn't exist.
#define GR_ATT_TEXTURECOMPRESSION_ENABLED
static bool compressARBAvailable
void checkCompressARBEnabled(bool &result)