FTEQW
Documentation of the FTE engine source tree.
gl_vidnt.c File Reference

Typedefs

typedef BOOL(WINAPI * lpfnSetLayeredWindowAttributes) (HWND hwnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags)
 
typedef struct _TOUCHINPUT TOUCHINPUT
 
typedef struct _TOUCHINPUT * PTOUCHINPUT
 

Enumerations

enum  { MODE_WGL , MODE_EGL , MODE_VULKAN , MODE_NVVULKAN }
 
enum  { MS_WINDOWED , MS_FULLDIB , MS_FULLWINDOW , MS_UNINIT }
 

Functions

void STT_Event (void)
 
HWND WINAPI InitializeWindow (HINSTANCE hInstance, int nCmdShow)
 
void GLVID_SetCaption (const char *text)
 
void GLVID_SwapBuffers (void)
 
qboolean GLVID_ApplyGammaRamps (unsigned int gammarampsize, unsigned short *ramps)
 
void GLVID_Crashed (void)
 
void GLVID_Shutdown (void)
 
 DECLARE_HANDLE (HTOUCHINPUT)
 
void MainThreadWndProc (void *ctx, void *data, size_t msg, size_t ex)
 
void GLVID_DeInit (void)
 
qboolean Win32VID_Init (rendererstate_t *info, unsigned char *palette, int mode)
 
qboolean GLVID_Init (rendererstate_t *info, unsigned char *palette)
 

Variables

cvar_t vid_conwidth
 
cvar_t vid_conautoscale
 
cvar_t vid_width
 
cvar_t vid_height
 
cvar_t vid_wndalpha
 
cvar_t vid_winthread
 
qboolean mouseactive
 
qboolean vid_isfullscreen
 
float gammapending
 
cvar_t vid_mode
 
cvar_t vid_vsync
 
cvar_t vid_hardwaregamma
 
cvar_t vid_desktopgamma
 
cvar_t gl_lateswap
 
cvar_t vid_preservegamma
 
static voidramp
 
cvar_t vid_gl_context_version
 
cvar_t vid_gl_context_debug
 
cvar_t vid_gl_context_es
 
cvar_t vid_gl_context_forwardcompatible
 
cvar_t vid_gl_context_compatibility
 
cvar_t vid_gl_context_robustness
 
cvar_t vid_gl_context_selfreset
 
cvar_t vid_gl_context_noerror
 
static HGLRC
 
static UINT
 
static CONST PIXELFORMATDESCRIPTOR *static int
 
static CONST PIXELFORMATDESCRIPTOR *static CONST PIXELFORMATDESCRIPTOR *static LPPIXELFORMATDESCRIPTOR
 
static const intpiAttribIList
 
static const int const FLOAT * pfAttribFList
 
static const int const FLOAT UINT nMaxFormats
 
static const int const FLOAT UINT intpiFormats
 
static const int const FLOAT UINT int UINTnNumFormats
 
static int iPixelFormat
 
static int int iLayerPlane
 
static int int UINT nAttributes
 
static int int UINT intpiAttributes
 
static int int UINT int FLOAT * pfValues
 
static HGLRC hShareContext
 
static HGLRC const intattribList
 
static GLuint sampler
 
static GLuint GLfloat x0
 
static GLuint GLfloat GLfloat y0
 
static GLuint GLfloat GLfloat GLfloat x1
 
static GLuint GLfloat GLfloat GLfloat GLfloat y1
 
static GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
 
static GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s0
 
static GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t0
 
static GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
 
static GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t1
 
qboolean gammaworks
 
static ULONG ulFlags
 
static UINT cInputs
 
static UINT PTOUCHINPUT pInputs
 
static UINT PTOUCHINPUT int cbSize
 
rendererinfo_t eglrendererinfo
 
rendererinfo_t vkrendererinfo
 
rendererinfo_t nvvkrendererinfo
 

Typedef Documentation

◆ lpfnSetLayeredWindowAttributes

typedef BOOL(WINAPI * lpfnSetLayeredWindowAttributes) (HWND hwnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags)

◆ PTOUCHINPUT

typedef struct _TOUCHINPUT * PTOUCHINPUT

◆ TOUCHINPUT

typedef struct _TOUCHINPUT TOUCHINPUT

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MODE_WGL 
MODE_EGL 
MODE_VULKAN 
MODE_NVVULKAN 

◆ anonymous enum

anonymous enum
Enumerator
MS_WINDOWED 
MS_FULLDIB 
MS_FULLWINDOW 
MS_UNINIT 

Function Documentation

◆ DECLARE_HANDLE()

DECLARE_HANDLE ( HTOUCHINPUT  )

◆ GLVID_ApplyGammaRamps()

qboolean GLVID_ApplyGammaRamps ( unsigned int  gammarampsize,
unsigned short *  ramps 
)

