Screen management. More...
#include <stdio.h>#include <GL/glut.h>#include <math.h>#include <unistd.h>#include <tgfclient.h>#include <portability.h>#include <musicplayer/musicplayer.h>#include "gui.h"#include "fg_gm.h"#include "glfeatures.h"
Go to the source code of this file.
Functions | |
| void | gfScreenInit (void) |
| static void | Reshape (int width, int height) |
| void | GfScrInit (int argc, char *argv[]) |
| void | GfScrShutdown (void) |
| Shutdown the screen. More... | |
| void | GfScrGetSize (int *scrw, int *scrh, int *vieww, int *viewh) |
| Get the screen and viewport sizes. More... | |
| static void | saveParams (void) |
| void | GfScrReinit (void *) |
| static void | updateLabelText (void) |
| static void | ResPrevNext (void *vdelta) |
| static void | DepthPrevNext (void *vdelta) |
| static void | ModePrevNext (void *vdelta) |
| static void | VInitPrevNext (void *vdelta) |
| static void | initFromConf (void) |
| static void | onActivate (void *) |
| void * | GfScrMenuInit (void *precMenu) |
| Create and activate the video options menu screen. More... | |
| int | GfuiGlutExtensionSupported (const char *str) |
Variables | |
| static int | GfScrWidth |
| static int | GfScrHeight |
| static int | GfViewWidth |
| static int | GfViewHeight |
| static int | GfScrCenX |
| static int | GfScrCenY |
| static void * | scrHandle = NULL |
| static int | usedGM = 0 |
| static int | usedFG = 0 |
| static char * | Res [] |
| static const int | nbRes = sizeof(Res) / sizeof(Res[0]) |
| static const char * | Mode [] = {"Full-screen mode", "Window mode"} |
| static const char * | VInit [] = {GFSCR_VAL_VINIT_COMPATIBLE, GFSCR_VAL_VINIT_BEST} |
| static const char * | Depthlist [] = {"24", "32", "16"} |
| static const int | nbMode = sizeof(Mode) / sizeof(Mode[0]) |
| static const int | nbVInit = sizeof(VInit) / sizeof(VInit[0]) |
| static const int | nbDepth = sizeof(Depthlist) / sizeof(Depthlist[0]) |
| static int | curRes = 0 |
| static int | curMode = 0 |
| static int | curDepth = 0 |
| static int | curVInit = 0 |
| static int | curMaxFreq = 75 |
| static int | ResLabelId |
| static int | DepthLabelId |
| static int | ModeLabelId |
| static int | VInitLabelId |
| static float | LabelColor [] = {1.0, 0.0, 1.0, 1.0} |
Screen management.
Definition in file screen.cpp.
|
static |
| void gfScreenInit | ( | void | ) |
| void GfScrInit | ( | int | argc, |
| char * | argv[] | ||
| ) |
| void GfScrReinit | ( | void * | ) |
| int GfuiGlutExtensionSupported | ( | const char * | str | ) |
Definition at line 944 of file screen.cpp.
|
static |
|
static |
|
static |
|
static |
Definition at line 246 of file screen.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 114 of file screen.cpp.
|
static |
Definition at line 117 of file screen.cpp.
|
static |
Definition at line 113 of file screen.cpp.
|
static |
Definition at line 112 of file screen.cpp.
|
static |
Definition at line 115 of file screen.cpp.
|
static |
Definition at line 123 of file screen.cpp.
|
static |
Definition at line 105 of file screen.cpp.
|
static |
Definition at line 60 of file screen.cpp.
|
static |
Definition at line 61 of file screen.cpp.
|
static |
Definition at line 57 of file screen.cpp.
|
static |
Definition at line 56 of file screen.cpp.
|
static |
Definition at line 59 of file screen.cpp.
|
static |
Definition at line 58 of file screen.cpp.
|
static |
Definition at line 127 of file screen.cpp.
|
static |
Definition at line 103 of file screen.cpp.
|
static |
Definition at line 124 of file screen.cpp.
Definition at line 110 of file screen.cpp.
Definition at line 108 of file screen.cpp.
Definition at line 100 of file screen.cpp.
Definition at line 109 of file screen.cpp.
|
static |
Definition at line 74 of file screen.cpp.
|
static |
Definition at line 122 of file screen.cpp.
|
static |
Definition at line 63 of file screen.cpp.
|
static |
Definition at line 67 of file screen.cpp.
|
static |
Definition at line 65 of file screen.cpp.
|
static |
Definition at line 104 of file screen.cpp.
|
static |
Definition at line 125 of file screen.cpp.