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

Go to the source code of this file.

Classes

struct  framestate_s
 
struct  framestate_s::framestateregion_s
 
struct  image_s
 
struct  pendingtextureinfo
 
struct  vbobctx_t
 
union  vboarray_s
 
struct  srect_t
 
struct  texnums_s
 
struct  rendererinfo_s
 

Typedefs

typedef struct framestate_s framestate_t
 
typedef struct image_s image_t
 
typedef image_ttexid_t
 
typedef struct texid_s texid_tf
 
typedef union vboarray_s vboarray_t
 
typedef struct texnums_s texnums_t
 
typedef enum backendmode_e backendmode_t
 
typedef struct rendererinfo_s rendererinfo_t
 

Enumerations

enum  skeltype_t {
  SKEL_RELATIVE , SKEL_ABSOLUTE , SKEL_INVERSE_RELATIVE , SKEL_INVERSE_ABSOLUTE ,
  SKEL_IDENTITY , SKEL_QUATS
}
 
enum  mod_purge_e { MP_MAPCHANGED , MP_FLUSH , MP_RESET }
 
enum  mlverbosity_e {
  MLV_SILENT , MLV_SILENTSYNC , MLV_WARN , MLV_WARNSYNC ,
  MLV_ERROR
}
 
enum  { TEX_NOTLOADED , TEX_LOADING , TEX_LOADED , TEX_FAILED }
 
enum  backendmode_e {
  BEM_STANDARD , BEM_DEPTHONLY , BEM_WIREFRAME , BEM_STENCIL ,
  BEM_DEPTHDARK , BEM_CREPUSCULAR , BEM_GBUFFER , BEM_FOG ,
  BEM_LIGHT
}
 

Functions

apic_tR2D_LoadAtlasedPic (const char *name)
 
void R2D_ImageAtlas (float x, float y, float w, float h, float s1, float t1, float s2, float t2, apic_t *pic)
 
mpic_t * R2D_SafeCachePic (const char *path)
 
mpic_t * R2D_SafePicFromWad (const char *name)
 
void R2D_DrawCrosshair (void)
 
void R2D_ScalePic (float x, float y, float width, float height, mpic_t *pic)
 
void R2D_SubPic (float x, float y, float width, float height, mpic_t *pic, float srcx, float srcy, float srcwidth, float srcheight)
 
void R2D_TransPicTranslate (float x, float y, int width, int height, qbyte *pic, unsigned int *palette)
 
void R2D_TileClear (float x, float y, float w, float h)
 
void R2D_FadeScreen (void)
 
void R2D_Font_Changed (void)
 
void R2D_ConsoleBackground (int firstline, int lastline, qboolean forceopaque)
 
void R2D_EditorBackground (void)
 
qboolean R2D_DrawLevelshot (void)
 
void R2D_Image (float x, float y, float w, float h, float s1, float t1, float s2, float t2, mpic_t *pic)
 
void R2D_Image2dQuad (vec2_t const *points, vec2_t const *texcoords, vec4_t const *rgba, mpic_t *pic)
 
void R2D_ImageColours (float r, float g, float b, float a)
 
void R2D_ImagePaletteColour (unsigned int i, float a)
 
void R2D_FillBlock (float x, float y, float w, float h)
 
void R2D_Line (float x1, float y1, float x2, float y2, mpic_t *pic)
 
voidSCR_ScreenShot_Capture (int fbwidth, int fbheight, int *stride, enum uploadfmt *fmt, qboolean no2d, qboolean hdr)
 
void SCR_Init (void)
 
void SCR_DeInit (void)
 
void SCR_BeginLoadingPlaque (void)
 
void SCR_EndLoadingPlaque (void)
 
void SCR_DrawConsole (qboolean noback)
 
void SCR_SetUpToDrawConsole (void)
 
void SCR_CenterPrint (int pnum, const char *str, qboolean skipgamecode)
 
int R_DrawTextField (int x, int y, int w, int h, const char *text, unsigned int defaultmask, unsigned int fieldflags, struct font_s *font, vec2_t fontscale)
 
