FTEQW
Documentation of the FTE engine source tree.
sw.h File Reference

Go to the source code of this file.

Classes

struct  swimage_t
 
struct  swuniforms_t
 
struct  swthread_t
 
struct  swvert_t
 
struct  workqueue_s
 
union  wqcom_t
 
struct  wqcom_t::wqcom_s
 

Enumerations

enum  wqcmd_e {
  WTC_DIE , WTC_SYNC , WTC_NEWFRAME , WTC_NOOP ,
  WTC_VIEWPORT , WTC_TRIFAN , WTC_TRISOUP , WTC_SPANS ,
  WTC_UNIFORMS
}
 
enum  {
  CLIP_LEFT_FLAG = 1 , CLIP_RIGHT_FLAG = 2 , CLIP_TOP_FLAG = 4 , CLIP_BOTTOM_FLAG = 8 ,
  CLIP_NEAR_FLAG = 16 , CLIP_FAR_FLAG = 32
}
 

Functions

void SWRast_EndCommand (struct workqueue_s *wq, wqcom_t *com)
 
wqcom_tSWRast_BeginCommand (struct workqueue_s *wq, int cmdtype, unsigned int size)
 
void SWRast_Sync (struct workqueue_s *wq)
 
qboolean SW_VID_Init (rendererstate_t *info, unsigned char *palette)
 
void SW_VID_DeInit (void)
 
qboolean SW_VID_ApplyGammaRamps (unsigned int rampcount, unsigned short *ramps)
 
char * SW_VID_GetRGBInfo (int *bytestride, int *truevidwidth, int *truevidheight, enum uploadfmt *fmt)
 
void SW_VID_SetWindowCaption (const char *msg)
 
void SW_VID_SwapBuffers (void)
 
void SW_VID_UpdateViewport (wqcom_t *com)
 
void SW_UpdateFiltering (image_t *imagelist, int filtermip[3], int filterpic[3], int mipcap[2], float anis)
 
qboolean SW_LoadTextureMips (texid_t tex, const struct pendingtextureinfo *mips)
 
void SW_DestroyTexture (texid_t tex)
 
void SWBE_SelectMode (backendmode_t mode)
 
void SWBE_DrawMesh_List (shader_t *shader, int nummeshes, struct mesh_s **mesh, struct vbo_s *vbo, struct texnums_s *texnums, unsigned int be_flags)
 
void SWBE_DrawMesh_Single (shader_t *shader, struct mesh_s *meshchain, struct vbo_s *vbo, unsigned int be_flags)
 
void SWBE_SubmitBatch (struct batch_s *batch)
 
struct batch_sSWBE_GetTempBatch (void)
 
void SWBE_DrawWorld (batch_t **worldbatches)
 
void SWBE_Init (void)
 
void SWBE_GenBrushModelVBO (struct model_s *mod)
 
void SWBE_ClearVBO (struct vbo_s *vbo, qboolean dataonly)
 
void SWBE_UploadAllLightmaps (void)
 
void SWBE_SelectEntity (struct entity_s *ent)
 
qboolean SWBE_SelectDLight (struct dlight_s *dl, vec3_t colour, vec3_t axis[3], unsigned int lmode)
 
qboolean SWBE_LightCullModel (vec3_t org, struct model_s *model)
 
void SWBE_RenderToTextureUpdate2d (qboolean destchanged)
 
void SWBE_Set2D (void)
 

Variables

struct workqueue_s commandqueue
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CLIP_LEFT_FLAG 
CLIP_RIGHT_FLAG 
CLIP_TOP_FLAG 
CLIP_BOTTOM_FLAG 
CLIP_NEAR_FLAG 
CLIP_FAR_FLAG 

◆ wqcmd_e

enum wqcmd_e
Enumerator
WTC_DIE 
WTC_SYNC 
WTC_NEWFRAME 
WTC_NOOP 
WTC_VIEWPORT 
WTC_TRIFAN 
WTC_TRISOUP 
WTC_SPANS 
WTC_UNIFORMS 

Function Documentation

◆ SW_DestroyTexture()

void SW_DestroyTexture ( texid_t  tex)

◆ SW_LoadTextureMips()

qboolean SW_LoadTextureMips ( texid_t  tex,
const struct pendingtextureinfo mips 
)

◆ SW_UpdateFiltering()

void SW_UpdateFiltering ( image_t imagelist,
int  filtermip[3],
int  filterpic[3],
int  mipcap[2],
float  anis 
)

◆ SW_VID_ApplyGammaRamps()

qboolean SW_VID_ApplyGammaRamps ( unsigned int  rampcount,
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)

◆ SWBE_ClearVBO()

void SWBE_ClearVBO ( struct vbo_s vbo,
qboolean  dataonly 
)

◆ SWBE_DrawMesh_List()

void SWBE_DrawMesh_List ( shader_t shader,
int  nummeshes,
struct mesh_s **  mesh,
struct vbo_s vbo,
struct texnums_s texnums,
unsigned int  be_flags 
)

◆ SWBE_DrawMesh_Single()

void SWBE_DrawMesh_Single ( shader_t shader,
struct mesh_s meshchain,
struct vbo_s vbo,
unsigned int  be_flags 
)

◆ SWBE_DrawWorld()

void SWBE_DrawWorld ( batch_t **  worldbatches)

◆ SWBE_GenBrushModelVBO()

void SWBE_GenBrushModelVBO ( struct model_s mod)

◆ SWBE_GetTempBatch()

struct batch_s * SWBE_GetTempBatch ( void  )

◆ SWBE_Init()

void SWBE_Init ( void  )

◆ SWBE_LightCullModel()

qboolean SWBE_LightCullModel ( vec3_t  org,
struct model_s model 
)

◆ SWBE_RenderToTextureUpdate2d()

void SWBE_RenderToTextureUpdate2d ( qboolean  destchanged)

◆ SWBE_SelectDLight()

qboolean SWBE_SelectDLight ( struct dlight_s dl,
vec3_t  colour,
vec3_t  axis[3],
unsigned int  lmode 
)

◆ SWBE_SelectEntity()

void SWBE_SelectEntity ( struct entity_s ent)

◆ SWBE_SelectMode()

void SWBE_SelectMode ( backendmode_t  mode)

◆ SWBE_Set2D()

void SWBE_Set2D ( void  )

◆ SWBE_SubmitBatch()

void SWBE_SubmitBatch ( struct batch_s batch)

◆ SWBE_UploadAllLightmaps()

void SWBE_UploadAllLightmaps ( void  )

◆ SWRast_BeginCommand()

wqcom_t * SWRast_BeginCommand ( struct workqueue_s wq,
int  cmdtype,
unsigned int  size 
)

◆ SWRast_EndCommand()

void SWRast_EndCommand ( struct workqueue_s wq,
wqcom_t com 
)

◆ SWRast_Sync()

void SWRast_Sync ( struct workqueue_s wq)

Variable Documentation

◆ commandqueue

struct workqueue_s commandqueue
extern