DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
model_t Struct Reference

#include <model_shared.h>

Collaboration diagram for model_t:

Data Fields

void(* AnimateVertices )(const struct model_s *RESTRICT model, const struct frameblend_s *RESTRICT frameblend, const struct skeleton_s *skeleton, float *RESTRICT vertex3f, float *RESTRICT normal3f, float *RESTRICT svector3f, float *RESTRICT tvector3f)
animscene_tanimscenes
model_brush_t brush
model_brushq1_t brushq1
model_brushq3_t brushq3
bih_t collision_bih
void(* CompileShadowMap )(struct entity_render_s *ent, vec3_t relativelightorigin, vec3_t relativelightdirection, float lightradius, int numsurfaces, const int *surfacelist)
unsigned int crc
floatdata_baseboneposeinverse
aliasbone_tdata_bones
short * data_poses7s
msurface_tdata_surfaces
msurface_lightmapinfo_tdata_surfaces_lightmapinfo
aliastag_tdata_tags
texture_tdata_textures
void(* Draw )(struct entity_render_s *ent)
void(* DrawAddWaterPlanes )(struct entity_render_s *ent)
void(* DrawDebug )(struct entity_render_s *ent)
void(* DrawDepth )(struct entity_render_s *ent)
void(* DrawLight )(struct entity_render_s *ent, int numsurfaces, const int *surfacelist, const unsigned char *trispvs)
void(* DrawPrepass )(struct entity_render_s *ent)
void(* DrawShadowMap )(int side, struct entity_render_s *ent, const vec3_t relativelightorigin, const vec3_t relativelightdirection, float lightradius, int numsurfaces, const int *surfacelist, const unsigned char *surfacesides, const vec3_t lightmins, const vec3_t lightmaxs)
void(* DrawSky )(struct entity_render_s *ent)
unsigned effects
int firstmodelbrush
void(* GetLightInfo )(struct entity_render_s *ent, vec3_t relativelightorigin, float lightradius, vec3_t outmins, vec3_t outmaxs, int *outleaflist, unsigned char *outleafpvs, int *outnumleafspointer, int *outsurfacelist, unsigned char *outsurfacepvs, int *outnumsurfacespointer, unsigned char *outshadowtrispvs, unsigned char *outlighttrispvs, unsigned char *visitingleafpvs, int numfrustumplanes, const mplane_t *frustumplanes, qbool noocclusion)
float lightmapscale
qbool lit
qbool loaded
int max_surfaces
int max_textures
struct mempool_s * mempool
const char * modeldatatypestring
intmodelsurfaces_sorted
 surface indices of model in an optimal draw order (submodelindex -> texture -> lightmap -> index)
char name [MAX_QPATH]
qbool nolerp
vec3_t normalmaxs
vec3_t normalmins
int num_bones
float num_poseinvscale
int num_poses
float num_posescale
int num_surfaces
int num_tagframes
int num_tags
int num_textures
int num_texturesperskin
int numframes
int nummodelbrushes
int numskins
int(* PointSuperContents )(struct model_s *model, int frame, const vec3_t point)
float radius
float radius2
bih_t render_bih
vec3_t rotatedmaxs
vec3_t rotatedmins
animscene_tskinscenes
int soundfromcenter
model_sprite_t sprite
int submodelsurfaces_end
int submodelsurfaces_start
surfmesh_t surfmesh
synctype_t synctype
rtexturepool_ttexturepool
void(* TraceBox )(struct model_s *model, const struct frameblend_s *frameblend, const struct skeleton_s *skeleton, struct trace_s *trace, const vec3_t start, const vec3_t boxmins, const vec3_t boxmaxs, const vec3_t end, int hitsupercontentsmask, int skipsupercontentsmask, int skipmaterialflagsmask)
void(* TraceBrush )(struct model_s *model, const struct frameblend_s *frameblend, const struct skeleton_s *skeleton, struct trace_s *trace, struct colbrushf_s *start, struct colbrushf_s *end, int hitsupercontentsmask, int skipsupercontentsmask, int skipmaterialflagsmask)
void(* TraceLine )(struct model_s *model, const struct frameblend_s *frameblend, const struct skeleton_s *skeleton, struct trace_s *trace, const vec3_t start, const vec3_t end, int hitsupercontentsmask, int skipsupercontentsmask, int skipmaterialflagsmask)
void(* TraceLineAgainstSurfaces )(struct model_s *model, const struct frameblend_s *frameblend, const struct skeleton_s *skeleton, struct trace_s *trace, const vec3_t start, const vec3_t end, int hitsupercontentsmask, int skipsupercontentsmask, int skipmaterialflagsmask)
void(* TracePoint )(struct model_s *model, const struct frameblend_s *frameblend, const struct skeleton_s *skeleton, struct trace_s *trace, const vec3_t start, int hitsupercontentsmask, int skipsupercontentsmask, int skipmaterialflagsmask)
modtype_t type
qbool used
qbool wantnormals
qbool wanttangents
vec3_t yawmaxs
vec3_t yawmins

