Alibek Omarov
da4c4bb76a
ref: remove unused sprite_radius global variable
2026-04-19 00:32:45 +05:00
Alibek Omarov
9b24b08df1
ref: gl: remove onlyClientDraw, drawOrtho, RI.params with viewpass flag check. RF_DRAW_OVERVIEW and RF_DRAW_CUBEMAP are cannot be set at the same time, so drawOrtho check replaced by RF_DRAW_CUBEMAP only
2026-04-13 23:13:49 +05:00
Alibek Omarov
148a9a5a8c
ref: gl: replace RI.{vieworg,viewangles,pvsorigin} by ref_viewpass_t fields
2026-04-13 23:13:49 +05:00
Alibek Omarov
1009795d5c
ref: gl: save original viewpass and access viewport and fov through it
2026-04-13 23:13:49 +05:00
Alibek Omarov
ff3a57ae8a
ref: gl: drop legacy mirror viewpass code
2026-04-13 23:13:49 +05:00
Alibek Omarov
f5f6d9bbe4
engine: move sprite texture loading back to engine, only leave rendering for renderer
2026-04-13 13:01:18 +05:00
Alibek Omarov
e76528d929
ref: make sprite and studio global variables static
2026-03-17 00:19:27 +05:00
Alibek Omarov
53e59c2e73
ref: load sprites textures with texgamma applied (like GoldSrc)
2025-05-26 19:09:28 +05:00
Alibek Omarov
706cc16a86
ref: fix -Wmaybe-uninitialized
2025-03-25 17:06:59 +03:00
Alibek Omarov
90bd72d481
ref: gl: disable blend after we're done drawing sprite "lightmap"
...
Fixes translucent brush model on renderfx2.bsp (https://twhl.info/vault/view/6933 )
which so happened to draw after agrunt sprite, that has "lightmap" enabled
2025-03-25 00:52:11 +03:00
Alibek Omarov
4f2249ed8e
ref: support loading sprites with truncated palette
2025-01-22 19:24:00 +03:00
Alibek Omarov
b554d7e215
ref: properly handle unloading sprites that aren't loaded completely
2025-01-22 19:20:20 +03:00
Alibek Omarov
4d003bc13f
ref: remove Mod_LoadMapSprite from RefAPI
2024-11-03 02:59:44 +03:00
Alibek Omarov
f6fa085fe4
ref: gl: replace same struct type memcpys by assignments
2024-07-31 00:06:07 +03:00
Alibek Omarov
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
Alibek Omarov
b41591a527
ref: gl: decreate alphatest value for lightmapped sprites to make them easier to see
...
With 0.5 they're too tiny
2024-06-15 19:07:17 +03:00
Alibek Omarov
4e2708c1ac
engine: bring back texture replacement
2024-06-11 06:16:26 +03:00
mittorn
5568eccc8a
ref/r_sprite: move dframetype to inner block
2024-02-27 04:17:21 +03:00
mittorn
15798aaf52
ref/r_sprite: move dframetype to inner block
2024-02-27 04:04:54 +03:00
mittorn
b0bbcab6b4
ref_soft,ref_gl: fix unaligned read in sprite code
2024-02-27 04:04:54 +03:00
Alibek Omarov
661e60720d
ref: gl: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
4d802d8901
ref: gl: convert to usage of ref_client_t to get client time
2023-12-30 16:36:13 +03:00
Alibek Omarov
7e9f87de2d
engine, ref: eliminate calls to global arrays, instead store array pointers at renderer side
2023-12-06 04:13:03 +03:00
Alibek Omarov
3a57f26351
ref: gl: move ref_gl cvars to static allocation
2023-05-27 21:52:58 +03:00
Andrey Akhmichin
9040c34f48
ref: gl: replace va function calls.
2023-03-11 17:56:05 +03:00
Alibek Omarov
327eb330ed
ref: gl: minimize dependency on internal engine headers
2022-09-10 22:52:52 +03:00
Alibek Omarov
61c142e2db
ref: move renderers into ref subdirectory
2022-09-10 22:52:52 +03:00