doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
glimp.cpp File Reference
#include "../../idlib/precompiled.h"
#include "../../renderer/tr_local.h"
#include "local.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "libXNVCtrl/NVCtrlLib.h"

Go to the source code of this file.

Macros

#define ATTR_RED_IDX   2
 
#define ATTR_GREEN_IDX   4
 
#define ATTR_BLUE_IDX   6
 
#define ATTR_DEPTH_IDX   9
 
#define ATTR_STENCIL_IDX   11
 
#define ATTR_ALPHA_IDX   13
 

Functions

void GLimp_WakeBackEnd (void *a)
 
void GLimp_FrontEndSleep ()
 
voidGLimp_BackEndSleep ()
 
bool GLimp_SpawnRenderThread (void(*a)())
 
void GLimp_ActivateContext ()
 
void GLimp_DeactivateContext ()
 
void GLimp_SaveGamma ()
 
void GLimp_RestoreGamma ()
 
void GLimp_SetGamma (unsigned short red[256], unsigned short green[256], unsigned short blue[256])
 
void GLimp_Shutdown ()
 
void GLimp_SwapBuffers ()
 
void GLX_TestDGA ()
 
int idXErrorHandler (Display *l_dpy, XErrorEvent *ev)
 
bool GLimp_OpenDisplay (void)
 
int GLX_Init (glimpParms_t a)
 
bool GLimp_Init (glimpParms_t a)
 
bool GLimp_SetScreenParms (glimpParms_t parms)
 
int Sys_GetVideoRam (void)
 

Variables

idCVar sys_videoRam ("sys_videoRam","0", CVAR_SYSTEM|CVAR_ARCHIVE|CVAR_INTEGER,"Texture memory on the video card (in megabytes) - 0: autodetect", 0, 512)
 
Display * dpy = NULL
 
Window win = 0
 
bool dga_found = false
 

Macro Definition Documentation

#define ATTR_ALPHA_IDX   13
#define ATTR_BLUE_IDX   6
#define ATTR_DEPTH_IDX   9
#define ATTR_GREEN_IDX   4
#define ATTR_RED_IDX   2
#define ATTR_STENCIL_IDX   11

Function Documentation

void GLimp_ActivateContext ( void  )

Definition at line 92 of file glimp.cpp.

void* GLimp_BackEndSleep ( void  )

Definition at line 82 of file glimp.cpp.

void GLimp_DeactivateContext ( void  )

Definition at line 98 of file glimp.cpp.

void GLimp_FrontEndSleep ( void  )

Definition at line 78 of file glimp.cpp.

bool GLimp_Init ( glimpParms_t  a)

Definition at line 561 of file glimp.cpp.

bool GLimp_OpenDisplay ( void  )

Definition at line 260 of file glimp.cpp.

void GLimp_RestoreGamma ( void  )

Definition at line 131 of file glimp.cpp.

void GLimp_SaveGamma ( void  )

Definition at line 110 of file glimp.cpp.

void GLimp_SetGamma ( unsigned short  red[256],
unsigned short  green[256],
unsigned short  blue[256] 
)

Definition at line 149 of file glimp.cpp.

bool GLimp_SetScreenParms ( glimpParms_t  parms)

Definition at line 585 of file glimp.cpp.

void GLimp_Shutdown ( void  )

Definition at line 182 of file glimp.cpp.

bool GLimp_SpawnRenderThread ( void(*)()  a)

Definition at line 87 of file glimp.cpp.

void GLimp_SwapBuffers ( void  )

Definition at line 212 of file glimp.cpp.

void GLimp_WakeBackEnd ( void a)

Definition at line 63 of file glimp.cpp.

int GLX_Init ( glimpParms_t  a)

Definition at line 294 of file glimp.cpp.

void GLX_TestDGA ( )

Definition at line 221 of file glimp.cpp.

int idXErrorHandler ( Display *  l_dpy,
XErrorEvent *  ev 
)

Definition at line 249 of file glimp.cpp.

int Sys_GetVideoRam ( void  )

Definition at line 597 of file glimp.cpp.

Variable Documentation

bool dga_found = false

Definition at line 48 of file glimp.cpp.

Display* dpy = NULL

Definition at line 43 of file glimp.cpp.

idCVar sys_videoRam("sys_videoRam","0", CVAR_SYSTEM|CVAR_ARCHIVE|CVAR_INTEGER,"Texture memory on the video card (in megabytes) - 0: autodetect", 0, 512)
Window win = 0

Definition at line 46 of file glimp.cpp.