TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
openglconfig.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <tgfclient.h>
#include <raceinit.h>
#include <graphic.h>
#include <glfeatures.h>
#include <portability.h>
#include "openglconfig.h"
Include dependency graph for openglconfig.cpp:

Go to the source code of this file.

Functions

static void readOpenGLCfg (void)
static void saveOpenGLOption (void *)
static void changeTextureCompressState (int delta)
static void changeTextureSizeState (int delta)
static void changeTextureAnisotropyState (int delta)
static void onActivate (void *)
void * OpenGLMenuInit (void *prevMenu)

Variables

static float LabelColor [] = {1.0, 0.0, 1.0, 1.0}
static const char * textureCompressOptionList []
static const int nbOptionsTextComp = sizeof(textureCompressOptionList) / sizeof(textureCompressOptionList[0])
static int curOptionTextComp = 0
static int TextureCompressOptionId
static int textureSizeOptionList [] = {8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384}
static int nbOptionsTextSize = sizeof(textureSizeOptionList) / sizeof(textureSizeOptionList[0])
static int curOptionTextSize = 0
static int TextureSizeOptionId
static const int defaultTextSize = 64
static const char * textureAnisotropyOptionLabelList []
static int textureAnisotropyOptionList [] = {0, 2, 4, 8, 16}
static const int nbTextureAnisotropyOptions = sizeof(textureAnisotropyOptionList) / sizeof(textureAnisotropyOptionList[0])
static int nbOptionsTextAnisotropy = 1
static int curOptionTextAnisotropy = 0
static int TextureAnisotropyOptionId
static void * scrHandle = NULL
static void * prevHandle = NULL

Function Documentation

◆ changeTextureAnisotropyState()

void changeTextureAnisotropyState ( int delta)
static

Definition at line 219 of file openglconfig.cpp.

Here is the call graph for this function:

◆ changeTextureCompressState()

void changeTextureCompressState ( int delta)
static

Definition at line 188 of file openglconfig.cpp.

Here is the call graph for this function:

◆ changeTextureSizeState()

void changeTextureSizeState ( int delta)
static

Definition at line 201 of file openglconfig.cpp.

Here is the call graph for this function:

◆ onActivate()

void onActivate ( void * )
static

Definition at line 232 of file openglconfig.cpp.

Here is the call graph for this function:

◆ OpenGLMenuInit()

void * OpenGLMenuInit ( void * prevMenu)

Definition at line 239 of file openglconfig.cpp.

Here is the call graph for this function:

◆ readOpenGLCfg()

void readOpenGLCfg ( void )
static

Definition at line 70 of file openglconfig.cpp.

Here is the call graph for this function:

◆ saveOpenGLOption()

void saveOpenGLOption ( void * )
static

Definition at line 159 of file openglconfig.cpp.

Here is the call graph for this function:

Variable Documentation

◆ curOptionTextAnisotropy

int curOptionTextAnisotropy = 0
static

Definition at line 61 of file openglconfig.cpp.

◆ curOptionTextComp

int curOptionTextComp = 0
static

Definition at line 40 of file openglconfig.cpp.

◆ curOptionTextSize

int curOptionTextSize = 0
static

Definition at line 46 of file openglconfig.cpp.

◆ defaultTextSize

const int defaultTextSize = 64
static

Definition at line 48 of file openglconfig.cpp.

◆ LabelColor

float LabelColor[] = {1.0, 0.0, 1.0, 1.0}
static

Definition at line 31 of file openglconfig.cpp.

◆ nbOptionsTextAnisotropy

int nbOptionsTextAnisotropy = 1
static

Definition at line 60 of file openglconfig.cpp.

◆ nbOptionsTextComp

const int nbOptionsTextComp = sizeof(textureCompressOptionList) / sizeof(textureCompressOptionList[0])
static

Definition at line 39 of file openglconfig.cpp.

◆ nbOptionsTextSize

int nbOptionsTextSize = sizeof(textureSizeOptionList) / sizeof(textureSizeOptionList[0])
static

Definition at line 45 of file openglconfig.cpp.

◆ nbTextureAnisotropyOptions

const int nbTextureAnisotropyOptions = sizeof(textureAnisotropyOptionList) / sizeof(textureAnisotropyOptionList[0])
static

Definition at line 59 of file openglconfig.cpp.

◆ prevHandle

void* prevHandle = NULL
static

Definition at line 66 of file openglconfig.cpp.

◆ scrHandle

void* scrHandle = NULL
static

Definition at line 65 of file openglconfig.cpp.

◆ TextureAnisotropyOptionId

int TextureAnisotropyOptionId
static

Definition at line 62 of file openglconfig.cpp.

◆ textureAnisotropyOptionLabelList

const char* textureAnisotropyOptionLabelList[]
static
Initial value:
= {
"disabled",
"2x",
"4x",
"8x",
"16x"
}

Definition at line 51 of file openglconfig.cpp.

◆ textureAnisotropyOptionList

int textureAnisotropyOptionList[] = {0, 2, 4, 8, 16}
static

Definition at line 58 of file openglconfig.cpp.

◆ TextureCompressOptionId

int TextureCompressOptionId
static

Definition at line 41 of file openglconfig.cpp.

◆ textureCompressOptionList

const char* textureCompressOptionList[]
static
Initial value:
= {
}
#define GR_ATT_TEXTURECOMPRESSION_DISABLED
Definition graphic.h:53
#define GR_ATT_TEXTURECOMPRESSION_ENABLED
Definition graphic.h:52

Definition at line 34 of file openglconfig.cpp.

◆ TextureSizeOptionId

int TextureSizeOptionId
static

Definition at line 47 of file openglconfig.cpp.

◆ textureSizeOptionList

int textureSizeOptionList[] = {8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384}
static

Definition at line 44 of file openglconfig.cpp.