FTEQW
Documentation of the FTE engine source tree.
modelfuncs_t Struct Reference

#include <gl_model.h>

Public Attributes

void(* PurgeModel )(struct model_s *mod)
 
unsigned int(* PointContents )(struct model_s *model, const vec3_t axis[3], const vec3_t p)
 
qboolean(* NativeTrace )(struct model_s *model, int hulloverride, const framestate_t *framestate, const vec3_t axis[3], const vec3_t p1, const vec3_t p2, const vec3_t mins, const vec3_t maxs, qboolean capsule, unsigned int against, struct trace_s *trace)
 
unsigned int(* NativeContents )(struct model_s *model, int hulloverride, const framestate_t *framestate, const vec3_t axis[3], const vec3_t p, const vec3_t mins, const vec3_t maxs)
 
unsigned int(* FatPVS )(struct model_s *model, const vec3_t org, pvsbuffer_t *pvsbuffer, qboolean merge)
 
qboolean(* EdictInFatPVS )(struct model_s *model, const struct pvscache_s *edict, const qbyte *pvs, const int *areas)
 
void(* FindTouchedLeafs )(struct model_s *model, struct pvscache_s *ent, const vec3_t cullmins, const vec3_t cullmaxs)
 
void(* LightPointValues )(struct model_s *model, const vec3_t point, vec3_t res_diffuse, vec3_t res_ambient, vec3_t res_dir)
 
void(* StainNode )(struct model_s *model, float *parms)
 
void(* MarkLights )(struct dlight_s *light, dlightbitmask_t bit, struct mnode_s *node)
 
int(* ClusterForPoint )(struct model_s *model, const vec3_t point, int *areaout)
 
qbyte *(* ClusterPVS )(struct model_s *model, int cluster, pvsbuffer_t *pvsbuffer, pvsmerge_t merge)
 
qbyte *(* ClusterPHS )(struct model_s *model, int cluster, pvsbuffer_t *pvsbuffer)
 
qbyte *(* ClustersInSphere )(struct model_s *model, const vec3_t point, float radius, pvsbuffer_t *pvsbuffer, const qbyte *fte_restrict unionwith)
 
size_t(* WriteAreaBits )(struct model_s *model, qbyte *buffer, size_t maxbytes, int area, qboolean merge)
 
qboolean(* AreasConnected )(struct model_s *model, unsigned int area1, unsigned int area2)
 
void(* SetAreaPortalState )(struct model_s *model, unsigned int portal, unsigned int area1, unsigned int area2, qboolean open)
 
size_t(* SaveAreaPortalBlob )(struct model_s *model, void **ptr)
 
size_t(* LoadAreaPortalBlob )(struct model_s *model, void *ptr, size_t size)
 
void(* PrepareFrame )(struct model_s *model, refdef_t *refdef, int area, int clusters[2], pvsbuffer_t *vis, qbyte **entvis_out, qbyte **surfvis_out)
 
void(* GenerateShadowMesh )(struct model_s *model, dlight_t *dl, const qbyte *lvis, qbyte *truevis, void(*callback)(struct msurface_s *))
 
void(* InfoForPoint )(struct model_s *model, vec3_t pos, int *area, int *cluster, unsigned int *contentbits)
 

Member Data Documentation

◆ AreasConnected

qboolean(* modelfuncs_t::AreasConnected) (struct model_s *model, unsigned int area1, unsigned int area2)

◆ ClusterForPoint

int(* modelfuncs_t::ClusterForPoint) (struct model_s *model, const vec3_t point, int *areaout)

◆ ClusterPHS

qbyte *(* modelfuncs_t::ClusterPHS) (struct model_s *model, int cluster, pvsbuffer_t *pvsbuffer)

◆ ClusterPVS

qbyte *(* modelfuncs_t::ClusterPVS) (struct model_s *model, int cluster, pvsbuffer_t *pvsbuffer, pvsmerge_t merge)

◆ ClustersInSphere

qbyte *(* modelfuncs_t::ClustersInSphere) (struct model_s *model, const vec3_t point, float radius, pvsbuffer_t *pvsbuffer, const qbyte *fte_restrict unionwith)

◆ EdictInFatPVS

qboolean(* modelfuncs_t::EdictInFatPVS) (struct model_s *model, const struct pvscache_s *edict, const qbyte *pvs, const int *areas)

◆ FatPVS

unsigned int(* modelfuncs_t::FatPVS) (struct model_s *model, const vec3_t org, pvsbuffer_t *pvsbuffer, qboolean merge)

◆ FindTouchedLeafs

void(* modelfuncs_t::FindTouchedLeafs) (struct model_s *model, struct pvscache_s *ent, const vec3_t cullmins, const vec3_t cullmaxs)

◆ GenerateShadowMesh

void(* modelfuncs_t::GenerateShadowMesh) (struct model_s *model, dlight_t *dl, const qbyte *lvis, qbyte *truevis, void(*callback)(struct msurface_s *))

◆ InfoForPoint

void(* modelfuncs_t::InfoForPoint) (struct model_s *model, vec3_t pos, int *area, int *cluster, unsigned int *contentbits)

◆ LightPointValues

void(* modelfuncs_t::LightPointValues) (struct model_s *model, const vec3_t point, vec3_t res_diffuse, vec3_t res_ambient, vec3_t res_dir)

◆ LoadAreaPortalBlob

size_t(* modelfuncs_t::LoadAreaPortalBlob) (struct model_s *model, void *ptr, size_t size)

◆ MarkLights

void(* modelfuncs_t::MarkLights) (struct dlight_s *light, dlightbitmask_t bit, struct mnode_s *node)

◆ NativeContents

unsigned int(* modelfuncs_t::NativeContents) (struct model_s *model, int hulloverride, const framestate_t *framestate, const vec3_t axis[3], const vec3_t p, const vec3_t mins, const vec3_t maxs)

◆ NativeTrace

qboolean(* modelfuncs_t::NativeTrace) (struct model_s *model, int hulloverride, const framestate_t *framestate, const vec3_t axis[3], const vec3_t p1, const vec3_t p2, const vec3_t mins, const vec3_t maxs, qboolean capsule, unsigned int against, struct trace_s *trace)

◆ PointContents

unsigned int(* modelfuncs_t::PointContents) (struct model_s *model, const vec3_t axis[3], const vec3_t p)

◆ PrepareFrame

void(* modelfuncs_t::PrepareFrame) (struct model_s *model, refdef_t *refdef, int area, int clusters[2], pvsbuffer_t *vis, qbyte **entvis_out, qbyte **surfvis_out)

◆ PurgeModel

void(* modelfuncs_t::PurgeModel) (struct model_s *mod)

◆ SaveAreaPortalBlob

size_t(* modelfuncs_t::SaveAreaPortalBlob) (struct model_s *model, void **ptr)

◆ SetAreaPortalState

void(* modelfuncs_t::SetAreaPortalState) (struct model_s *model, unsigned int portal, unsigned int area1, unsigned int area2, qboolean open)

◆ StainNode

void(* modelfuncs_t::StainNode) (struct model_s *model, float *parms)

◆ WriteAreaBits

size_t(* modelfuncs_t::WriteAreaBits) (struct model_s *model, qbyte *buffer, size_t maxbytes, int area, qboolean merge)

The documentation for this struct was generated from the following file: