TORCS  1.3.9
The Open Racing Car Simulator
fg_gm.cpp File Reference

Missing X11 gamemode in glut, taken from freeglut More...

#include <GL/gl.h>
#include <GL/glu.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <tgfclient.h>
#include "fg_gm.h"
#include <GL/glx.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>
#include <X11/extensions/xf86vmode.h>
Include dependency graph for fg_gm.cpp:

Go to the source code of this file.

Classes

struct  tagSFG_Display
 
struct  tagSFG_XYUse
 
struct  tagSFG_State
 

Typedefs

typedef struct tagSFG_Display SFG_Display
 
typedef struct tagSFG_XYUse SFG_XYUse
 
typedef struct tagSFG_State SFG_State
 

Functions

static void fgInitialize (void)
 
static void fghRememberState (void)
 
static void fghRestoreState (void)
 
static int fghCheckDisplayMode (int width, int height, int depth, int refresh)
 
static int fghChangeDisplayMode (int)
 
void fglutGameModeString (const char *string)
 
int fglutEnterGameMode (void)
 
void fglutLeaveGameMode (void)
 

Variables

static int fgInitDone = 0
 
static SFG_Display fgDisplay
 
static SFG_State fgState
 

Detailed Description

Missing X11 gamemode in glut, taken from freeglut

Version
$Id$

Definition in file fg_gm.cpp.

Typedef Documentation

◆ SFG_Display

typedef struct tagSFG_Display SFG_Display

Definition at line 70 of file fg_gm.cpp.

◆ SFG_State

typedef struct tagSFG_State SFG_State

Definition at line 104 of file fg_gm.cpp.

◆ SFG_XYUse

typedef struct tagSFG_XYUse SFG_XYUse

Definition at line 95 of file fg_gm.cpp.

Function Documentation

◆ fghChangeDisplayMode()

static int fghChangeDisplayMode ( int  )
static

Definition at line 321 of file fg_gm.cpp.

Here is the call graph for this function:

◆ fghCheckDisplayMode()

static int fghCheckDisplayMode ( int  width,
int  height,
int  depth,
int  refresh 
)
static

Definition at line 308 of file fg_gm.cpp.

Here is the call graph for this function:

◆ fghRememberState()

static void fghRememberState ( void  )
static

Definition at line 169 of file fg_gm.cpp.

Here is the call graph for this function:

◆ fghRestoreState()

static void fghRestoreState ( void  )
static

Definition at line 205 of file fg_gm.cpp.

◆ fgInitialize()

static void fgInitialize ( void  )
static

Definition at line 127 of file fg_gm.cpp.

◆ fglutEnterGameMode()

int fglutEnterGameMode ( void  )

Definition at line 502 of file fg_gm.cpp.

Here is the call graph for this function:

◆ fglutGameModeString()

void fglutGameModeString ( const char *  string)

Definition at line 469 of file fg_gm.cpp.

Here is the call graph for this function:

◆ fglutLeaveGameMode()

void fglutLeaveGameMode ( void  )

Definition at line 530 of file fg_gm.cpp.

Here is the call graph for this function:

Variable Documentation

◆ fgDisplay

SFG_Display fgDisplay
static

Definition at line 116 of file fg_gm.cpp.

◆ fgInitDone

int fgInitDone = 0
static

Definition at line 68 of file fg_gm.cpp.

◆ fgState

SFG_State fgState
static

Definition at line 121 of file fg_gm.cpp.