Detailed Description

Definition at line 428 of file model_shared.h.

Field Documentation

◆ AnimateVertices

void(* model_t::AnimateVertices) (const struct model_s *RESTRICT model, const struct frameblend_s *RESTRICT frameblend, const struct skeleton_s *skeleton, float *RESTRICT vertex3f, float *RESTRICT normal3f, float *RESTRICT svector3f, float *RESTRICT tvector3f)

Definition at line 507 of file model_shared.h.

◆ animscenes

animscene_t* model_t::animscenes

Definition at line 465 of file model_shared.h.

Referenced by CL_UpdateNetworkEntity(), and PrintFrameName().

◆ brush

◆ brushq1

model_brushq1_t model_t::brushq1

Definition at line 542 of file model_shared.h.

Referenced by Mod_Q1BSP_RoundUpToHullSize().

◆ brushq3

model_brushq3_t model_t::brushq3

Definition at line 543 of file model_shared.h.

◆ collision_bih

bih_t model_t::collision_bih

Definition at line 475 of file model_shared.h.

◆ CompileShadowMap

void(* model_t::CompileShadowMap) (struct entity_render_s *ent, vec3_t relativelightorigin, vec3_t relativelightdirection, float lightradius, int numsurfaces, const int *surfacelist)

Definition at line 521 of file model_shared.h.

◆ crc

unsigned int model_t::crc

Definition at line 437 of file model_shared.h.

◆ data_baseboneposeinverse

float* model_t::data_baseboneposeinverse

Definition at line 488 of file model_shared.h.

◆ data_bones

aliasbone_t* model_t::data_bones

Definition at line 483 of file model_shared.h.

◆ data_poses7s

short* model_t::data_poses7s

Definition at line 487 of file model_shared.h.

◆ data_surfaces

◆ data_surfaces_lightmapinfo

msurface_lightmapinfo_t* model_t::data_surfaces_lightmapinfo

Definition at line 501 of file model_shared.h.

◆ data_tags

aliastag_t* model_t::data_tags

Definition at line 480 of file model_shared.h.

◆ data_textures

texture_t* model_t::data_textures

◆ Draw

void(* model_t::Draw) (struct entity_render_s *ent)

Definition at line 513 of file model_shared.h.

Referenced by R_DrawModels(), and SV_Viewmodel_f().

◆ DrawAddWaterPlanes

void(* model_t::DrawAddWaterPlanes) (struct entity_render_s *ent)

Definition at line 511 of file model_shared.h.

Referenced by R_DrawModelsAddWaterPlanes().

◆ DrawDebug

void(* model_t::DrawDebug) (struct entity_render_s *ent)

Definition at line 517 of file model_shared.h.

Referenced by R_DrawModelsDebug().

◆ DrawDepth

void(* model_t::DrawDepth) (struct entity_render_s *ent)

Definition at line 515 of file model_shared.h.

Referenced by R_DrawModelsDepth().

◆ DrawLight

void(* model_t::DrawLight) (struct entity_render_s *ent, int numsurfaces, const int *surfacelist, const unsigned char *trispvs)

Definition at line 527 of file model_shared.h.

◆ DrawPrepass

void(* model_t::DrawPrepass) (struct entity_render_s *ent)

Definition at line 519 of file model_shared.h.

Referenced by R_Shadow_DrawPrepass().

◆ DrawShadowMap

