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)

◆ animscenes

◆ brush

model_brush_t model_t::brush

Definition at line 541 of file model_shared.h.

Referenced by CL_RelinkWorld(), CL_UpdateEntityShading_Entity(), Mod_BSP_FinalizePortals(), Mod_BSP_LoadNodes_RecursiveSetParent(), Mod_BSP_LoadSubmodels(), Mod_BSP_MakePortals(), Mod_Decompile_OBJ(), Mod_LoadTextureFromQ3Shader(), Mod_OBJ_Load(), Mod_Q1BSP_CheckWaterAlphaSupport(), Mod_Q1BSP_Load(), Mod_Q1BSP_LoadClipnodes(), Mod_Q1BSP_LoadEdges(), Mod_Q1BSP_LoadEntities(), Mod_Q1BSP_LoadFaces(), Mod_Q1BSP_LoadLeaffaces(), Mod_Q1BSP_LoadLeafs(), Mod_Q1BSP_LoadLighting(), Mod_Q1BSP_LoadMapBrushes(), Mod_Q1BSP_LoadNodes(), Mod_Q1BSP_LoadPlanes(), Mod_Q1BSP_LoadSplitSky(), Mod_Q1BSP_LoadTextures(), Mod_Q1BSP_MakeHull0(), Mod_Q1BSP_ParseWadsFromEntityLump(), Mod_Q1BSP_RoundUpToHullSize(), Mod_Q2BSP_Load(), Mod_Q2BSP_LoadBrushes(), Mod_Q2BSP_LoadBrushSides(), Mod_Q2BSP_LoadLeafBrushes(), Mod_Q2BSP_LoadLeafs(), Mod_Q2BSP_LoadNodes(), Mod_Q2BSP_LoadVisibility(), Mod_Q3BSP_Load(), Mod_Q3BSP_LoadBrushes(), Mod_Q3BSP_LoadBrushSides(), Mod_Q3BSP_LoadBrushSides_IG(), Mod_Q3BSP_LoadEffects(), Mod_Q3BSP_LoadEntities(), Mod_Q3BSP_LoadFaces(), Mod_Q3BSP_LoadLeafBrushes(), Mod_Q3BSP_LoadLeafFaces(), Mod_Q3BSP_LoadLeafs(), Mod_Q3BSP_LoadModels(), Mod_Q3BSP_LoadNodes(), Mod_Q3BSP_LoadPlanes(), Mod_Q3BSP_LoadPVS(), Mod_Q3BSP_RecursiveFindNumLeafs(), Mod_VBSP_LoadEntities(), Mod_VBSP_LoadFaces(), Mod_VBSP_LoadPlanes(), Portal_RecursiveFlow(), R_CompleteLightPoint(), R_DrawParticles(), R_DrawTextureSurfaceList_Sky(), R_Main_ResizeViewCache(), R_Mod_GetLightInfo(), R_Q1BSP_CallRecursiveGetLightInfo(), R_Q1BSP_RecursiveGetLightInfo_BSP(), R_Shadow_BounceGrid_AssignPhotons_Task(), R_Shadow_PrepareLight(), R_Shadow_PrepareLights(), R_Shadow_PrepareModelShadows(), R_SkySphere(), R_SkyStartFrame(), R_Stain(), R_TimeReport_EndFrame(), R_View_UpdateEntityVisible(), R_Water_AddWaterPlane(), R_Water_ProcessPlanes(), RSurf_ActiveModelEntity(), and SV_SpawnServer().

◆ brushq1

◆ brushq3

◆ collision_bih

◆ CompileShadowMap

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

◆ crc

unsigned int model_t::crc

Definition at line 437 of file model_shared.h.

◆ data_baseboneposeinverse

float* model_t::data_baseboneposeinverse

◆ data_bones

◆ data_poses7s

◆ data_surfaces

◆ data_surfaces_lightmapinfo

msurface_lightmapinfo_t* model_t::data_surfaces_lightmapinfo

Definition at line 501 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadFaces(), and Mod_VBSP_LoadFaces().

◆ data_tags

aliastag_t* model_t::data_tags

Definition at line 480 of file model_shared.h.

Referenced by Mod_IDP3_Load().

◆ data_textures

◆ Draw

◆ DrawAddWaterPlanes

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

Definition at line 511 of file model_shared.h.

Referenced by R_DrawModelsAddWaterPlanes(), and R_RenderWaterPlanes().

◆ DrawDebug

◆ DrawDepth

◆ DrawLight

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

◆ 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(), and R_RenderScene().

◆ effects

unsigned model_t::effects

◆ 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.

