![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Functions | |
void | Mod_IDS2_Load (model_t *mod, void *buffer, void *bufferend) |
void | Mod_IDSP_Load (model_t *mod, void *buffer, void *bufferend) |
static void | Mod_Sprite_SharedSetup (const unsigned char *datapointer, int version, const unsigned int *palette, qbool additive) |
void | Mod_SpriteInit (void) |
static void | Mod_SpriteSetupTexture (texture_t *texture, skinframe_t *skinframe, qbool fullbright, qbool additive) |
Variables | |
cvar_t | gl_texturecompression_sprites |
cvar_t | r_labelsprites_roundtopixels = {CF_CLIENT | CF_ARCHIVE, "r_labelsprites_roundtopixels", "1", "try to make label sprites sharper by rounding their size to 0.5x or 1x and by rounding their position to whole pixels if possible"} |
cvar_t | r_labelsprites_scale = {CF_CLIENT | CF_ARCHIVE, "r_labelsprites_scale", "1", "global scale to apply to label sprites before conversion to HUD coordinates"} |
cvar_t | r_mipsprites = {CF_CLIENT | CF_ARCHIVE, "r_mipsprites", "1", "mipmaps sprites so they render faster in the distance and do not display noise artifacts"} |
cvar_t | r_overheadsprites_perspective = {CF_CLIENT | CF_ARCHIVE, "r_overheadsprites_perspective", "5", "fake perspective effect for SPR_OVERHEAD sprites"} |
cvar_t | r_overheadsprites_pushback = {CF_CLIENT | CF_ARCHIVE, "r_overheadsprites_pushback", "15", "how far to pull the SPR_OVERHEAD sprites toward the eye (used to avoid intersections with 3D models)"} |
cvar_t | r_overheadsprites_scalex = {CF_CLIENT | CF_ARCHIVE, "r_overheadsprites_scalex", "1", "additional scale for overhead sprites for x axis"} |
cvar_t | r_overheadsprites_scaley = {CF_CLIENT | CF_ARCHIVE, "r_overheadsprites_scaley", "1", "additional scale for overhead sprites for y axis"} |
cvar_t | r_track_sprites = {CF_CLIENT | CF_ARCHIVE, "r_track_sprites", "1", "track SPR_LABEL* sprites by putting them as indicator at the screen border to rotate to"} |
cvar_t | r_track_sprites_flags = {CF_CLIENT | CF_ARCHIVE, "r_track_sprites_flags", "1", "1: Rotate sprites accordingly, 2: Make it a continuous rotation"} |
cvar_t | r_track_sprites_scaleh = {CF_CLIENT | CF_ARCHIVE, "r_track_sprites_scaleh", "1", "height scaling of tracked sprites"} |
cvar_t | r_track_sprites_scalew = {CF_CLIENT | CF_ARCHIVE, "r_track_sprites_scalew", "1", "width scaling of tracked sprites"} |
Definition at line 378 of file model_sprite.c.
References model_t::animscenes, buffer, ca_dedicated, cls, CON_ERROR, Con_Printf(), model_t::data_textures, mspriteframe_t::down, dpsnprintf(), model_t::Draw, model_t::DrawDepth, model_t::DrawLight, animscene_t::firstframe, animscene_t::framecount, animscene_t::framerate, dsprite2_t::frames, dsprite2frame_t::height, height, Host_Error(), i, int(), cvar_t::integer, surfmesh_t::isanimated, mspriteframe_t::left, LittleLong, loadmodel, animscene_t::loop, max, MAX_QPATH, Mem_Alloc, model_t::mempool, mod_sprite, Mod_SpriteSetupTexture(), model_t::modeldatatypestring, animscene_t::name, dsprite2frame_t::name, model_t::name, model_t::normalmaxs, model_t::normalmins, NULL, model_t::num_textures, model_t::num_texturesperskin, dsprite2_t::numframes, model_t::numframes, origin, dsprite2frame_t::origin_x, dsprite2frame_t::origin_y, r_mipsprites, R_Model_Sprite_Draw(), R_SkinFrame_LoadExternal(), R_SkinFrame_LoadMissing(), model_t::radius, model_t::radius2, mspriteframe_t::right, model_t::rotatedmaxs, model_t::rotatedmins, SPR_VP_PARALLEL, model_sprite_t::sprdata_frames, model_t::sprite, SPRITE2_VERSION, model_sprite_t::sprnum_type, sqrt(), ST_SYNC, client_static_t::state, model_t::surfmesh, model_t::synctype, TEXF_ALPHA, TEXF_CLAMP, TEXF_COMPRESS, TEXF_ISSPRITE, TEXF_MIPMAP, TEXF_PICMIP, model_t::type, mspriteframe_t::up, dsprite2_t::version, version, dsprite2frame_t::width, width, x, y, model_t::yawmaxs, and model_t::yawmins.
Definition at line 267 of file model_sprite.c.
References model_t::animscenes, buffer, model_t::Draw, model_t::DrawDepth, model_t::DrawLight, animscene_t::framecount, Host_Error(), i, surfmesh_t::isanimated, LittleLong, loadmodel, mod_sprite, Mod_Sprite_SharedSetup(), model_t::modeldatatypestring, model_t::name, NULL, dsprite_t::numframes, dspritehl_t::numframes, model_t::numframes, R_Model_Sprite_Draw(), dspritehl_t::rendermode, SPRHL_ADDITIVE, SPRHL_ALPHATEST, SPRHL_INDEXALPHA, SPRHL_OPAQUE, model_t::sprite, SPRITE32_VERSION, SPRITE_VERSION, SPRITEHL_VERSION, model_sprite_t::sprnum_type, model_t::surfmesh, dsprite_t::synctype, dspritehl_t::synctype, model_t::synctype, dsprite_t::type, dspritehl_t::type, model_t::type, dsprite_t::version, dspritehl_t::version, and version.
|
static |
Definition at line 91 of file model_sprite.c.
References model_t::animscenes, ca_dedicated, cls, model_t::data_textures, mspriteframe_t::down, dpsnprintf(), animscene_t::firstframe, animscene_t::framecount, animscene_t::framerate, gl_texturecompression, gl_texturecompression_sprites, dspriteframe_t::height, height, Host_Error(), i, Image_Copy8bitBGRA(), int(), cvar_t::integer, dspriteinterval_t::interval, mspriteframe_t::left, LittleFloat, LittleLong, loadmodel, animscene_t::loop, max, MAX_QPATH, Mem_Alloc, Mem_Free, model_t::mempool, Mod_SpriteSetupTexture(), animscene_t::name, model_t::name, name, model_t::normalmaxs, model_t::normalmins, NULL, model_t::num_textures, model_t::num_texturesperskin, dspritegroup_t::numframes, model_t::numframes, dspriteframe_t::origin, origin, palette_bgra_transparent, pixels, r_mipsprites, R_SkinFrame_LoadExternal(), R_SkinFrame_LoadInternalBGRA(), R_SkinFrame_LoadMissing(), model_t::radius, model_t::radius2, mspriteframe_t::right, model_t::rotatedmaxs, model_t::rotatedmins, SPR_SINGLE, model_sprite_t::sprdata_frames, model_t::sprite, SPRITE32_VERSION, sqrt(), client_static_t::state, TEXF_ALPHA, TEXF_CLAMP, TEXF_COMPRESS, TEXF_ISSPRITE, TEXF_MIPMAP, TEXF_PICMIP, dspriteframetype_t::type, mspriteframe_t::up, version, dspriteframe_t::width, width, x, y, model_t::yawmaxs, and model_t::yawmins.
Referenced by Mod_IDSP_Load().
Definition at line 45 of file model_sprite.c.
References Cvar_RegisterVariable(), r_labelsprites_roundtopixels, r_labelsprites_scale, r_mipsprites, r_overheadsprites_perspective, r_overheadsprites_pushback, r_overheadsprites_scalex, r_overheadsprites_scaley, r_track_sprites, r_track_sprites_flags, r_track_sprites_scaleh, and r_track_sprites_scalew.
Referenced by Mod_Init().
|
static |
Definition at line 60 of file model_sprite.c.
References skinframe_t::hasalpha, loadmodel, MATERIALFLAG_ADD, MATERIALFLAG_ALPHA, MATERIALFLAG_BLENDED, MATERIALFLAG_FULLBRIGHT, MATERIALFLAG_NOSHADOW, MATERIALFLAG_WALL, model_t::mempool, Mod_CreateShaderPass(), OFFSETMAPPING_OFF, R_SkinFrame_LoadMissing(), SUPERCONTENTS_OPAQUE, SUPERCONTENTS_SOLID, texture, and TRANSPARENTSORT_DISTANCE.
Referenced by Mod_IDS2_Load(), and Mod_Sprite_SharedSetup().
|
extern |
Definition at line 48 of file gl_textures.c.
Referenced by Mod_Sprite_SharedSetup(), and R_Textures_Init().
cvar_t r_labelsprites_roundtopixels = {CF_CLIENT | CF_ARCHIVE, "r_labelsprites_roundtopixels", "1", "try to make label sprites sharper by rounding their size to 0.5x or 1x and by rounding their position to whole pixels if possible"} |
Definition at line 30 of file model_sprite.c.
Referenced by Mod_SpriteInit(), and R_Model_Sprite_Draw_TransparentCallback().
cvar_t r_labelsprites_scale = {CF_CLIENT | CF_ARCHIVE, "r_labelsprites_scale", "1", "global scale to apply to label sprites before conversion to HUD coordinates"} |
Definition at line 29 of file model_sprite.c.
Referenced by Mod_SpriteInit(), and R_Model_Sprite_Draw_TransparentCallback().
cvar_t r_mipsprites = {CF_CLIENT | CF_ARCHIVE, "r_mipsprites", "1", "mipmaps sprites so they render faster in the distance and do not display noise artifacts"} |
Definition at line 28 of file model_sprite.c.
Referenced by Mod_IDS2_Load(), Mod_Sprite_SharedSetup(), and Mod_SpriteInit().
cvar_t r_overheadsprites_perspective = {CF_CLIENT | CF_ARCHIVE, "r_overheadsprites_perspective", "5", "fake perspective effect for SPR_OVERHEAD sprites"} |
Definition at line 31 of file model_sprite.c.
Referenced by Mod_SpriteInit(), and R_Model_Sprite_Draw_TransparentCallback().
cvar_t r_overheadsprites_pushback = {CF_CLIENT | CF_ARCHIVE, "r_overheadsprites_pushback", "15", "how far to pull the SPR_OVERHEAD sprites toward the eye (used to avoid intersections with 3D models)"} |
Definition at line 32 of file model_sprite.c.
Referenced by CL_UpdateEntityShading_Entity(), Mod_SpriteInit(), and R_Model_Sprite_Draw_TransparentCallback().
cvar_t r_overheadsprites_scalex = {CF_CLIENT | CF_ARCHIVE, "r_overheadsprites_scalex", "1", "additional scale for overhead sprites for x axis"} |
Definition at line 33 of file model_sprite.c.
Referenced by Mod_SpriteInit(), and R_Model_Sprite_Draw_TransparentCallback().
cvar_t r_overheadsprites_scaley = {CF_CLIENT | CF_ARCHIVE, "r_overheadsprites_scaley", "1", "additional scale for overhead sprites for y axis"} |
Definition at line 34 of file model_sprite.c.
Referenced by Mod_SpriteInit(), and R_Model_Sprite_Draw_TransparentCallback().
cvar_t r_track_sprites = {CF_CLIENT | CF_ARCHIVE, "r_track_sprites", "1", "track SPR_LABEL* sprites by putting them as indicator at the screen border to rotate to"} |
Definition at line 35 of file model_sprite.c.
Referenced by Mod_SpriteInit(), and R_Model_Sprite_Draw_TransparentCallback().
cvar_t r_track_sprites_flags = {CF_CLIENT | CF_ARCHIVE, "r_track_sprites_flags", "1", "1: Rotate sprites accordingly, 2: Make it a continuous rotation"} |
Definition at line 36 of file model_sprite.c.
Referenced by Mod_SpriteInit(), R_RotateSprite(), and R_TrackSprite().
cvar_t r_track_sprites_scaleh = {CF_CLIENT | CF_ARCHIVE, "r_track_sprites_scaleh", "1", "height scaling of tracked sprites"} |
cvar_t r_track_sprites_scalew = {CF_CLIENT | CF_ARCHIVE, "r_track_sprites_scalew", "1", "width scaling of tracked sprites"} |