TORCS  1.3.9
The Open Racing Car Simulator
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 (void *vp)
 
static void changeTextureSizeState (void *vp)
 
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 void * scrHandle = NULL
 
static void * prevHandle = NULL
 

Detailed Description

Version
$Id$

Definition in file openglconfig.cpp.

Function Documentation

◆ changeTextureCompressState()

static void changeTextureCompressState ( void *  vp)
static

Definition at line 147 of file openglconfig.cpp.

Here is the call graph for this function:

◆ changeTextureSizeState()

static void changeTextureSizeState ( void *  vp)
static

Definition at line 165 of file openglconfig.cpp.

Here is the call graph for this function:

◆ onActivate()

static void onActivate ( void *  )
static

Definition at line 183 of file openglconfig.cpp.

Here is the call graph for this function:

◆ OpenGLMenuInit()

void* OpenGLMenuInit ( void *  prevMenu)

Definition at line 190 of file openglconfig.cpp.

Here is the call graph for this function:

◆ readOpenGLCfg()

static void readOpenGLCfg ( void  )
static

Definition at line 59 of file openglconfig.cpp.

Here is the call graph for this function:

◆ saveOpenGLOption()

static void saveOpenGLOption ( void *  )
static

Definition at line 123 of file openglconfig.cpp.

Here is the call graph for this function:

Variable Documentation

◆ curOptionTextComp

int curOptionTextComp = 0
static

Definition at line 43 of file openglconfig.cpp.

◆ curOptionTextSize

int curOptionTextSize = 0
static

Definition at line 49 of file openglconfig.cpp.

◆ defaultTextSize

const int defaultTextSize = 64
static

Definition at line 51 of file openglconfig.cpp.

◆ LabelColor

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

Definition at line 34 of file openglconfig.cpp.

◆ nbOptionsTextComp

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

Definition at line 42 of file openglconfig.cpp.

◆ nbOptionsTextSize

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

Definition at line 48 of file openglconfig.cpp.

◆ prevHandle

void* prevHandle = NULL
static

Definition at line 55 of file openglconfig.cpp.

◆ scrHandle

void* scrHandle = NULL
static

Definition at line 54 of file openglconfig.cpp.

◆ TextureCompressOptionId

int TextureCompressOptionId
static

Definition at line 44 of file openglconfig.cpp.

◆ textureCompressOptionList

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

Definition at line 37 of file openglconfig.cpp.

◆ TextureSizeOptionId

int TextureSizeOptionId
static

Definition at line 50 of file openglconfig.cpp.

◆ textureSizeOptionList

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

Definition at line 47 of file openglconfig.cpp.