Referenced by Mod_OBJ_Load(), and R_Shadow_PrepareLight().

◆ lightmapscale

float model_t::lightmapscale

Definition at line 549 of file model_shared.h.

Referenced by Mod_Q3BSP_Load(), and R_UpdateVariables().

◆ lit

◆ 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.

Referenced by Mod_Alias_CalculateBoundingBox(), Mod_Alias_MorphMesh_CompileFrames(), Mod_BSP_FinalizePortals(), Mod_BSP_LoadSubmodels(), Mod_BSP_MakePortals(), Mod_BSP_RecursiveNodePortals(), Mod_BuildAliasSkinsFromSkinFiles(), Mod_DARKPLACESMODEL_Load(), Mod_GenerateLightmaps_CreateLightmaps(), Mod_IDP0_Load(), Mod_IDP2_Load(), Mod_IDP3_Load(), Mod_IDS2_Load(), Mod_INTERQUAKEMODEL_Load(), Mod_LoadSkinFiles(), Mod_MakeCollisionBIH(), Mod_MakeSortedSurfaces(), Mod_OBJ_Load(), Mod_PSKMODEL_Load(), Mod_Q1BSP_Load(), Mod_Q1BSP_LoadClipnodes(), Mod_Q1BSP_LoadEdges(), Mod_Q1BSP_LoadEntities(), Mod_Q1BSP_LoadFaces(), Mod_Q1BSP_LoadLeaffaces(), Mod_Q1BSP_LoadLeafs(), Mod_Q1BSP_LoadLighting(), Mod_Q1BSP_LoadMapBrushes(), Mod_Q1BSP_LoadNodes(), Mod_Q1BSP_LoadPlanes(), Mod_Q1BSP_LoadSurfedges(), Mod_Q1BSP_LoadTexinfo(), Mod_Q1BSP_LoadTextures(), Mod_Q1BSP_LoadVertexes(), Mod_Q1BSP_LoadVisibility(), Mod_Q1BSP_MakeHull0(), Mod_Q2BSP_Load(), Mod_Q2BSP_LoadBrushes(), Mod_Q2BSP_LoadBrushSides(), Mod_Q2BSP_LoadLeafBrushes(), Mod_Q2BSP_LoadLeafs(), Mod_Q2BSP_LoadLighting(), Mod_Q2BSP_LoadNodes(), Mod_Q2BSP_LoadTexinfo(), Mod_Q2BSP_LoadVisibility(), Mod_Q3BSP_Load(), Mod_Q3BSP_LoadBrushes(), Mod_Q3BSP_LoadBrushSides(), Mod_Q3BSP_LoadBrushSides_IG(), Mod_Q3BSP_LoadEffects(), Mod_Q3BSP_LoadEntities(), Mod_Q3BSP_LoadFaces(), Mod_Q3BSP_LoadLeafBrushes(), Mod_Q3BSP_LoadLeafFaces(), Mod_Q3BSP_LoadLeafs(), Mod_Q3BSP_LoadLightGrid(), Mod_Q3BSP_LoadLightmaps(), Mod_Q3BSP_LoadModels(), Mod_Q3BSP_LoadNodes(), Mod_Q3BSP_LoadPlanes(), Mod_Q3BSP_LoadPVS(), Mod_Q3BSP_LoadTextures(), Mod_Q3BSP_LoadTriangles(), Mod_Q3BSP_LoadVertices(), Mod_Sprite_SharedSetup(), Mod_SpriteSetupTexture(), Mod_VBSP_LoadEdges(), Mod_VBSP_LoadEntities(), Mod_VBSP_LoadFaces(), Mod_VBSP_LoadPlanes(), Mod_VBSP_LoadSurfedges(), Mod_VBSP_LoadTexinfo(), Mod_VBSP_LoadVertexes(), and Mod_ZYMOTICMODEL_Load().

◆ modeldatatypestring

◆ 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 Mod_DARKPLACESMODEL_Load(), Mod_IDP0_Load(), Mod_IDP2_Load(), Mod_IDP3_Load(), Mod_INTERQUAKEMODEL_Load(), Mod_OBJ_Load(), Mod_PSKMODEL_Load(), Mod_ZYMOTICMODEL_Load(), R_Shadow_DrawEntityShadow(), and R_Shadow_DrawModelShadowMaps().

◆ name

char model_t::name[MAX_QPATH]

Definition at line 431 of file model_shared.h.

