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

Typedefs

typedef vec3_t mat3_t[3]
 

Enumerations

enum  {
  D3D_VDEC_COL4B = 1<<0 , D3D_VDEC_ST0 = 1<<1 , D3D_VDEC_ST1 = 1<<2 , D3D_VDEC_ST2 = 1<<3 ,
  D3D_VDEC_ST3 = 1<<4 , D3D_VDEC_NORM = 1<<5 , D3D_VDEC_SKEL = 1<<6 , D3D_VDEC_POS2 = 1<<7 ,
  D3D_VDEC_CM = 1<<8 , D3D_VDEC_MAX = 1<<9
}
 

Functions

 DECLARE_HANDLE (HMONITOR)
 
void D3D9_UpdateFiltering (image_t *imagelist, int filtermip[3], int filterpic[3], int mipcap[2], float miplod, float anis)
 
void D3D9BE_Reset (qboolean before)
 
void D3D9BE_Init (void)
 
void D3D9BE_Set2D (void)
 
void D3D9BE_SetViewport (int x, int w, int y, int h)
 
void D3D9BE_Cull (unsigned int cullflags)
 
void D3D9BE_SelectMode (backendmode_t mode)
 
qboolean D3D9BE_SelectDLight (dlight_t *dl, vec3_t colour, vec3_t axis[3], unsigned int lmode)
 
void D3D9BE_SelectEntity (entity_t *ent)
 
void D3D9BE_GenBatchVBOs (vbo_t **vbochain, batch_t *firstbatch, batch_t *stopbatch)
 
void D3D9BE_GenBrushModelVBO (model_t *mod)
 
void D3D9BE_ClearVBO (vbo_t *vbo, qboolean dataonly)
 
void D3D9BE_UploadAllLightmaps (void)
 
qboolean D3D9BE_LightCullModel (vec3_t org, model_t *model)
 
batch_tD3D9BE_GetTempBatch (void)
 
void D3D9BE_SubmitBatch (batch_t *batch)
 
void D3D9BE_DrawMesh_List (shader_t *shader, int nummeshes, mesh_t **meshlist, vbo_t *vbo, texnums_t *texnums, unsigned int beflags)
 
void D3D9BE_DrawMesh_Single (shader_t *shader, mesh_t *meshchain, vbo_t *vbo, unsigned int beflags)
 
void D3D9BE_SubmitMeshes (batch_t **worldbatches, batch_t **blist, int first, int stop)
 
void D3D9BE_BaseEntTextures (const qbyte *worldpvs, const int *worldareas)
 
void D3D9BE_RenderShadowBuffer (unsigned int numverts, IDirect3DVertexBuffer9 *vbuf, unsigned int numindicies, IDirect3DIndexBuffer9 *ibuf)
 
void D3D9BE_DrawWorld (batch_t **worldbatches)
 
void D3D9BE_VBO_Begin (vbobctx_t *ctx, size_t maxsize)
 
void D3D9BE_VBO_Data (vbobctx_t *ctx, void *data, size_t size, vboarray_t *varray)
 
void D3D9BE_VBO_Finish (vbobctx_t *ctx, void *edata, size_t esize, vboarray_t *earray, void **vbomem, void **ebomem)
 
void D3D9BE_VBO_Destroy (vboarray_t *vearray, void *mem)
 
void D3D9BE_Scissor (srect_t *srect)
 

Variables

LPDIRECT3DDEVICE9 pD3DDev9
 
texid_t r_whiteimage
 
float d3d_trueprojection_std [16]
 
float d3d_trueprojection_view [16]
 
int be_maxpasses
 

Typedef Documentation

◆ mat3_t

typedef vec3_t mat3_t[3]

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
D3D_VDEC_COL4B 
D3D_VDEC_ST0 
D3D_VDEC_ST1 
D3D_VDEC_ST2 
D3D_VDEC_ST3 
D3D_VDEC_NORM 
D3D_VDEC_SKEL 
D3D_VDEC_POS2 
D3D_VDEC_CM 
D3D_VDEC_MAX 

Function Documentation

◆ D3D9_UpdateFiltering()

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

◆ D3D9BE_BaseEntTextures()

void D3D9BE_BaseEntTextures ( const qbyte worldpvs,
const int worldareas 
)

