24#include "../client/modelgen.h"
25#include "../client/spritegn.h"
66#define GL_BONE_INDEX_TYPE GL_UNSIGNED_INT
69#define GL_BONE_INDEX_TYPE GL_UNSIGNED_SHORT
72#define GL_BONE_INDEX_TYPE GL_UNSIGNED_BYTE
205#define EF_BRIGHTFIELD (1<<0)
206#define EF_MUZZLEFLASH (1<<1)
207#define EF_BRIGHTLIGHT (1<<2)
208#define EF_DIMLIGHT (1<<3)
209#define QWEF_FLAG1 (1<<4)
210#define NQEF_NODRAW (1<<4)
211#define REEF_QUADLIGHT (1<<4)
212#define QWEF_FLAG2 (1<<5)
213#define NQEF_ADDITIVE (1<<5)
214#define REEF_PENTLIGHT (1<<5)
215#define EF_BLUE (1<<6)
216#define REEF_CANDLELIGHT (1<<6)
218#define H2EF_NODRAW (1<<7)
219#define DPEF_NOGUNBOB (1<<8)
220#define EF_FULLBRIGHT (1<<9)
221#define DPEF_FLAME (1<<10)
222#define DPEF_STARDUST (1<<11)
223#define EF_NOSHADOW (1<<12)
224#define EF_NODEPTHTEST (1<<13)
225#define DPEF_SELECTABLE_ (1<<14)
226#define DPEF_DOUBLESIDED_ (1<<15)
227#define DPEF_NOSELFSHADOW_ (1<<16)
228#define DPEF_DYNAMICMODELLIGHT_ (1<<17)
229#define EF_GREEN (1<<18)
230#define EF_UNUSED19 (1<<19)
231#define EF_RESTARTANIM_BIT (1<<20)
232#define EF_TELEPORT_BIT (1<<21)
233#define DPEF_LOWPRECISION (1<<22)
234#define EF_NOMODELFLAGS (1<<23)
235#define EF_MF_ROCKET (1<<24)
236#define EF_MF_GRENADE (1<<25)
237#define EF_MF_GIB (1<<26)
238#define EF_MF_ROTATE (1<<27)
239#define EF_MF_TRACER (1<<28)
240#define EF_MF_ZOMGIB (1u<<29)
241#define EF_MF_TRACER2 (1u<<30)
242#define EF_MF_TRACER3 (1u<<31)
244#define EF_HASPARTICLETRAIL (0xff800000 | EF_BRIGHTFIELD|DPEF_FLAME|DPEF_STARDUST)
276 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);
394#define SURF_DRAWSKYBOX 0x00001
395#define SURF_PLANEBACK 0x00002
396#define SURF_DRAWSKY 0x00004
397#define SURF_DRAWSPRITE 0x00008
398#define SURF_DRAWTURB 0x00010
399#define SURF_DRAWTILED 0x00020
400#define SURF_DRAWBACKGROUND 0x00040
401#define SURF_UNDERWATER 0x00080
402#define SURF_DONTWARP 0x00100
404#define SURF_NOFLAT 0x08000
405#define SURF_DRAWALPHA 0x10000
406#define SURF_NODRAW 0x20000
457#define LMSHIFT_DEFAULT 4
491 lightstyleindex_t
styles[MAXCPULIGHTMAPS];
528#if defined(Q2BSPS) || defined(Q3BSPS) || defined(MAP_PROC)
556#if defined(Q2BSPS) || defined(Q3BSPS)
575 unsigned int headnode[MAX_MAP_HULLSM];
611void Mod_ClipDecal(
struct model_s *mod,
vec3_t center,
vec3_t normal,
vec3_t tangent1,
vec3_t tangent2,
float size,
unsigned int surfflagmask,
unsigned int surflagmatch,
void (*
callback)(
void *
ctx,
vec3_t *fte_restrict
points,
size_t numpoints,
shader_t *
shader),
void *
ctx);
740 int gl_texturenum[MAX_SKINS][4];
741 int texels[MAX_SKINS];
745#define MAXALIASVERTS 2048
746#define ALIAS_Z_CLIP_PLANE 5
747#define MAXALIASFRAMES 256
748#define MAXALIASTRIS 2048
768#define MD2IDALIASHEADER "IDP2",4
769#define MD2ALIAS_VERSION 8
770#define MD2MAX_SKINNAME 64
867 unsigned char ambient[4][3];
868 unsigned char diffuse[4][3];
869 unsigned char styles[4];
898#define MF_ROCKET (1u<<0)
899#define MF_GRENADE (1u<<1)
900#define MF_GIB (1u<<2)
901#define MF_ROTATE (1u<<3)
902#define MF_TRACER (1u<<4)
903#define MF_ZOMGIB (1u<<5)
904#define MF_TRACER2 (1u<<6)
905#define MF_TRACER3 (1u<<7)
908#define MFH2_FIREBALL (1u<<8)
909#define MFH2_ICE (1u<<9)
910#define MFH2_MIP_MAP (1u<<10)
911#define MFH2_SPIT (1u<<11)
912#define MFH2_TRANSPARENT (1u<<12)
913#define MFH2_SPELL (1u<<13)
914#define MFH2_HOLEY (1u<<14)
915#define MFH2_SPECIAL_TRANS (1u<<15)
916#define MFH2_FACE_VIEW (1u<<16)
917#define MFH2_VORP_MISSILE (1u<<17)
918#define MFH2_SET_STAFF (1u<<18)
919#define MFH2_MAGICMISSILE (1u<<19)
920#define MFH2_BONESHARD (1u<<20)
921#define MFH2_SCARAB (1u<<21)
922#define MFH2_ACIDBALL (1u<<22)
923#define MFH2_BLOODSHOT (1u<<23)
924#define MFH2_SPIDERBLOOD (1u<<31)
1131#define MDLF_EMITREPLACE 0x0001
1132#define MDLF_EMITFORWARDS 0x0002
1133#define MDLF_NODEFAULTTRAIL 0x0004
1135#define MDLF_PLAYER 0x0010
1136#define MDLF_FLAME 0x0020
1137#define MDLF_DOCRC 0x0040
1138#define MDLF_NEEDOVERBRIGHT 0x0080
1139#define MDLF_NOSHADOWS 0x0100
1140#define MDLF_NOTREPLACEMENTS 0x0200
1141#define MDLF_EZQUAKEFBCHEAT 0x0400
1142#define MDLF_NOLERP 0x0800
1143#define MDLF_RECALCULATERAIN 0x1000
1178qboolean Heightmap_Trace(
model_t *
model,
int forcehullnum,
const framestate_t *framestate,
const vec3_t axis[3],
const vec3_t start,
const vec3_t end,
const vec3_t mins,
const vec3_t maxs,
qboolean capsule,
unsigned int contentmask,
struct trace_s *trace);
1180struct fragmentdecal_s;
1196#if defined(Q2BSPS) || defined(Q3BSPS)
cvar_t model
Definition: cl_main.c:153
cvar_t msg
Definition: cl_main.c:159
void(QDECL *vgui_frame)(void)
entity_t * ent
Definition: com_mesh.c:717
frac
Definition: com_mesh.c:2483
int bonecount
Definition: com_mesh.c:726
vbo_t vbo
Definition: com_mesh.c:737
dReal int direction
Definition: com_phys_ode.c:291
void dNearCallback * callback
Definition: com_phys_ode.c:655
int num
Definition: com_phys_ode.c:314
dReal dReal radius
Definition: com_phys_ode.c:289
unsigned char qbyte
Definition: common.h:127
s
Definition: execloop.h:53
qboolean SV_Parse_BrushEdit(void)
Definition: gl_heightmap.c:6902
void Terr_DrawTerrainModel(batch_t **batch, entity_t *e)
Definition: gl_heightmap.c:3014
struct fragmentdecal_s fragmentdecal_t
Definition: gl_model.h:608
void Q1BSP_Init(void)
Definition: q1bsp.c:2512
@ MLS_FAILED
Definition: gl_model.h:969
@ MLS_NOTLOADED
Definition: gl_model.h:966
@ MLS_LOADING
Definition: gl_model.h:967
@ MLS_LOADED
Definition: gl_model.h:968
int CM_LeafArea(struct model_s *mod, int leafnum)
int CM_TransformedPointContents(struct model_s *mod, const vec3_t p, int headnode, const vec3_t origin, const vec3_t angles)
float RadiusFromBounds(const vec3_t mins, const vec3_t maxs)
Definition: gl_q2bsp.c:99
void Mod_LoadLighting(struct model_s *loadmodel, bspx_header_t *bspx, qbyte *mod_base, lump_t *l, qboolean interleaveddeluxe, lightmapoverrides_t *overrides, subbsp_t subbsp)
Definition: gl_model.c:1610
size_t CM_WritePortalState(model_t *mod, void **data)
void Mod_ClipDecal(struct model_s *mod, vec3_t center, vec3_t normal, vec3_t tangent1, vec3_t tangent2, float size, unsigned int surfflagmask, unsigned int surflagmatch, void(*callback)(void *ctx, vec3_t *fte_restrict points, size_t numpoints, shader_t *shader), void *ctx)
Definition: q1bsp.c:592
qboolean Terrain_LocateSection(const char *name, flocation_t *loc)
Definition: gl_heightmap.c:1898
void rag_uninstanciateall(void)
Definition: pr_skelobj.c:706
struct bspx_header_s bspx_header_t
Definition: gl_model.h:34
void Terr_FreeModel(model_t *mod)
Definition: gl_heightmap.c:2188
qboolean Heightmap_Edit(model_t *mod, int action, float *pos, float radius, float quant)
void rag_updatedeltaent(struct world_s *w, entity_t *ent, lerpents_t *le)
Definition: pr_skelobj.c:1586
struct plugterrainfuncs_s * Terr_GetTerrainFuncs(size_t structsize)
Definition: gl_heightmap.c:9130
int CM_PointContents(struct model_s *mod, const vec3_t p)
int CM_PointLeafnum(struct model_s *mod, const vec3_t p)
void Terr_PurgeTerrainModel(model_t *hm, qboolean lightmapsonly, qboolean lightmapreusable)
Definition: gl_heightmap.c:2111
qboolean Heightmap_Trace(model_t *model, int forcehullnum, const framestate_t *framestate, const vec3_t axis[3], const vec3_t start, const vec3_t end, const vec3_t mins, const vec3_t maxs, qboolean capsule, unsigned int contentmask, struct trace_s *trace)
Definition: gl_heightmap.c:4087
bspx_header_t * BSPX_Setup(struct model_s *mod, char *filebase, size_t filelen, lump_t *lumps, size_t numlumps)
Definition: q1bsp.c:2599
void GL_SelectVBO(int vbo)
Definition: gl_backend.c:478
void rag_freedoll(struct doll_s *doll)
Definition: pr_skelobj.c:684
void skel_reset(struct world_s *world)
Definition: pr_skelobj.c:1017
struct mspriteframe_s mspriteframe_t
void BSPX_LightGridLoad(struct model_s *model, bspx_header_t *bspx, qbyte *mod_base)
Definition: gl_rlight.c:2984
void Terr_FinishTerrain(model_t *model)
Definition: gl_heightmap.c:5495
mtriangle_t triangles[MAXALIASTRIS]
qboolean Terr_DownloadedSection(char *fname)
Definition: gl_heightmap.c:1420
struct texture_s texture_t
qboolean CM_HeadnodeVisible(struct model_s *mod, int nodenum, const qbyte *visbits)
void GLQ1BSP_LightPointValues(struct model_s *model, const vec3_t point, vec3_t res_diffuse, vec3_t res_ambient, vec3_t res_dir)
Definition: gl_rlight.c:3168
int CM_ClusterBytes(struct model_s *mod)
void rag_flushdolls(qboolean force)
Definition: pr_skelobj.c:714
void * BSPX_FindLump(bspx_header_t *bspxheader, void *mod_base, char *lumpname, int *lumpsize)
Definition: q1bsp.c:2582
mspriteframe_t * R_GetSpriteFrame(entity_t *currententity)
Definition: renderer.c:2496
void * Mod_LoadTerrainInfo(model_t *mod, char *loadname, qboolean force)
Definition: gl_heightmap.c:8671
void BSPX_LoadEnvmaps(struct model_s *mod, bspx_header_t *bspx, void *mod_base)
Definition: q1bsp.c:2648
void Q1BSP_MarkLights(dlight_t *light, dlightbitmask_t bit, mnode_t *node)
Definition: q1bsp.c:1651
void Fragment_ClipPoly(fragmentdecal_t *dec, int numverts, float *inverts, shader_t *surfshader)
Definition: q1bsp.c:373
fromgame_t
Definition: gl_model.h:895
@ fg_doom3
Definition: gl_model.h:895
@ fg_quake2
Definition: gl_model.h:895
@ fg_halflife
Definition: gl_model.h:895
@ fg_quake
Definition: gl_model.h:895
@ fg_doom
Definition: gl_model.h:895
@ fg_quake3
Definition: gl_model.h:895
@ fg_new
Definition: gl_model.h:895
shadersort_t
Definition: gl_model.h:36
@ SHADER_SORT_UNLITDECAL
Definition: gl_model.h:47
@ SHADER_SORT_BANNER
Definition: gl_model.h:48
@ SHADER_SORT_UNDERWATER
Definition: gl_model.h:49
@ SHADER_SORT_ADDITIVE
Definition: gl_model.h:51
@ SHADER_SORT_DEFERREDLIGHT
Definition: gl_model.h:39
@ SHADER_SORT_PORTAL
Definition: gl_model.h:40
@ SHADER_SORT_COUNT
Definition: gl_model.h:55
@ SHADER_SORT_NONE
Definition: gl_model.h:37
@ SHADER_SORT_RIPPLE
Definition: gl_model.h:38
@ SHADER_SORT_BLEND
Definition: gl_model.h:50
@ SHADER_SORT_NEAREST
Definition: gl_model.h:52
@ SHADER_SORT_OPAQUE
Definition: gl_model.h:42
@ SHADER_SORT_SEETHROUGH
Definition: gl_model.h:45
@ SHADER_SORT_SKY
Definition: gl_model.h:41
@ SHADER_SORT_DECAL
Definition: gl_model.h:44
struct mtexinfo_s mtexinfo_t
int CM_BoxLeafnums(struct model_s *mod, const vec3_t mins, const vec3_t maxs, int *list, int listsize, int *topnode)
int CM_LeafCluster(struct model_s *mod, int leafnum)
unsigned int boneidx_t
Definition: gl_model.h:67
void Terrain_ClipDecal(struct fragmentdecal_s *dec, float *center, float radius, model_t *model)
Definition: gl_heightmap.c:3129
qofs_t CM_ReadPortalState(model_t *mod, qbyte *ptr, qofs_t ptrsize)
qboolean SV_Prespawn_Brushes(sizebuf_t *msg, unsigned int *modelindex, unsigned int *lastid)
Definition: gl_heightmap.c:6832
unsigned int Heightmap_PointContents(model_t *model, const vec3_t axis[3], const vec3_t org)
Definition: gl_heightmap.c:3302
qbyte * CM_ClusterPVS(struct model_s *mod, int cluster, pvsbuffer_t *buffer, pvsmerge_t merge)
struct model_s * CM_TempBoxModel(const vec3_t mins, const vec3_t maxs)
Definition: gl_q2bsp.c:5301
mstvert_t stverts[MAXALIASVERTS *2]
void rag_doallanimations(struct world_s *world)
Definition: pr_skelobj.c:1468
qboolean Q1BSP_RecursiveHullCheck(hull_t *hull, int num, const vec3_t p1, const vec3_t p2, unsigned int hitcontents, struct trace_s *trace)
Definition: q1bsp.c:881
size_t Fragment_ClipPlaneToBrush(vecV_t *points, size_t maxpoints, void *planes, size_t planestride, size_t numplanes, vec4_t face)
Definition: q1bsp.c:84
void CMQ3_SetAreaPortalState(model_t *mod, unsigned int area1, unsigned int area2, qboolean open)
subbsp_t
Definition: gl_model.h:896
@ sb_long2
Definition: gl_model.h:896
@ sb_long1
Definition: gl_model.h:896
@ sb_none
Definition: gl_model.h:896
@ sb_quake64
Definition: gl_model.h:896
void CM_Init(void)
Definition: gl_q2bsp.c:7916
void Q1BSP_GenerateShadowMesh(struct model_s *model, struct dlight_s *dl, const qbyte *lightvis, qbyte *litvis, void(*callback)(msurface_t *surf))
Definition: gl_shadow.c:927
qboolean CM_SetAreaPortalState(struct model_s *mod, int portalnum, qboolean open)
int CM_HeadnodeForBox(struct model_s *mod, const vec3_t mins, const vec3_t maxs)
void CMQ2_SetAreaPortalState(model_t *mod, unsigned int portalnum, qboolean open)
void rag_lerpdeltaent(lerpents_t *le, unsigned int bonecount, short *newstate, float frac, short *oldstate)
Definition: pr_skelobj.c:1514
void rag_removedeltaent(lerpents_t *le)
Definition: pr_skelobj.c:1492
boneidx_t bone_vec4_t[4]
Definition: gl_model.h:75
void Q1BSP_CheckHullNodes(hull_t *hull)
Definition: q1bsp.c:663
struct doll_s * rag_createdollfromstring(struct model_s *mod, const char *fname, int numbones, const char *file)
Definition: pr_skelobj.c:633
pvsmerge_t
Definition: gl_model.h:262
@ PVM_FAST
Definition: gl_model.h:263
@ PVM_REPLACE
Definition: gl_model.h:265
@ PVM_MERGE
Definition: gl_model.h:264
qboolean VARGS CM_AreasConnected(struct model_s *mod, unsigned int area1, unsigned int area2)
void CategorizePlane(mplane_t *plane)
Definition: gl_q2bsp.c:448
void CalcSurfaceExtents(model_t *mod, msurface_t *s)
Definition: gl_q2bsp.c:112
dtrivertx_t * poseverts[MAXALIASFRAMES]
void Q1BSP_SetModelFuncs(struct model_s *mod)
Definition: q1bsp.c:2518
int CM_LeafContents(struct model_s *mod, int leafnum)
void GL_SelectEBO(int vbo)
Definition: gl_backend.c:496
modtype_t
Definition: gl_model.h:894
@ mod_heightmap
Definition: gl_model.h:894
@ mod_halflife
Definition: gl_model.h:894
@ mod_dummy
Definition: gl_model.h:894
@ mod_alias
Definition: gl_model.h:894
@ mod_brush
Definition: gl_model.h:894
@ mod_sprite
Definition: gl_model.h:894
qbyte * CM_ClusterPHS(struct model_s *mod, int cluster, pvsbuffer_t *buffer)
int CM_WriteAreaBits(struct model_s *mod, qbyte *buffer, int area, qboolean merge)
struct mtriangle_s mtriangle_t
void Terr_Init(void)
Definition: gl_heightmap.c:9141
void GL_DeselectVAO(void)
Definition: gl_backend.c:488
void CL_Parse_BrushEdit(void)
Definition: gl_heightmap.c:6714
struct msurface_s msurface_t
void Q1BSP_LoadBrushes(struct model_s *model, bspx_header_t *bspx, void *mod_base)
Definition: q1bsp.c:1393
vec3_t * points
Definition: gl_shadow.c:1323
unsigned int maxpoints
Definition: gl_shadow.c:1322
unsigned int numpoints
Definition: gl_shadow.c:1321
static EGLSurface EGLSurface EGLContext ctx
Definition: gl_videgl.c:47
struct @319::xidevinfo::@353 axis[2]
static CONST PIXELFORMATDESCRIPTOR *static int
Definition: gl_vidnt.c:222
GLuint GLcharARB * name
Definition: glquake.h:155
GLint size
Definition: glquake.h:157
GLfloat GLfloat GLfloat GLfloat w
Definition: glquake.h:158
const GLfloat * v
Definition: glsupp.h:466
GLint GLfloat * parms
Definition: glsupp.h:612
static png_size_t start
Definition: image.c:1419
keynum_t pos
Definition: in_sdl.c:105
char fname[MAX_QPATH]
Definition: m_mp3.c:160
synctype_t
Definition: modelgen.h:53
char ** data
Definition: p_script.c:63
unsigned int bit
Definition: pr_cmds.c:204
int const void * p
Definition: pr_lua.c:232
int b
Definition: pr_lua.c:242
int const char * e
Definition: pr_lua.c:259
const char * file
Definition: qcc_pr_lex.c:2518
shader_t * shader
Definition: r_2d.c:51
int lastid
Definition: r_2d.c:49
cm_surface_t * surf
Definition: r_d3.c:697
vec3_t end
Definition: r_d3.c:692
unsigned short index_t
Definition: render.h:56
entity_t * currententity
Definition: renderer.c:22
enum uploadfmt uploadfmt_t
static ALC_API ALCvoid * buffer
Definition: snd_al.c:259
static int void * ptr
Definition: snd_dma.c:483
spriteframetype_t
Definition: spritegn.h:115
Definition: gl_model.h:716
synctype_t synctype
Definition: gl_model.h:729
int skinwidth
Definition: gl_model.h:724
int triangles
Definition: gl_model.h:737
int poseverts
Definition: gl_model.h:733
int version
Definition: gl_model.h:718
int numframes
Definition: gl_model.h:728
int numtris
Definition: gl_model.h:727
int numskins
Definition: gl_model.h:723
int posedata
Definition: gl_model.h:734
int commands
Definition: gl_model.h:739
float boundingradius
Definition: gl_model.h:721
int skinheight
Definition: gl_model.h:725
vec3_t scale
Definition: gl_model.h:719
vec3_t scale_origin
Definition: gl_model.h:720
int baseposedata
Definition: gl_model.h:736
int numposes
Definition: gl_model.h:732
int flags
Definition: gl_model.h:730
float size
Definition: gl_model.h:731
int numverts
Definition: gl_model.h:726
int ident
Definition: gl_model.h:717
vec3_t eyeposition
Definition: gl_model.h:722
Definition: gl_model.h:133
mesh_t ** mesh
Definition: gl_model.h:134
unsigned int firstmesh
Definition: gl_model.h:137
struct texnums_s * skin
Definition: gl_model.h:152
entity_t * ent
Definition: gl_model.h:141
shader_t * shader
Definition: gl_model.h:139
lightstyleindex_t lmlightstyle[MAXRLIGHTMAPS]
Definition: gl_model.h:146
unsigned int lightidx
Definition: gl_model.h:172
unsigned char vtlightstyle[MAXRLIGHTMAPS]
Definition: gl_model.h:147
struct vbo_s * vbo
Definition: gl_model.h:140
unsigned int maxmeshes
Definition: gl_model.h:149
unsigned int ebobatch
Definition: gl_model.h:163
unsigned int surface
Definition: gl_model.h:181
struct texture_s * texture
Definition: gl_model.h:151
struct batch_s * next
Definition: gl_model.h:135
short lightmap[MAXRLIGHTMAPS]
Definition: gl_model.h:145
struct mfog_s * fog
Definition: gl_model.h:142
void(* buildmeshes)(struct batch_s *b)
Definition: gl_model.h:154
struct batch_s::@298::@300 dlight
unsigned int shadowbatch
Definition: gl_model.h:164
mesh_t * meshptr
Definition: gl_model.h:192
unsigned int meshes
Definition: gl_model.h:136
unsigned int recursefirst[R_MAX_RECURSE-2]
Definition: gl_model.h:156
unsigned int lightmode
Definition: gl_model.h:173
mesh_t meshbuf
Definition: gl_model.h:191
image_t * envmap
Definition: gl_model.h:143
struct batch_s::@298::@302 poly
vec4_t plane
Definition: gl_model.h:168
unsigned short surfrefs[sizeof(mesh_t)/sizeof(unsigned short)]
Definition: gl_model.h:177
unsigned int flags
Definition: gl_model.h:150
struct batch_s::@298::@301 alias
struct batch_s::@298::@299 bmodel
Definition: gl_model.h:947
quint16_t lmsize[2]
Definition: gl_model.h:948
vec4_t lmvecs[2]
Definition: gl_model.h:950
quint32_t lmoffset
Definition: gl_model.h:949
Definition: gl_model.h:445
int cubesize
Definition: gl_model.h:447
vec3_t origin
Definition: gl_model.h:446
Definition: gl_model.h:859
Definition: modelgen.h:116
Definition: gl_model.h:953
vec4_t lmvecs[2]
Definition: gl_model.h:954
float lmvecscale[2]
Definition: gl_model.h:955
Definition: gl_model.h:587
int firstclipnode
Definition: gl_model.h:590
vec3_t clip_maxs
Definition: gl_model.h:593
mclipnode_t * clipnodes
Definition: gl_model.h:588
int lastclipnode
Definition: gl_model.h:591
vec3_t clip_mins
Definition: gl_model.h:592
int available
Definition: gl_model.h:594
mplane_t * planes
Definition: gl_model.h:589
Definition: gl_model.h:1151
unsigned int stylesperface
Definition: gl_model.h:1156
unsigned char * styles8
Definition: gl_model.h:1154
unsigned char defaultshift
Definition: gl_model.h:1158
unsigned int * offsets
Definition: gl_model.h:1152
unsigned short * styles16
Definition: gl_model.h:1155
unsigned char * shifts
Definition: gl_model.h:1157
unsigned short * extents
Definition: gl_model.h:1153
Definition: gl_model.h:678
dtrivertx_t bboxmax
Definition: gl_model.h:683
int firstpose
Definition: gl_model.h:679
vec3_t scale_origin
Definition: gl_model.h:686
dtrivertx_t bboxmin
Definition: gl_model.h:682
vec3_t scale
Definition: gl_model.h:685
float interval
Definition: gl_model.h:681
int numposes
Definition: gl_model.h:680
int frame
Definition: gl_model.h:688
Definition: gl_model.h:700
int numframes
Definition: gl_model.h:701
int intervals
Definition: gl_model.h:702
Definition: gl_model.h:693
dtrivertx_t bboxmin
Definition: gl_model.h:694
int frame
Definition: gl_model.h:696
dtrivertx_t bboxmax
Definition: gl_model.h:695
Definition: bspfile.h:236
Definition: gl_model.h:825
int num_st
Definition: gl_model.h:835
int framesize
Definition: gl_model.h:831
int skinheight
Definition: gl_model.h:830
int ofs_skins
Definition: gl_model.h:840
int ident
Definition: gl_model.h:826
int ofs_frames
Definition: gl_model.h:843
int ofs_glcmds
Definition: gl_model.h:844
int num_frames
Definition: gl_model.h:838
int num_glcmds
Definition: gl_model.h:837
int num_tris
Definition: gl_model.h:836
int num_skins
Definition: gl_model.h:833
int ofs_st
Definition: gl_model.h:841
int ofs_tris
Definition: gl_model.h:842
int ofs_end
Definition: gl_model.h:845
int skinwidth
Definition: gl_model.h:829
int version
Definition: gl_model.h:827
int num_xyz
Definition: gl_model.h:834
Definition: gl_model.h:807
Definition: gl_model.h:781
short t
Definition: gl_model.h:783
short s
Definition: gl_model.h:782
Definition: gl_model.h:787
Definition: gl_model.h:793
qbyte lightnormalindex
Definition: gl_model.h:795
Definition: gl_model.h:410
Definition: gl_model.h:450
texid_t image
Definition: gl_model.h:454
int cubesize
Definition: gl_model.h:452
vec3_t origin
Definition: gl_model.h:451
Definition: gl_model.h:90
unsigned int vbofirstvert
Definition: gl_model.h:95
unsigned int vbofirstelement
Definition: gl_model.h:96
float xyz_blendw[2]
Definition: gl_model.h:102
vec3_t * snormals_array
Definition: gl_model.h:108
vec3_t * normals_array
Definition: gl_model.h:107
const float * bones
Definition: gl_model.h:122
qboolean istrifan
Definition: gl_model.h:121
index_t * indexes
Definition: gl_model.h:115
vecV_t * xyz2_array
Definition: gl_model.h:106
avec4_t * colors4f_array[MAXRLIGHTMAPS]
Definition: gl_model.h:112
bone_vec4_t * bonenums
Definition: gl_model.h:124
int * trneighbors
Definition: gl_model.h:118
vec2_t * st_array
Definition: gl_model.h:110
vecV_t * xyz_array
Definition: gl_model.h:105
vec3_t * trnormals
Definition: gl_model.h:119
vec4_t * boneweights
Definition: gl_model.h:125
int numvertexes
Definition: gl_model.h:91
int numindexes
Definition: gl_model.h:92
byte_vec4_t * colors4b_array
Definition: gl_model.h:113
vec3_t * tnormals_array
Definition: gl_model.h:109
int numbones
Definition: gl_model.h:123
vec2_t * lmst_array[MAXRLIGHTMAPS]
Definition: gl_model.h:111
Definition: gl_model.h:434
int numplanes
Definition: gl_model.h:440
struct shader_s * shader
Definition: gl_model.h:436
mplane_t ** planes
Definition: gl_model.h:441
char shadername[MAX_QPATH]
Definition: gl_model.h:435
mplane_t * visibleplane
Definition: gl_model.h:438
Definition: gl_model.h:539
int area
Definition: gl_model.h:558
int cluster
Definition: gl_model.h:557
int contents
Definition: gl_model.h:541
qbyte ambient_sound_level[NUM_AMBIENTS]
Definition: gl_model.h:554
msurface_t ** firstmarksurface
Definition: gl_model.h:552
qbyte * compressed_vis
Definition: gl_model.h:550
unsigned int firstleafpatch
Definition: gl_model.h:565
float minmaxs[6]
Definition: gl_model.h:545
unsigned int numleafpatches
Definition: gl_model.h:566
int nummarksurfaces
Definition: gl_model.h:553
unsigned int firstleafbrush
Definition: gl_model.h:559
unsigned int firstleafcmesh
Definition: gl_model.h:563
unsigned int numleafcmeshes
Definition: gl_model.h:564
unsigned int numleafbrushes
Definition: gl_model.h:560
struct mnode_s * parent
Definition: gl_model.h:547
int shadowframe
Definition: gl_model.h:543
int visframe
Definition: gl_model.h:542
Definition: gl_model.h:572
struct q2cbrush_s * brushes
Definition: gl_model.h:580
unsigned int visleafs
Definition: gl_model.h:576
unsigned int firstface
Definition: gl_model.h:577
unsigned int numbrushes
Definition: gl_model.h:581
Definition: gl_model.h:514
mplane_t * plane
Definition: gl_model.h:526
struct mnode_s * parent
Definition: gl_model.h:522
unsigned int numsurfaces
Definition: gl_model.h:533
int visframe
Definition: gl_model.h:517
int contents
Definition: gl_model.h:516
int shadowframe
Definition: gl_model.h:518
int childnum[2]
Definition: gl_model.h:529
float minmaxs[6]
Definition: gl_model.h:520
struct mnode_s * children[2]
Definition: gl_model.h:527
unsigned int firstsurface
Definition: gl_model.h:532
Definition: gl_model.h:972
int numtextures
Definition: gl_model.h:1056
qbyte * lightdata
Definition: gl_model.h:1062
void * vis
Definition: gl_model.h:1061
qboolean pushdepth
Definition: gl_model.h:979
qboolean deluxemapping_modelspace
Definition: gl_model.h:1113
int entitiescrc
Definition: gl_model.h:1078
mfog_t * fogs
Definition: gl_model.h:1066
int surfstyles
Definition: gl_model.h:1102
msurface_t ** marksurfaces
Definition: gl_model.h:1052
size_t numentityinfo
Definition: gl_model.h:1076
fromgame_t fromgame
Definition: gl_model.h:985
mmodel_t * submodels
Definition: gl_model.h:1016
int mergeh
Definition: gl_model.h:1099
modelfuncs_t funcs
Definition: gl_model.h:1122
qbyte * pvs
Definition: gl_model.h:1059
portal_t * portal
Definition: gl_model.h:1119
int numframes
Definition: gl_model.h:987
mnode_t * nodes
Definition: gl_model.h:1036
float maxlod
Definition: gl_model.h:1001
int numclusters
Definition: gl_model.h:1022
batch_t * batches[SHADER_SORT_COUNT]
Definition: gl_model.h:1092
struct surfedgenormals_s * surfedgenormals
Definition: gl_model.h:1029
qbyte * visdata
Definition: gl_model.h:1060
unsigned int numbatches
Definition: gl_model.h:1093
struct facelmvecs_s * facelmvecs
Definition: gl_model.h:1030
void * meshinfo
Definition: gl_model.h:1126
mleaf_t * leafs
Definition: gl_model.h:1024
char * keyvals
Definition: gl_model.h:1075
int nummarksurfaces
Definition: gl_model.h:1051
shader_t * simpleskin[4]
Definition: gl_model.h:1083
int width
Definition: gl_model.h:1100
mtexinfo_t * texinfo
Definition: gl_model.h:1040
const char * entities_raw
Definition: gl_model.h:1077
int numclipnodes
Definition: gl_model.h:1048
unsigned checksum2
Definition: gl_model.h:1117
struct skytriblock_s * skytrimem
Definition: gl_model.h:1073
qboolean tainted
Definition: gl_model.h:978
int datasequence
Definition: gl_model.h:975
qbyte * deluxdata
Definition: gl_model.h:1063
synctype_t synctype
Definition: gl_model.h:988
q3lightgridinfo_t * lightgrid
Definition: gl_model.h:1065
hull_t hulls[MAX_MAP_HULLSM]
Definition: gl_model.h:1054
int numplanes
Definition: gl_model.h:1018
@ LM_RGB8
Definition: gl_model.h:1109
int traildefaultindex
Definition: gl_model.h:993
void * terrain
Definition: gl_model.h:1091
mnode_t * rootnode
Definition: gl_model.h:1037
int particleeffect
Definition: gl_model.h:991
mplane_t * planes
Definition: gl_model.h:1019
qboolean deluxemapping
Definition: gl_model.h:1112
char publicname[MAX_QPATH]
Definition: gl_model.h:974
struct model_s::@343 lightmaps
vec3_t mins
Definition: gl_model.h:998
zonegroup_t memgroup
Definition: gl_model.h:1128
unsigned int id
Definition: gl_model.h:1075
int count
Definition: gl_model.h:1097
qbyte * phs
Definition: gl_model.h:1059
int numleafs
Definition: gl_model.h:1023
unsigned checksum
Definition: gl_model.h:1116
struct model_s::@339 * entityinfo
struct doll_s * dollinfo
Definition: gl_model.h:1080
int maxstyle
Definition: gl_model.h:1103
vbo_t * vbo
Definition: gl_model.h:1087
float skytime
Definition: gl_model.h:1072
int numnodes
Definition: gl_model.h:1035
int numsubmodels
Definition: gl_model.h:1015
vec3_t * normals
Definition: gl_model.h:1028
vec3_t clipmaxs
Definition: gl_model.h:1007
void * cnodes
Definition: gl_model.h:1009
int numsurfaces
Definition: gl_model.h:1042
struct model_s::@341 * shadowbatches
int numtexinfo
Definition: gl_model.h:1039
int numsurfedges
Definition: gl_model.h:1045
@ LM_E5BGR9
Definition: gl_model.h:1110
int firstmodelsurface
Definition: gl_model.h:1013
mclipnode_t * clipnodes
Definition: gl_model.h:1049
int numedges
Definition: gl_model.h:1032
unsigned lightdatasize
Definition: gl_model.h:1064
@ LM_L8
Definition: gl_model.h:1108
enum model_s::@343::@347 fmt
struct skytris_s * skytris
Definition: gl_model.h:1071
vec3_t maxs
Definition: gl_model.h:998
int engineflags
Definition: gl_model.h:976
msurface_t * surfaces
Definition: gl_model.h:1043
int mergew
Definition: gl_model.h:1098
searchpathfuncs_t * archive
Definition: gl_model.h:1127
modtype_t type
Definition: gl_model.h:984
int first
Definition: gl_model.h:1096
time_t mtime
Definition: gl_model.h:980
unsigned numenvmaps
Definition: gl_model.h:1069
int * surfedges
Definition: gl_model.h:1046
menvmap_t * envmaps
Definition: gl_model.h:1068
int camerabone
Definition: gl_model.h:1081
float clampscale
Definition: gl_model.h:1000
mvertex_t * vertexes
Definition: gl_model.h:1027
int loadstate
Definition: gl_model.h:977
float radius
Definition: gl_model.h:999
vbo_t * vbos
Definition: gl_model.h:1090
medge_t * edges
Definition: gl_model.h:1033
int numvertexes
Definition: gl_model.h:1026
int nummodelsurfaces
Definition: gl_model.h:1013
qboolean clipbox
Definition: gl_model.h:1006
unsigned int numportals
Definition: gl_model.h:1120
size_t pvsbytes
Definition: gl_model.h:1021
int height
Definition: gl_model.h:1101
struct model_s * submodelof
Definition: gl_model.h:982
int flags
Definition: gl_model.h:990
vec3_t clipmins
Definition: gl_model.h:1007
int numshadowbatches
Definition: gl_model.h:1089
texture_t * tex
Definition: gl_model.h:1086
int particletrail
Definition: gl_model.h:992
int numfogs
Definition: gl_model.h:1067
texture_t ** textures
Definition: gl_model.h:1057
Definition: gl_model.h:268
Definition: gl_model.h:653
int maxheight
Definition: gl_model.h:656
int numframes
Definition: gl_model.h:657
float beamlength
Definition: gl_model.h:658
int maxwidth
Definition: gl_model.h:655
int type
Definition: gl_model.h:654
Definition: gl_model.h:628
float up
Definition: gl_model.h:629
float right
Definition: gl_model.h:629
float left
Definition: gl_model.h:629
qboolean lit
Definition: gl_model.h:631
shader_t * shader
Definition: gl_model.h:632
qboolean xmirror
Definition: gl_model.h:630
float down
Definition: gl_model.h:629
image_t * image
Definition: gl_model.h:633
Definition: gl_model.h:647
spriteframetype_t type
Definition: gl_model.h:648
mspriteframe_t * frameptr
Definition: gl_model.h:649
Definition: gl_model.h:640
float * intervals
Definition: gl_model.h:642
int numframes
Definition: gl_model.h:641
Definition: gl_model.h:672
int s
Definition: gl_model.h:673
int t
Definition: gl_model.h:674
Definition: gl_model.h:459
int cached_colour[MAXCPULIGHTMAPS]
Definition: gl_model.h:494
qboolean cached_dlight
Definition: gl_model.h:487
int visframe
Definition: gl_model.h:478
int cached_light[MAXCPULIGHTMAPS]
Definition: gl_model.h:493
image_t * envmap
Definition: gl_model.h:472
unsigned short lmshift
Definition: gl_model.h:466
int firstedge
Definition: gl_model.h:463
batch_t * sbatch
Definition: gl_model.h:476
mtexinfo_t * texinfo
Definition: gl_model.h:477
int dlightframe
Definition: gl_model.h:486
mesh_t * mesh
Definition: gl_model.h:474
qbyte vlstyles[MAXRLIGHTMAPS]
Definition: gl_model.h:492
unsigned short light_t[MAXRLIGHTMAPS]
Definition: gl_model.h:470
int lightmaptexturenums[MAXRLIGHTMAPS]
Definition: gl_model.h:490
int texturemins[2]
Definition: gl_model.h:467
mfog_t * fog
Definition: gl_model.h:473
short extents[2]
Definition: gl_model.h:468
qbyte * samples
Definition: gl_model.h:498
lightstyleindex_t styles[MAXCPULIGHTMAPS]
Definition: gl_model.h:491
mplane_t * plane
Definition: gl_model.h:460
int shadowframe
Definition: gl_model.h:480
unsigned short numedges
Definition: gl_model.h:464
int flags
Definition: gl_model.h:461
dlightbitmask_t dlightbits
Definition: gl_model.h:485
qboolean stained
Definition: gl_model.h:496
unsigned short light_s[MAXRLIGHTMAPS]
Definition: gl_model.h:470
Definition: gl_model.h:415
int numframes
Definition: gl_model.h:422
int flags
Definition: gl_model.h:419
float vecscale[2]
Definition: gl_model.h:417
vec4_t vecs[2]
Definition: gl_model.h:416
struct mtexinfo_s * next
Definition: gl_model.h:423
texture_t * texture
Definition: gl_model.h:418
Definition: gl_model.h:707
int xyz_index[3]
Definition: gl_model.h:708
int pad[2]
Definition: gl_model.h:711
int st_index[3]
Definition: gl_model.h:709
Definition: gl_model.h:311
vec3_t position
Definition: gl_model.h:312
Definition: gl_terrain.h:437
int model_t * mod
Definition: gl_terrain.h:441
Definition: gl_model.h:935
vec3_t min
Definition: gl_model.h:940
float dist
Definition: gl_model.h:939
int numpoints
Definition: gl_model.h:942
vec4_t * points
Definition: gl_model.h:943
vec3_t max
Definition: gl_model.h:941
vec3_t plane
Definition: gl_model.h:938
int walkno
Definition: gl_model.h:936
Definition: gl_model.h:257
size_t buffersize
Definition: gl_model.h:259
qbyte * buffer
Definition: gl_model.h:258
Definition: bspfile.h:939
Definition: gl_model.h:874
vec3_t gridMins
Definition: gl_model.h:876
rbspgridlight_t * rbspelements
Definition: gl_model.h:880
vec3_t gridSize
Definition: gl_model.h:877
int numlightgridelems
Definition: gl_model.h:878
unsigned short * rbspindexes
Definition: gl_model.h:881
dq3gridlight_t * lightgrid
Definition: gl_model.h:883
Definition: gl_model.h:866
Definition: gl_model.h:958
quint32_t s
Definition: gl_model.h:960
quint32_t n
Definition: gl_model.h:959
quint32_t t
Definition: gl_model.h:961
Definition: gl_model.h:365
unsigned int srcheight
Definition: gl_model.h:378
unsigned vwidth
Definition: gl_model.h:367
unsigned vheight
Definition: gl_model.h:367
struct shader_s * shader
Definition: gl_model.h:369
char * partname
Definition: gl_model.h:370
unsigned int srcwidth
Definition: gl_model.h:378
unsigned int anim_min
Definition: gl_model.h:373
unsigned int anim_total
Definition: gl_model.h:372
qbyte * palette
Definition: gl_model.h:380
struct texture_s * anim_next
Definition: gl_model.h:374
struct texture_s * alternate_anims
Definition: gl_model.h:375
unsigned int anim_max
Definition: gl_model.h:373
uploadfmt_t srcfmt
Definition: gl_model.h:377
qbyte * srcdata
Definition: gl_model.h:379
Definition: gl_model.h:320
unsigned int vaodynamic
Definition: gl_model.h:333
int vao
Definition: gl_model.h:332
void * vbomem
Definition: gl_model.h:351
unsigned int numbones
Definition: gl_model.h:356
unsigned int numvisible
Definition: gl_model.h:321
vboarray_t bonenums
Definition: gl_model.h:347
void * ebomem
Definition: gl_model.h:352
vboarray_t colours[MAXRLIGHTMAPS]
Definition: gl_model.h:345
unsigned int vbobones
Definition: gl_model.h:354
vboarray_t texcoord
Definition: gl_model.h:337
vboarray_t lmcoord[MAXRLIGHTMAPS]
Definition: gl_model.h:338
vboarray_t coord2
Definition: gl_model.h:336
unsigned int vaoenabled
Definition: gl_model.h:334
struct vbo_s * next
Definition: gl_model.h:358
const float * bones
Definition: gl_model.h:355
unsigned int meshcount
Definition: gl_model.h:326
qboolean colours_bytes
Definition: gl_model.h:344
vboarray_t normals
Definition: gl_model.h:340
vboarray_t indicies
Definition: gl_model.h:329
unsigned int vertcount
Definition: gl_model.h:325
vboarray_t coord
Definition: gl_model.h:335
struct msurface_s ** meshlist
Definition: gl_model.h:327
vboarray_t boneweights
Definition: gl_model.h:349
void * vertdata
Definition: gl_model.h:330
struct msurface_s ** vislist
Definition: gl_model.h:322
vboarray_t tvector
Definition: gl_model.h:342
vboarray_t svector
Definition: gl_model.h:341
unsigned int indexcount
Definition: gl_model.h:324
Definition: pr_common.h:13
Definition: gl_model.h:926
int numsidedefs
Definition: gl_model.h:929
int numsectors
Definition: gl_model.h:930
int numlinedefs
Definition: gl_model.h:928