Referenced by CL_PrintEntities_f(), CL_UpdateNetworkCollisionEntities(), Mod_BSP_DecompressVis(), Mod_BSP_LoadSubmodels(), Mod_BuildAliasSkinsFromSkinFiles(), Mod_BuildVBOs(), Mod_DARKPLACESMODEL_Load(), Mod_IDP0_Load(), Mod_IDP2_Load(), Mod_IDP3_Load(), Mod_IDS2_Load(), Mod_IDSP_Load(), Mod_INTERQUAKEMODEL_Load(), Mod_LoadSkinFiles(), Mod_MDL_LoadFrames(), Mod_OBJ_Load(), Mod_PSKMODEL_Load(), Mod_Q1BSP_Load(), Mod_Q1BSP_LoadClipnodes(), Mod_Q1BSP_LoadEdges(), Mod_Q1BSP_LoadFaces(), Mod_Q1BSP_LoadLeaffaces(), Mod_Q1BSP_LoadLeafs(), Mod_Q1BSP_LoadLighting(), Mod_Q1BSP_LoadMapBrushes(), Mod_Q1BSP_LoadNodes(), Mod_Q1BSP_LoadPlanes(), Mod_Q1BSP_LoadSurfedges(), Mod_Q1BSP_LoadTexinfo(), Mod_Q1BSP_LoadTextures(), Mod_Q1BSP_LoadVertexes(), Mod_Q2BSP_Load(), Mod_Q2BSP_LoadBrushes(), Mod_Q2BSP_LoadBrushSides(), Mod_Q2BSP_LoadLeafBrushes(), Mod_Q2BSP_LoadLeafs(), Mod_Q2BSP_LoadNodes(), Mod_Q2BSP_LoadTexinfo(), Mod_Q3BSP_Load(), Mod_Q3BSP_LoadBrushes(), Mod_Q3BSP_LoadBrushSides(), Mod_Q3BSP_LoadBrushSides_IG(), Mod_Q3BSP_LoadEffects(), Mod_Q3BSP_LoadEntities(), Mod_Q3BSP_LoadFaces(), Mod_Q3BSP_LoadLeafBrushes(), Mod_Q3BSP_LoadLeafFaces(), Mod_Q3BSP_LoadLeafs(), Mod_Q3BSP_LoadLightGrid(), Mod_Q3BSP_LoadLightmaps(), Mod_Q3BSP_LoadModels(), Mod_Q3BSP_LoadNodes(), Mod_Q3BSP_LoadPlanes(), Mod_Q3BSP_LoadPVS(), Mod_Q3BSP_LoadTextures(), Mod_Q3BSP_LoadTriangles(), Mod_Q3BSP_LoadVertices(), Mod_Sprite_SharedSetup(), Mod_VBSP_LoadEdges(), Mod_VBSP_LoadFaces(), Mod_VBSP_LoadPlanes(), Mod_VBSP_LoadSurfedges(), Mod_VBSP_LoadTexinfo(), Mod_VBSP_LoadVertexes(), Mod_ZYMOTICMODEL_Load(), R_View_UpdateEntityVisible(), and RSurf_ActiveModelEntity().

◆ nolerp

qbool model_t::nolerp

Definition at line 551 of file model_shared.h.

Referenced by Mod_IDP0_Load().

◆ normalmaxs

◆ normalmins

◆ num_bones

◆ num_poseinvscale

float model_t::num_poseinvscale

◆ num_poses

◆ num_posescale

◆ num_surfaces

◆ num_tagframes

int model_t::num_tagframes

Definition at line 479 of file model_shared.h.

Referenced by Mod_IDP3_Load().

◆ num_tags

int model_t::num_tags

Definition at line 478 of file model_shared.h.

Referenced by Mod_IDP3_Load().

◆ num_textures

◆ num_texturesperskin

◆ numframes

◆ nummodelbrushes

int model_t::nummodelbrushes

Definition at line 473 of file model_shared.h.

◆ numskins

◆ PointSuperContents

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

◆ radius

◆ radius2

◆ render_bih

bih_t model_t::render_bih

Definition at line 476 of file model_shared.h.

Referenced by R_Q1BSP_CallRecursiveGetLightInfo().

◆ rotatedmaxs

◆ rotatedmins

◆ skinscenes

◆ soundfromcenter

int model_t::soundfromcenter

Definition at line 545 of file model_shared.h.

Referenced by CL_LinkNetworkEntity(), CL_UpdateNetworkEntityTrail(), and Mod_OBJ_Load().

◆ sprite

◆ submodelsurfaces_end

◆ submodelsurfaces_start

◆ surfmesh

◆ synctype

◆ texturepool

◆ 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)

◆ 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)

◆ 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.

Referenced by Mod_OBJ_Load().

◆ 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)

◆ 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

◆ yawmins


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