◆ D3D9BE_ClearVBO()

void D3D9BE_ClearVBO ( vbo_t vbo,
qboolean  dataonly 
)

◆ D3D9BE_Cull()

void D3D9BE_Cull ( unsigned int  cullflags)

◆ D3D9BE_DrawMesh_List()

void D3D9BE_DrawMesh_List ( shader_t shader,
int  nummeshes,
mesh_t **  meshlist,
vbo_t vbo,
texnums_t texnums,
unsigned int  beflags 
)

◆ D3D9BE_DrawMesh_Single()

void D3D9BE_DrawMesh_Single ( shader_t shader,
mesh_t meshchain,
vbo_t vbo,
unsigned int  beflags 
)

◆ D3D9BE_DrawWorld()

void D3D9BE_DrawWorld ( batch_t **  worldbatches)

◆ D3D9BE_GenBatchVBOs()

void D3D9BE_GenBatchVBOs ( vbo_t **  vbochain,
batch_t firstbatch,
batch_t stopbatch 
)

◆ D3D9BE_GenBrushModelVBO()

void D3D9BE_GenBrushModelVBO ( model_t mod)

◆ D3D9BE_GetTempBatch()

batch_t * D3D9BE_GetTempBatch ( void  )

◆ D3D9BE_Init()

void D3D9BE_Init ( void  )

◆ D3D9BE_LightCullModel()

qboolean D3D9BE_LightCullModel ( vec3_t  org,
model_t model 
)

◆ D3D9BE_RenderShadowBuffer()

void D3D9BE_RenderShadowBuffer ( unsigned int  numverts,
IDirect3DVertexBuffer9 *  vbuf,
unsigned int  numindicies,
IDirect3DIndexBuffer9 *  ibuf 
)

◆ D3D9BE_Reset()

void D3D9BE_Reset ( qboolean  before)

◆ D3D9BE_Scissor()

void D3D9BE_Scissor ( srect_t srect)

◆ D3D9BE_SelectDLight()

qboolean D3D9BE_SelectDLight ( dlight_t dl,
vec3_t  colour,
vec3_t  axis[3],
unsigned int  lmode 
)

◆ D3D9BE_SelectEntity()

void D3D9BE_SelectEntity ( entity_t ent)

◆ D3D9BE_SelectMode()

void D3D9BE_SelectMode ( backendmode_t  mode)

◆ D3D9BE_Set2D()

void D3D9BE_Set2D ( void  )

◆ D3D9BE_SetViewport()

void D3D9BE_SetViewport ( int  x,
int  w,
int  y,
int  h 
)

◆ D3D9BE_SubmitBatch()

void D3D9BE_SubmitBatch ( batch_t batch)

◆ D3D9BE_SubmitMeshes()

void D3D9BE_SubmitMeshes ( batch_t **  worldbatches,
batch_t **  blist,
int  first,
int  stop 
)

◆ D3D9BE_UploadAllLightmaps()

void D3D9BE_UploadAllLightmaps ( void  )

◆ D3D9BE_VBO_Begin()

void D3D9BE_VBO_Begin ( vbobctx_t ctx,
size_t  maxsize 
)

◆ D3D9BE_VBO_Data()

void D3D9BE_VBO_Data ( vbobctx_t ctx,
void data,
size_t  size,
vboarray_t varray 
)

◆ D3D9BE_VBO_Destroy()

void D3D9BE_VBO_Destroy ( vboarray_t vearray,
void mem 
)

◆ D3D9BE_VBO_Finish()

void D3D9BE_VBO_Finish ( vbobctx_t ctx,
void edata,
size_t  esize,
vboarray_t earray,
void **  vbomem,
void **  ebomem 
)

◆ DECLARE_HANDLE()

DECLARE_HANDLE ( HMONITOR  )

Variable Documentation

◆ be_maxpasses

int be_maxpasses
extern

◆ d3d_trueprojection_std

float d3d_trueprojection_std[16]
extern

◆ d3d_trueprojection_view

float d3d_trueprojection_view[16]
extern

◆ pD3DDev9

LPDIRECT3DDEVICE9 pD3DDev9
extern

◆ r_whiteimage

texid_t r_whiteimage
extern