![]() |
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 buffer, ca_dedicated, cls, CON_ERROR, Con_Printf(), mspriteframe_t::down, dpsnprintf(), dsprite2_t::frames, dsprite2frame_t::height, height, Host_Error(), int(), mspriteframe_t::left, LittleLong, loadmodel, max, MAX_QPATH, Mem_Alloc, mod(), mod_sprite, Mod_SpriteSetupTexture(), dsprite2frame_t::name, NULL, dsprite2_t::numframes, origin, dsprite2frame_t::origin_x, dsprite2frame_t::origin_y, r_mipsprites, R_Model_Sprite_Draw(), R_SkinFrame_LoadExternal(), R_SkinFrame_LoadMissing(), mspriteframe_t::right, SPR_VP_PARALLEL, SPRITE2_VERSION, sqrt(), ST_SYNC, TEXF_ALPHA, TEXF_CLAMP, TEXF_COMPRESS, TEXF_ISSPRITE, TEXF_MIPMAP, TEXF_PICMIP, mspriteframe_t::up, dsprite2_t::version, version, dsprite2frame_t::width, width, x, and y.
Definition at line 267 of file model_sprite.c.
References buffer, Host_Error(), LittleLong, loadmodel, mod(), mod_sprite, Mod_Sprite_SharedSetup(), NULL, dsprite_t::numframes, dspritehl_t::numframes, R_Model_Sprite_Draw(), dspritehl_t::rendermode, SPRHL_ADDITIVE, SPRHL_ALPHATEST, SPRHL_INDEXALPHA, SPRHL_OPAQUE, SPRITE32_VERSION, SPRITE_VERSION, SPRITEHL_VERSION, dsprite_t::synctype, dspritehl_t::synctype, dsprite_t::type, dspritehl_t::type, dsprite_t::version, dspritehl_t::version, and version.
|
static |
Definition at line 91 of file model_sprite.c.
References ca_dedicated, cls, dpsnprintf(), gl_texturecompression, gl_texturecompression_sprites, dspriteframe_t::height, height, Host_Error(), Image_Copy8bitBGRA(), int(), dspriteinterval_t::interval, LittleFloat, LittleLong, loadmodel, max, MAX_QPATH, Mem_Alloc, Mem_Free, Mod_SpriteSetupTexture(), name, NULL, dspritegroup_t::numframes, dspriteframe_t::origin, origin, palette_bgra_transparent, pixels, r_mipsprites, R_SkinFrame_LoadExternal(), R_SkinFrame_LoadInternalBGRA(), R_SkinFrame_LoadMissing(), SPR_SINGLE, SPRITE32_VERSION, sqrt(), TEXF_ALPHA, TEXF_CLAMP, TEXF_COMPRESS, TEXF_ISSPRITE, TEXF_MIPMAP, TEXF_PICMIP, dspriteframetype_t::type, version, dspriteframe_t::width, width, x, and y.
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, 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"} |