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

Typedefs

typedef vec3_t mat3_t[3]
 

Functions

void SWBE_SelectMode (backendmode_t mode)
 
void SWBE_TransformVerticies (swvert_t *v, mesh_t *mesh)
 
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, mesh_t *mesh, struct vbo_s *vbo, unsigned int be_flags)
 
void SWBE_SubmitBatch (struct batch_s *batch)
 
struct batch_sSWBE_GetTempBatch (void)
 
void SWBE_SubmitMeshes (batch_t **worldbatches, batch_t **blist, int start, int stop)
 
void SWBE_Set2D (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)
 

Variables

vecV_t vertbuf [65535]
 
swimage_t sw_nulltex
 

Typedef Documentation

◆ mat3_t

typedef vec3_t mat3_t[3]

Function Documentation

◆ 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,
mesh_t mesh,
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_SubmitMeshes()

void SWBE_SubmitMeshes ( batch_t **  worldbatches,
batch_t **  blist,
int  start,
int  stop 
)

◆ SWBE_TransformVerticies()

void SWBE_TransformVerticies ( swvert_t v,
mesh_t mesh 
)

◆ SWBE_UploadAllLightmaps()

void SWBE_UploadAllLightmaps ( void  )

Variable Documentation

◆ curentity

entity_t* curentity

◆ curshader

shader_t* curshader

◆ curtime

float curtime

◆ foo

int foo

◆ m_mvp

float m_mvp[16]

◆ maxwbatches

int maxwbatches

◆ mode

◆ numrthreads

int numrthreads

◆ sw_nulltex

swimage_t sw_nulltex
Initial value:
=
{
1, 1, 0, 0, 0, 0
}

◆ threads

void* threads[4]

◆ vertbuf

vecV_t vertbuf[65535]

◆ viewplane

vec4_t viewplane

◆ wbatch

int wbatch

◆ wbatches

batch_t* wbatches