void(* model_t::DrawShadowMap) (int side, struct entity_render_s *ent, const vec3_t relativelightorigin, const vec3_t relativelightdirection, float lightradius, int numsurfaces, const int *surfacelist, const unsigned char *surfacesides, const vec3_t lightmins, const vec3_t lightmaxs)

◆ DrawSky

void(* model_t::DrawSky) (struct entity_render_s *ent)

Definition at line 509 of file model_shared.h.

Referenced by R_DrawBrushModelsSky().

◆ effects

unsigned model_t::effects

Definition at line 445 of file model_shared.h.

Referenced by CL_UpdateNetworkEntity(), and CSQC_AddRenderEdict().

◆ firstmodelbrush

int model_t::firstmodelbrush

Definition at line 472 of file model_shared.h.

◆ GetLightInfo

void(* model_t::GetLightInfo) (struct entity_render_s *ent, vec3_t relativelightorigin, float lightradius, vec3_t outmins, vec3_t outmaxs, int *outleaflist, unsigned char *outleafpvs, int *outnumleafspointer, int *outsurfacelist, unsigned char *outsurfacepvs, int *outnumsurfacespointer, unsigned char *outshadowtrispvs, unsigned char *outlighttrispvs, unsigned char *visitingleafpvs, int numfrustumplanes, const mplane_t *frustumplanes, qbool noocclusion)

Definition at line 525 of file model_shared.h.

◆ lightmapscale

float model_t::lightmapscale

Definition at line 549 of file model_shared.h.

◆ lit

qbool model_t::lit

Definition at line 548 of file model_shared.h.

Referenced by CL_UpdateEntityShading_Entity().

◆ loaded

qbool model_t::loaded

Definition at line 433 of file model_shared.h.

Referenced by SV_Viewmodel_f(), and VM_CL_precache_model().

◆ max_surfaces

int model_t::max_surfaces

Definition at line 498 of file model_shared.h.

◆ max_textures

int model_t::max_textures

Definition at line 491 of file model_shared.h.

◆ mempool

struct mempool_s* model_t::mempool

Definition at line 441 of file model_shared.h.

◆ modeldatatypestring

const char* model_t::modeldatatypestring

Definition at line 505 of file model_shared.h.

◆ modelsurfaces_sorted

int* model_t::modelsurfaces_sorted

surface indices of model in an optimal draw order (submodelindex -> texture -> lightmap -> index)

Definition at line 470 of file model_shared.h.

Referenced by R_Shadow_DrawEntityShadow(), and R_Shadow_DrawModelShadowMaps().

◆ name

◆ nolerp

qbool model_t::nolerp

Definition at line 551 of file model_shared.h.

◆ normalmaxs

◆ normalmins

◆ num_bones

int model_t::num_bones

Definition at line 482 of file model_shared.h.

◆ num_poseinvscale

float model_t::num_poseinvscale

Definition at line 485 of file model_shared.h.

◆ num_poses

int model_t::num_poses

Definition at line 486 of file model_shared.h.

◆ num_posescale

float model_t::num_posescale

Definition at line 484 of file model_shared.h.

◆ num_surfaces

int model_t::num_surfaces

Definition at line 497 of file model_shared.h.

Referenced by R_Mod_GetLightInfo(), and R_Q1BSP_CallRecursiveGetLightInfo().

◆ num_tagframes

int model_t::num_tagframes

Definition at line 479 of file model_shared.h.

◆ num_tags

int model_t::num_tags

Definition at line 478 of file model_shared.h.

◆ num_textures

int model_t::num_textures

Definition at line 490 of file model_shared.h.

◆ num_texturesperskin

int model_t::num_texturesperskin

Definition at line 492 of file model_shared.h.

◆ numframes

int model_t::numframes

Definition at line 447 of file model_shared.h.

Referenced by CL_UpdateNetworkEntity(), SV_Viewframe_f(), and SV_Viewnext_f().

◆ nummodelbrushes

int model_t::nummodelbrushes

Definition at line 473 of file model_shared.h.

◆ numskins

int model_t::numskins

Definition at line 449 of file model_shared.h.

Referenced by CL_UpdateNetworkEntity().

◆ PointSuperContents

int(* model_t::PointSuperContents) (struct model_s *model, int frame, const vec3_t point)

Definition at line 536 of file model_shared.h.