const char * Mod_GetEntitiesString (struct model_s *mod)
 
void Mod_SetEntitiesStringLen (struct model_s *mod, const char *str, size_t strsize)
 
void Mod_SetEntitiesString (struct model_s *mod, const char *str, qboolean docopy)
 
qboolean Mod_LoadEntitiesBlob (struct model_s *mod, const char *entdata, size_t entdatasize)
 
void Mod_ParseEntities (struct model_s *mod)
 
void Mod_LoadMapArchive (struct model_s *mod, void *archivedata, size_t archivesize)
 
void Mod_ClearAll (void)
 
void Mod_Purge (enum mod_purge_e type)
 
void Mod_SetModifier (const char *modifier)
 
qboolean Mod_PurgeModel (struct model_s *mod, enum mod_purge_e ptype)
 
struct model_sMod_FindName (const char *name)
 
struct model_sMod_ForName (const char *name, enum mlverbosity_e verbosity)
 
struct model_sMod_LoadModel (struct model_s *mod, enum mlverbosity_e verbose)
 
void Mod_FileWritten (const char *filename)
 
voidMod_Extradata (struct model_s *mod)
 
void Mod_TouchModel (const char *name)
 
const char * Mod_FixName (const char *modname, const char *worldname)
 
const char * Mod_ParseWorldspawnKey (struct model_s *mod, const char *key, char *buffer, size_t sizeofbuffer)
 
qboolean Mod_GetModelEvent (struct model_s *model, int animation, int eventidx, float *timestamp, int *eventcode, char **eventdata)
 
int Mod_SkinNumForName (struct model_s *model, int surfaceidx, const char *name)
 
int Mod_FrameNumForName (struct model_s *model, int surfaceidx, const char *name)
 
float Mod_GetFrameDuration (struct model_s *model, int surfaceidx, int framenum)
 
int Mod_GetFrameCount (struct model_s *model)
 
qboolean Mod_GetTag (struct model_s *model, int tagnum, framestate_t *framestate, float *transforms)
 
int Mod_TagNumForName (struct model_s *model, const char *name, int firsttag)
 
void Mod_AddSingleSurface (struct entity_s *ent, int surfaceidx, shader_t *shader, int mode)
 
int Mod_GetNumBones (struct model_s *model, qboolean allowtags)
 
int Mod_GetBoneRelations (struct model_s *model, int firstbone, int lastbone, framestate_t *fstate, float *result)
 
int Mod_GetBoneParent (struct model_s *model, int bonenum)
 
struct galiasbone_sMod_GetBoneInfo (struct model_s *model, int *numbones)
 
const char * Mod_GetBoneName (struct model_s *model, int bonenum)
 
void Draw_FunString (float x, float y, const void *str)
 
void Draw_FunStringU8 (unsigned int flags, float x, float y, const void *str)
 
void Draw_AltFunString (float x, float y, const void *str)
 
void Draw_FunStringWidthFont (struct font_s *font, float x, float y, const void *str, int width, int rightalign, qboolean highlight)
 
texid_t R2D_RT_Configure (const char *id, int width, int height, uploadfmt_t rtfmt, unsigned int imageflags)
 
texid_t R2D_RT_GetTexture (const char *id, unsigned int *width, unsigned int *height)
 

Variables

r_qrenderer_t qrenderer
 
char * q_renderername
 
void(* R2D_Flush )(void)
 
void(* Draw_Init )(void)
 
void(* R_Init )(void)
 
void(* R_DeInit )(void)
 
void(* R_RenderView )(void)
 
qboolean(* VID_Init )(rendererstate_t *info, unsigned char *palette)
 
void(* VID_DeInit )(void)
 
char *(* VID_GetRGBInfo )(int *stride, int *truevidwidth, int *truevidheight, enum uploadfmt *fmt)
 
void(* VID_SetWindowCaption )(const char *msg)
 
