27#include <glfeatures.h>
28#include <portability.h>
44static int textureSizeOptionList[] = {8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384};
73 const int BUFSIZE = 1024;
161 const int BUFSIZE = 1024;
203 const int BUFSIZE = 1024;
257 const int xleft = 160;
258 const int xright = 480;
259 const int width = 240;
268 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
274 "data/img/arrow-right.png",
"data/img/arrow-right-pushed.png",
290 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
296 "data/img/arrow-right.png",
"data/img/arrow-right-pushed.png",
311 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
317 "data/img/arrow-right.png",
"data/img/arrow-right-pushed.png",
static void onActivate(void)
static float LabelColor[]
int getGLTextureMaxSize(void)
int getUserTextureAnisotropy(void)
void updateUserTextureMaxSize(void)
void updateUserTextureAnisotropy(void)
bool isCompressARBAvailable(void)
int getGLTextureMaxAnisotropy(void)
void updateCompressARBEnabled(void)
bool isTextureAnisotropyAvailable(void)
#define GR_ATT_TEXTUREANISOTROPY
#define GR_ATT_TEXTURECOMPRESSION_DISABLED
#define GR_ATT_TEXTURECOMPRESSION
#define GR_ATT_TEXTURESIZE
#define GR_ATT_TEXTURECOMPRESSION_ENABLED
#define GR_SCT_GLFEATURES
float tdble
Floating point type used in TORCS.
void * GfuiScreenCreateExAction(float *bgColor, const tGfuiAction &onActivate, const tGfuiAction &onDeactivate, int mouseAllowed)
Create a screen.
void GfuiLabelSetText(void *scr, int id, const char *text)
Change the text of a label.
int GfuiTitleCreate(void *scr, const char *text, int maxlen)
Add a Title to the screen.
void GfuiAddKeyAction(void *scr, unsigned char key, const char *descr, const tGfuiAction &onKeyPressed, const tGfuiAction &onKeyReleased)
Add a Keyboard callback to a screen.
void GfuiScreenAddBgImg(void *scr, const char *filename)
Add an image background to a screen.
void GfuiAddSKeyAction(void *scr, int key, const char *descr, const tGfuiAction &onKeyPressed, const tGfuiAction &onKeyReleased)
Add a Special Keyboard shortcut to the screen.
int GfuiLabelCreate(void *scr, const char *text, int font, int x, int y, int align, int maxlen)
Add a label to a screen.
void GfuiLabelSetColor(void *scr, int id, float *color)
Change the color of a label.
int GfuiGrButtonCreateAction(void *scr, const char *disabled, const char *enabled, const char *focused, const char *pushed, int x, int y, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost)
Add a graphical button to a screen.
void GfuiScreenActivate(void *screen)
Activate a screen and make it current.
int GfuiButtonCreateAction(void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost)
Add a button to a screen.
const char * GfParmGetStr(void *parmHandle, const char *path, const char *key, const char *deflt)
Get a string parameter from the parameter set handle.
int GfParmSetStr(void *handle, const char *path, const char *key, const char *val)
Set a string parameter in the parameter set handle.
tdble GfParmGetNum(void *handle, const char *path, const char *key, const char *unit, tdble deflt)
Get a numerical parameter from the parameter set handle.
int GfParmSetNum(void *handle, const char *path, const char *key, const char *unit, tdble val)
Set a numerical parameter in the parameter set handle.
void GfParmReleaseHandle(void *parmHandle)
Release given parameter set handle parmHandle.
int GfParmWriteFile(const char *file, void *parmHandle, const char *name)
Write parameter set into file.
void * GfParmReadFile(const char *file, int mode)
Read parameter set from file and return handle to parameter set.
void GfuiScreenShot(void *)
Save a screen shot in png format.
static int textureAnisotropyOptionList[]
static void changeTextureCompressState(int delta)
static int TextureSizeOptionId
static void changeTextureSizeState(int delta)
static const int nbOptionsTextComp
void * OpenGLMenuInit(void *prevMenu)
static const int nbTextureAnisotropyOptions
static int curOptionTextSize
static int textureSizeOptionList[]
static int TextureCompressOptionId
static void changeTextureAnisotropyState(int delta)
static const int defaultTextSize
static int nbOptionsTextAnisotropy
static int nbOptionsTextSize
static int curOptionTextAnisotropy
static const char * textureAnisotropyOptionLabelList[]
static int TextureAnisotropyOptionId
static void readOpenGLCfg(void)
static const char * textureCompressOptionList[]
static void saveOpenGLOption(void *)
static int curOptionTextComp
#define GFPARM_RMODE_CREAT
Allow an empty in-memory set on file-open failure; does not write a file.
#define GFPARM_RMODE_REREAD
Clear shared cached data and reread the file.
#define GFUI_FONT_LARGE_C
std::function< void()> tGfuiAction