Screen management. More...
#include <GL/freeglut.h>#include <stdio.h>#include <math.h>#include <unistd.h>#include <tgfclient.h>#include <portability.h>#include <musicplayer/musicplayer.h>#include "gui.h"#include "glfeatures.h"
Go to the source code of this file.
Functions | |
| static int | getMsaaIndex (int samples) |
| void | gfScreenInit (void) |
| static void | Reshape (int width, int height) |
| void | GfScrInit (int argc, char *argv[]) |
| void | GfScrShutdown (void) |
| Shutdown the screen. | |
| void | GfScrGetSize (int *scrw, int *scrh, int *vieww, int *viewh) |
| Get the screen and viewport sizes. | |
| static void | saveParams (void) |
| void | GfScrReinit (void *) |
| static void | updateLabelText (void) |
| static void | ResPrevNext (int delta) |
| static void | DepthPrevNext (int delta) |
| static void | ModePrevNext (int delta) |
| static void | MsaaPrevNext (int delta) |
| static void | VInitPrevNext (int delta) |
| static void | initFromConf (void) |
| static void | onActivate (void *) |
| void * | GfScrMenuInit (void *precMenu) |
| Create and activate the video options menu screen. | |
| int | GfuiGlutExtensionSupported (const char *str) |
| Query an OpenGL extension through GLUT for the current rendering context. | |
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 char * | MsaaLabel [] = {"Off", "2x", "4x", "8x"} |
| static const int | MsaaSamples [] = {0, 2, 4, 8} |
| static const int | DefaultMsaaSamples = 4 |
| 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 const int | nbMsaa = sizeof(MsaaSamples) / sizeof(MsaaSamples[0]) |
| static int | curRes = 0 |
| static int | curMode = 0 |
| static int | curDepth = 0 |
| static int | curVInit = 0 |
| static int | curMsaa = 2 |
| static int | curMaxFreq = 75 |
| static int | ResLabelId |
| static int | DepthLabelId |
| static int | ModeLabelId |
| static int | VInitLabelId |
| static int | MsaaLabelId |
| static float | LabelColor [] = {1.0, 0.0, 1.0, 1.0} |
Screen management.
Definition in file screen.cpp.
|
static |
|
static |
Definition at line 135 of file screen.cpp.
| void gfScreenInit | ( | void | ) |
| void GfScrInit | ( | int | argc, |
| char * | argv[] ) |
| void GfScrReinit | ( | void * | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 269 of file screen.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 117 of file screen.cpp.
|
static |
Definition at line 121 of file screen.cpp.
|
static |
Definition at line 116 of file screen.cpp.
|
static |
Definition at line 119 of file screen.cpp.
|
static |
Definition at line 115 of file screen.cpp.
|
static |
Definition at line 118 of file screen.cpp.
|
static |
Definition at line 107 of file screen.cpp.
|
static |
Definition at line 127 of file screen.cpp.
|
static |
Definition at line 104 of file screen.cpp.
|
static |
Definition at line 59 of file screen.cpp.
|
static |
Definition at line 60 of file screen.cpp.
|
static |
Definition at line 56 of file screen.cpp.
|
static |
Definition at line 55 of file screen.cpp.
|
static |
Definition at line 58 of file screen.cpp.
|
static |
Definition at line 57 of file screen.cpp.
|
static |
Definition at line 132 of file screen.cpp.
|
static |
Definition at line 102 of file screen.cpp.
|
static |
Definition at line 128 of file screen.cpp.
|
static |
Definition at line 105 of file screen.cpp.
|
static |
Definition at line 130 of file screen.cpp.
|
static |
Definition at line 106 of file screen.cpp.
Definition at line 112 of file screen.cpp.
Definition at line 110 of file screen.cpp.
|
static |
Definition at line 113 of file screen.cpp.
Definition at line 99 of file screen.cpp.
Definition at line 111 of file screen.cpp.
|
static |
Definition at line 73 of file screen.cpp.
|
static |
Definition at line 126 of file screen.cpp.
|
static |
Definition at line 62 of file screen.cpp.
|
static |
Definition at line 66 of file screen.cpp.
|
static |
Definition at line 64 of file screen.cpp.
|
static |
Definition at line 103 of file screen.cpp.
|
static |
Definition at line 129 of file screen.cpp.