◆ GLVID_Crashed()

void GLVID_Crashed ( void  )

◆ GLVID_DeInit()

void GLVID_DeInit ( void  )

◆ GLVID_Init()

qboolean GLVID_Init ( rendererstate_t info,
unsigned char *  palette 
)

◆ GLVID_SetCaption()

void GLVID_SetCaption ( const char *  text)

◆ GLVID_Shutdown()

void GLVID_Shutdown ( void  )

◆ GLVID_SwapBuffers()

void GLVID_SwapBuffers ( void  )

◆ InitializeWindow()

HWND WINAPI InitializeWindow ( HINSTANCE  hInstance,
int  nCmdShow 
)

◆ MainThreadWndProc()

void MainThreadWndProc ( void ctx,
void data,
size_t  msg,
size_t  ex 
)

◆ STT_Event()

void STT_Event ( void  )

◆ Win32VID_Init()

qboolean Win32VID_Init ( rendererstate_t info,
unsigned char *  palette,
int  mode 
)

Variable Documentation

◆ attribList

HGLRC const int* attribList

◆ cbSize

◆ cInputs

UINT cInputs

◆ eglrendererinfo

rendererinfo_t eglrendererinfo

◆ gammapending

float gammapending
extern

◆ gammaworks

qboolean gammaworks
extern

◆ gl_lateswap

cvar_t gl_lateswap
extern

◆ HGLRC

static HGLRC

◆ hShareContext

HGLRC hShareContext

◆ iLayerPlane

int int iLayerPlane

◆ int

SQLITE_API int

◆ iPixelFormat

int iPixelFormat

◆ LPPIXELFORMATDESCRIPTOR

CONST PIXELFORMATDESCRIPTOR *static CONST PIXELFORMATDESCRIPTOR *static LPPIXELFORMATDESCRIPTOR

◆ mouseactive

qboolean mouseactive
extern

◆ nAttributes

int int UINT nAttributes

◆ nMaxFormats

const int const FLOAT UINT nMaxFormats

◆ nNumFormats

const int const FLOAT UINT int UINT* nNumFormats

◆ nvvkrendererinfo

rendererinfo_t nvvkrendererinfo

◆ pfAttribFList

const int const FLOAT* pfAttribFList

◆ pfValues

int int UINT int FLOAT* pfValues

◆ piAttribIList

const int* piAttribIList

◆ piAttributes

int int UINT int* piAttributes

◆ piFormats

const int const FLOAT UINT int* piFormats

◆ pInputs

UINT PTOUCHINPUT pInputs

◆ ramp

static void * ramp

◆ s0

GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s0

◆ s1

GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1

◆ sampler

GLuint sampler

◆ t0

GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t0

◆ t1

GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t1

◆ UINT

static CONST PIXELFORMATDESCRIPTOR *static CONST PIXELFORMATDESCRIPTOR *static UINT

◆ ulFlags

ULONG ulFlags

◆ vid_conautoscale

cvar_t vid_conautoscale

◆ vid_conwidth

cvar_t vid_conwidth
extern

◆ vid_desktopgamma

cvar_t vid_desktopgamma
extern

◆ vid_gl_context_compatibility

cvar_t vid_gl_context_compatibility
extern

◆ vid_gl_context_debug

cvar_t vid_gl_context_debug
extern

◆ vid_gl_context_es

cvar_t vid_gl_context_es
extern

◆ vid_gl_context_forwardcompatible

cvar_t vid_gl_context_forwardcompatible
extern

◆ vid_gl_context_noerror

cvar_t vid_gl_context_noerror
extern

◆ vid_gl_context_robustness

cvar_t vid_gl_context_robustness
extern

◆ vid_gl_context_selfreset

cvar_t vid_gl_context_selfreset
extern

◆ vid_gl_context_version

cvar_t vid_gl_context_version
extern

◆ vid_hardwaregamma

cvar_t vid_hardwaregamma
extern

◆ vid_height

cvar_t vid_height
extern

◆ vid_isfullscreen

qboolean vid_isfullscreen
extern

◆ vid_mode

cvar_t vid_mode
extern

◆ vid_preservegamma

cvar_t vid_preservegamma
extern

◆ vid_vsync

cvar_t vid_vsync
extern

◆ vid_width

cvar_t vid_width
extern

◆ vid_winthread

cvar_t vid_winthread
extern

◆ vid_wndalpha

cvar_t vid_wndalpha
extern

◆ vkrendererinfo

rendererinfo_t vkrendererinfo

◆ x0

GLuint GLfloat x0

◆ x1

GLuint GLfloat GLfloat GLfloat x1

◆ y0

GLuint GLfloat GLfloat y0

◆ y1

GLshort y1

◆ z

GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z