qboolean(* SCR_UpdateScreen )(void)
 
struct model_smod_known
 
char mod_modifier []
 
int r_regsequence
 

Typedef Documentation

◆ backendmode_t

◆ framestate_t

typedef struct framestate_s framestate_t

◆ image_t

typedef struct image_s image_t

◆ rendererinfo_t

◆ texid_t

typedef struct texid_s texid_t

◆ texid_tf

typedef struct texid_s texid_tf

◆ texnums_t

typedef struct texnums_s texnums_t

◆ vboarray_t

typedef union vboarray_s vboarray_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TEX_NOTLOADED 
TEX_LOADING 
TEX_LOADED 
TEX_FAILED 

◆ backendmode_e

Enumerator
BEM_STANDARD 
BEM_DEPTHONLY 
BEM_WIREFRAME 
BEM_STENCIL 
BEM_DEPTHDARK 
BEM_CREPUSCULAR 
BEM_GBUFFER 
BEM_FOG 
BEM_LIGHT 

◆ mlverbosity_e

Enumerator
MLV_SILENT 
MLV_SILENTSYNC 
MLV_WARN 
MLV_WARNSYNC 
MLV_ERROR 

◆ mod_purge_e

Enumerator
MP_MAPCHANGED 
MP_FLUSH 
MP_RESET 

◆ skeltype_t

enum skeltype_t
Enumerator
SKEL_RELATIVE 
SKEL_ABSOLUTE 
SKEL_INVERSE_RELATIVE 
SKEL_INVERSE_ABSOLUTE 
SKEL_IDENTITY 
SKEL_QUATS 

Function Documentation

◆ Draw_AltFunString()

void Draw_AltFunString ( float  x,
float  y,
const void str 
)

◆ Draw_FunString()

void Draw_FunString ( float  x,
float  y,
const void str 
)

◆ Draw_FunStringU8()

void Draw_FunStringU8 ( unsigned int  flags,
float  x,
float  y,
const void str 
)

◆ Draw_FunStringWidthFont()

void Draw_FunStringWidthFont ( struct font_s *  font,
float  x,
float  y,
const void str,
int  width,
int  rightalign,
qboolean  highlight 
)

◆ Mod_AddSingleSurface()

void Mod_AddSingleSurface ( struct entity_s ent,
int  surfaceidx,
shader_t shader,
int  mode 
)

◆ Mod_ClearAll()

void Mod_ClearAll ( void  )

◆ Mod_Extradata()

void * Mod_Extradata ( struct model_s mod)

◆ Mod_FileWritten()

void Mod_FileWritten ( const char *  filename)

◆ Mod_FindName()

struct model_s * Mod_FindName ( const char *  name)

◆ Mod_FixName()

const char * Mod_FixName ( const char *  modname,
const char *  worldname 
)

◆ Mod_ForName()

struct model_s * Mod_ForName ( const char *  name,
enum mlverbosity_e  verbosity 
)

◆ Mod_FrameNumForName()

int Mod_FrameNumForName ( struct model_s model,
int  surfaceidx,
const char *  name 
)

◆ Mod_GetBoneInfo()

struct galiasbone_s * Mod_GetBoneInfo ( struct model_s model,
int numbones 
)

◆ Mod_GetBoneName()

const char * Mod_GetBoneName ( struct model_s model,
int  bonenum 
)

◆ Mod_GetBoneParent()

int Mod_GetBoneParent ( struct model_s model,
int  bonenum 
)

◆ Mod_GetBoneRelations()

int Mod_GetBoneRelations ( struct model_s model,
int  firstbone,
int  lastbone,
framestate_t fstate,
float *  result 
)

◆ Mod_GetEntitiesString()

const char * Mod_GetEntitiesString ( struct model_s mod)

◆ Mod_GetFrameCount()

int Mod_GetFrameCount ( struct model_s model)

◆ Mod_GetFrameDuration()

float Mod_GetFrameDuration ( struct model_s model,
int  surfaceidx,
int  framenum 
)

