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

Typedefs

typedef struct dibinfo dibinfo_t
 

Functions

void DIB_Shutdown (void)
 
qboolean DIB_Init (void)
 
void DIB_SwapBuffers (void)
 
void SWV_UpdateWindowStatus (void)
 
qboolean SWAppActivate (BOOL fActive, BOOL minimize)
 
LONG WINAPI MainWndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
void VID_CreateWindow (int width, int height, qboolean fullscreen)
 
void SW_VID_UpdateViewport (wqcom_t *com)
 
void SW_VID_SwapBuffers (void)
 
qboolean SW_VID_Init (rendererstate_t *info, unsigned char *palette)
 
void SW_VID_DeInit (void)
 
qboolean SW_VID_ApplyGammaRamps (unsigned int gammarampsize, unsigned short *ramps)
 
char * SW_VID_GetRGBInfo (int *bytestride, int *truevidwidth, int *truevidheight, enum uploadfmt *fmt)
 
void SW_VID_SetWindowCaption (const char *msg)
 

Variables

HBITMAP hDIBSection
 
qbytepDIBBase
 
HDC mainhDC
 
HDC hdcDIBSection
 
HGDIOBJ previously_selected_GDI_obj
 
int framenumber
 
voidscreenbuffer
 
qintptr_t screenpitch
 
int window_x
 
int window_y
 
unsigned intdepthbuffer
 
struct {
   qboolean   isfullscreen
 
w32sw
 
HWND mainwindow
 

Typedef Documentation

◆ dibinfo_t

typedef struct dibinfo dibinfo_t

Function Documentation

◆ DIB_Init()

qboolean DIB_Init ( void  )

◆ DIB_Shutdown()

void DIB_Shutdown ( void  )

◆ DIB_SwapBuffers()

void DIB_SwapBuffers ( void  )

◆ MainWndProc()

LONG WINAPI MainWndProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

◆ SW_VID_ApplyGammaRamps()

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

◆ SW_VID_DeInit()

void SW_VID_DeInit ( void  )

◆ SW_VID_GetRGBInfo()

char * SW_VID_GetRGBInfo ( int bytestride,
int truevidwidth,
int truevidheight,
enum uploadfmt fmt 
)

◆ SW_VID_Init()

qboolean SW_VID_Init ( rendererstate_t info,
unsigned char *  palette 
)

◆ SW_VID_SetWindowCaption()

void SW_VID_SetWindowCaption ( const char *  msg)

◆ SW_VID_SwapBuffers()

void SW_VID_SwapBuffers ( void  )

◆ SW_VID_UpdateViewport()

void SW_VID_UpdateViewport ( wqcom_t com)

◆ SWAppActivate()

qboolean SWAppActivate ( BOOL  fActive,
BOOL  minimize 
)

◆ SWV_UpdateWindowStatus()

void SWV_UpdateWindowStatus ( void  )

◆ VID_CreateWindow()

void VID_CreateWindow ( int  width,
int  height,
qboolean  fullscreen 
)

Variable Documentation

◆ depthbuffer

unsigned int* depthbuffer

◆ framenumber

int framenumber

◆ hdcDIBSection

HDC hdcDIBSection

◆ hDIBSection

HBITMAP hDIBSection

◆ isfullscreen

qboolean isfullscreen

◆ mainhDC

HDC mainhDC

◆ mainwindow

HWND mainwindow

◆ pDIBBase

qbyte* pDIBBase

◆ previously_selected_GDI_obj

HGDIOBJ previously_selected_GDI_obj

◆ screenbuffer

void* screenbuffer

◆ screenpitch

qintptr_t screenpitch

◆ 

struct { ... } w32sw

◆ window_x

int window_x

◆ window_y

int window_y