◆ radius

float model_t::radius

Definition at line 459 of file model_shared.h.

◆ radius2

float model_t::radius2

Definition at line 461 of file model_shared.h.

◆ render_bih

bih_t model_t::render_bih

Definition at line 476 of file model_shared.h.

Referenced by R_Q1BSP_CallRecursiveGetLightInfo().

◆ rotatedmaxs

vec3_t model_t::rotatedmaxs

Definition at line 457 of file model_shared.h.

Referenced by SV_PushMove().

◆ rotatedmins

vec3_t model_t::rotatedmins

Definition at line 457 of file model_shared.h.

Referenced by SV_PushMove().

◆ skinscenes

animscene_t* model_t::skinscenes

Definition at line 463 of file model_shared.h.

◆ soundfromcenter

int model_t::soundfromcenter

Definition at line 545 of file model_shared.h.

Referenced by CL_LinkNetworkEntity(), and CL_UpdateNetworkEntityTrail().

◆ sprite

model_sprite_t model_t::sprite

Definition at line 540 of file model_shared.h.

Referenced by CL_UpdateEntityShading_Entity(), and R_View_UpdateEntityVisible().

◆ submodelsurfaces_end

int model_t::submodelsurfaces_end

Definition at line 468 of file model_shared.h.

Referenced by R_Shadow_DrawEntityShadow(), and R_Shadow_DrawModelShadowMaps().

◆ submodelsurfaces_start

int model_t::submodelsurfaces_start

◆ surfmesh

◆ synctype

synctype_t model_t::synctype

Definition at line 451 of file model_shared.h.

◆ texturepool

rtexturepool_t* model_t::texturepool

Definition at line 443 of file model_shared.h.

◆ TraceBox

void(* model_t::TraceBox) (struct model_s *model, const struct frameblend_s *frameblend, const struct skeleton_s *skeleton, struct trace_s *trace, const vec3_t start, const vec3_t boxmins, const vec3_t boxmaxs, const vec3_t end, int hitsupercontentsmask, int skipsupercontentsmask, int skipmaterialflagsmask)

◆ TraceBrush

void(* model_t::TraceBrush) (struct model_s *model, const struct frameblend_s *frameblend, const struct skeleton_s *skeleton, struct trace_s *trace, struct colbrushf_s *start, struct colbrushf_s *end, int hitsupercontentsmask, int skipsupercontentsmask, int skipmaterialflagsmask)

Definition at line 530 of file model_shared.h.

◆ TraceLine

void(* model_t::TraceLine) (struct model_s *model, const struct frameblend_s *frameblend, const struct skeleton_s *skeleton, struct trace_s *trace, const vec3_t start, const vec3_t end, int hitsupercontentsmask, int skipsupercontentsmask, int skipmaterialflagsmask)

Definition at line 532 of file model_shared.h.

Referenced by CL_SelectTraceLine().

◆ TraceLineAgainstSurfaces

void(* model_t::TraceLineAgainstSurfaces) (struct model_s *model, const struct frameblend_s *frameblend, const struct skeleton_s *skeleton, struct trace_s *trace, const vec3_t start, const vec3_t end, int hitsupercontentsmask, int skipsupercontentsmask, int skipmaterialflagsmask)

Definition at line 538 of file model_shared.h.

◆ TracePoint

void(* model_t::TracePoint) (struct model_s *model, const struct frameblend_s *frameblend, const struct skeleton_s *skeleton, struct trace_s *trace, const vec3_t start, int hitsupercontentsmask, int skipsupercontentsmask, int skipmaterialflagsmask)

Definition at line 534 of file model_shared.h.

◆ type

◆ used

qbool model_t::used

Definition at line 435 of file model_shared.h.

Referenced by SV_SpawnServer().

◆ wantnormals

qbool model_t::wantnormals

Definition at line 494 of file model_shared.h.

◆ wanttangents

qbool model_t::wanttangents

Definition at line 495 of file model_shared.h.

◆ yawmaxs

vec3_t model_t::yawmaxs

Definition at line 455 of file model_shared.h.

Referenced by SV_PushMove().

◆ yawmins

vec3_t model_t::yawmins

Definition at line 455 of file model_shared.h.

Referenced by SV_PushMove().


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