◆ Mod_GetModelEvent()

qboolean Mod_GetModelEvent ( struct model_s model,
int  animation,
int  eventidx,
float *  timestamp,
int eventcode,
char **  eventdata 
)

◆ Mod_GetNumBones()

int Mod_GetNumBones ( struct model_s model,
qboolean  allowtags 
)

◆ Mod_GetTag()

qboolean Mod_GetTag ( struct model_s model,
int  tagnum,
framestate_t framestate,
float *  transforms 
)

◆ Mod_LoadEntitiesBlob()

qboolean Mod_LoadEntitiesBlob ( struct model_s mod,
const char *  entdata,
size_t  entdatasize 
)

◆ Mod_LoadMapArchive()

void Mod_LoadMapArchive ( struct model_s mod,
void archivedata,
size_t  archivesize 
)

◆ Mod_LoadModel()

model_t * Mod_LoadModel ( struct model_s mod,
enum mlverbosity_e  verbose 
)

◆ Mod_ParseEntities()

void Mod_ParseEntities ( struct model_s mod)

◆ Mod_ParseWorldspawnKey()

const char * Mod_ParseWorldspawnKey ( struct model_s mod,
const char *  key,
char *  buffer,
size_t  sizeofbuffer 
)

◆ Mod_Purge()

void Mod_Purge ( enum mod_purge_e  type)

◆ Mod_PurgeModel()

qboolean Mod_PurgeModel ( struct model_s mod,
enum mod_purge_e  ptype 
)

◆ Mod_SetEntitiesString()

void Mod_SetEntitiesString ( struct model_s mod,
const char *  str,
qboolean  docopy 
)

◆ Mod_SetEntitiesStringLen()

void Mod_SetEntitiesStringLen ( struct model_s mod,
const char *  str,
size_t  strsize 
)

◆ Mod_SetModifier()

void Mod_SetModifier ( const char *  modifier)

◆ Mod_SkinNumForName()

int Mod_SkinNumForName ( struct model_s model,
int  surfaceidx,
const char *  name 
)

◆ Mod_TagNumForName()

int Mod_TagNumForName ( struct model_s model,
const char *  name,
int  firsttag 
)

◆ Mod_TouchModel()

void Mod_TouchModel ( const char *  name)

◆ R2D_ConsoleBackground()

void R2D_ConsoleBackground ( int  firstline,
int  lastline,
qboolean  forceopaque 
)

◆ R2D_DrawCrosshair()

void R2D_DrawCrosshair ( void  )

◆ R2D_DrawLevelshot()

qboolean R2D_DrawLevelshot ( void  )

◆ R2D_EditorBackground()

void R2D_EditorBackground ( void  )

◆ R2D_FadeScreen()

void R2D_FadeScreen ( void  )

◆ R2D_FillBlock()

void R2D_FillBlock ( float  x,
float  y,
float  w,
float  h 
)

◆ R2D_Font_Changed()

void R2D_Font_Changed ( void  )

◆ R2D_Image()

void R2D_Image ( float  x,
float  y,
float  w,
float  h,
float  s1,
float  t1,
float  s2,
float  t2,
mpic_t *  pic 
)

◆ R2D_Image2dQuad()

void R2D_Image2dQuad ( vec2_t const *  points,
vec2_t const *  texcoords,
vec4_t const *  rgba,
mpic_t *  pic 
)

◆ R2D_ImageAtlas()

void R2D_ImageAtlas ( float  x,
float  y,
float  w,
float  h,
float  s1,
float  t1,
float  s2,
float  t2,
apic_t pic 
)

◆ R2D_ImageColours()

void R2D_ImageColours ( float  r,
float  g,
float  b,
float  a 
)

◆ R2D_ImagePaletteColour()

void R2D_ImagePaletteColour ( unsigned int  i,
float  a 
)

◆ R2D_Line()

void R2D_Line ( float  x1,
float  y1,
float  x2,
float  y2,
mpic_t *  pic 
)

◆ R2D_LoadAtlasedPic()

apic_t * R2D_LoadAtlasedPic ( const char *  name)

◆ R2D_RT_Configure()

texid_t R2D_RT_Configure ( const char *  id,
int  width,
int  height,
uploadfmt_t  rtfmt,
unsigned int  imageflags 
)

◆ R2D_RT_GetTexture()

texid_t R2D_RT_GetTexture ( const char *  id,
unsigned int width,
unsigned int height 
)

◆ R2D_SafeCachePic()

mpic_t * R2D_SafeCachePic ( const char *  path)

◆ R2D_SafePicFromWad()

mpic_t * R2D_SafePicFromWad ( const char *  name)

◆ R2D_ScalePic()

void R2D_ScalePic ( float  x,
float  y,
float  width,
float  height,
mpic_t *  pic 
)

◆ R2D_SubPic()

void R2D_SubPic ( float  x,
float  y,
float  width,
float  height,
mpic_t *  pic,
float  srcx,
float  srcy,
float  srcwidth,
float  srcheight 
)

◆ R2D_TileClear()

void R2D_TileClear ( float  x,
float  y,
float  w,
float  h 
)

◆ R2D_TransPicTranslate()

void R2D_TransPicTranslate ( float  x,
float  y,
int  width,
int  height,
qbyte pic,
unsigned int palette 
)

◆ R_DrawTextField()

int R_DrawTextField ( int  x,
int  y,
int  w,
int  h,
const char *  text,
unsigned int  defaultmask,
unsigned int  fieldflags,
struct font_s *  font,
vec2_t  fontscale 
)

◆ SCR_BeginLoadingPlaque()

void SCR_BeginLoadingPlaque ( void  )

◆ SCR_CenterPrint()

void SCR_CenterPrint ( int  pnum,
const char *  str,
qboolean  skipgamecode 
)

◆ SCR_DeInit()

void SCR_DeInit ( void  )

◆ SCR_DrawConsole()

void SCR_DrawConsole ( qboolean  noback)

◆ SCR_EndLoadingPlaque()

void SCR_EndLoadingPlaque ( void  )

◆ SCR_Init()

void SCR_Init ( void  )

◆ SCR_ScreenShot_Capture()

void * SCR_ScreenShot_Capture ( int  fbwidth,
int  fbheight,
int stride,
enum uploadfmt fmt,
qboolean  no2d,
qboolean  hdr 
)

◆ SCR_SetUpToDrawConsole()

void SCR_SetUpToDrawConsole ( void  )

Variable Documentation

◆ Draw_Init

void(* Draw_Init) (void) ( void  )
extern

◆ mod_known

struct model_s* mod_known
extern

◆ mod_modifier

char mod_modifier[]
extern

◆ q_renderername

char* q_renderername
extern

◆ qrenderer

r_qrenderer_t qrenderer
extern

◆ R2D_Flush

void(* R2D_Flush) (void) ( void  )
extern

◆ R_DeInit

void(* R_DeInit) (void) ( void  )
extern

◆ R_Init

void(* R_Init) (void) ( void  )
extern

◆ r_regsequence

int r_regsequence
extern

◆ R_RenderView

void(* R_RenderView) (void) ( void  )
extern

◆ SCR_UpdateScreen

qboolean(* SCR_UpdateScreen) (void) ( void  )
extern

◆ VID_DeInit

void(* VID_DeInit) (void) ( void  )
extern

◆ VID_GetRGBInfo

char *(* VID_GetRGBInfo) (int *stride, int *truevidwidth, int *truevidheight, enum uploadfmt *fmt) ( int stride,
int truevidwidth,
int truevidheight,
enum uploadfmt fmt 
)
extern

◆ VID_Init

qboolean(* VID_Init) (rendererstate_t *info, unsigned char *palette) ( rendererstate_t info,
unsigned char *  palette 
)
extern

◆ VID_SetWindowCaption

void(* VID_SetWindowCaption) (const char *msg) ( const char *  msg)
extern