Alibek Omarov
e2cf580818
ref: gl: refactor variable declarations
2026-05-20 23:24:36 +05:00
Alibek Omarov
5e70995989
ref: gl: more maybe unused stuff
2026-05-13 11:13:46 +05:00
Alibek Omarov
e9bdbf2f33
ref: gl: mark maybe unused globals
2026-05-13 10:11:47 +05:00
Alibek Omarov
5b6b372cfe
ref: gl: drop broken minlight/scale cvars for litwater. Keep them for mods. Fix post-merge issues
2026-04-28 11:21:56 +05:00
Alibek Omarov
2f31cf315c
ref: gl: add litwater support
2026-04-28 11:12:44 +05:00
Alibek Omarov
fca4152d5a
ref: gl: fix typo in gl_drawrangeelements
2026-04-26 04:13:50 +05:00
Alibek Omarov
d3b01d313b
ref: gl: do not limit texture units by broken report of shaders extension
2026-04-26 04:12:52 +05:00
Alibek Omarov
21d84ee692
ref: gl: add -glnoerr flag that enables no error context, for possible performance gains
2026-04-26 04:12:52 +05:00
Alibek Omarov
e2d5bea327
ref: cleanup unused functions
2026-04-21 23:10:32 +05:00
Alibek Omarov
044523434d
ref: add R_EntityDynamicLight that calculates lighting for studio and alias models, and also located in libref_common
2026-04-19 01:17:28 +05:00
Alibek Omarov
7324ff43fc
ref: add GL_ResampleTexture to libref_common
2026-04-13 13:01:18 +05:00
Alibek Omarov
d85e7fc2b1
ref: move remaining light functions to libref_common
2026-04-13 13:01:18 +05:00
Alibek Omarov
5aca78951c
ref: move R_PushDlights and R_MarkLights to ref_common
2026-04-13 13:01:18 +05:00
Alibek Omarov
81abae65b5
ref: move RunLightstyles to ref_common
2026-04-13 13:01:18 +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
02b1d15e42
ref: gl: add gl_polyoffset_bmodels to enable poly offset for drawing brush models, avoiding zfighting
2026-03-27 03:27:20 +05:00
Alibek Omarov
4e9a2dace0
ref: gl: only check for GL errors if both gl_check_errors and developer mode are enabled
2026-03-11 08:39:58 +05:00
Alibek Omarov
ceb5cd61e4
ref: gl: enable NPOT textures on GLES3 contexts as per spec
2025-11-27 19:18:27 +05:00
Alibek Omarov
c956c65e33
ref: gl: don't misleadingly tell about enabled vsync on engine startup before configs are parsed
2025-11-23 11:45:47 +05:00
lewa_j and a1batross
af69df15e1
ref: Fix gl4es build under windows. Static gl functions declared with APIENTRY even without mangling.
2025-07-27 16:27:55 +05:00
Alibek Omarov
1cef8ea7af
Revert "ref: gl: check OES NPOT texture extension in BigGL mode"
...
This breaks mipmaps on PSVita
This reverts commit 54b0cf9991 .
2025-02-28 17:08:27 +03:00
Alibek Omarov
b5cb0b9f10
ref: gl: add r_dlight_virtual_radius. It potentially fixes ugly dlight cut off on largely scaled textures (or at least allows to tune it)
...
It also adds a fix found in JoeQuake (which traces back to FitzQuake, in which
it is attributed to LadyHavoc, Darkplaces author) to exactly calculate whether
the light hits the surface, so we don't wrongly enable lighting on a surface by
an increased radius.
2025-02-07 23:07:08 +03:00
Alibek Omarov
54b0cf9991
ref: gl: check OES NPOT texture extension in BigGL mode
2025-02-05 14:00:44 +03:00
Alibek Omarov
3ebcb08a97
ref: gl: add cvar r_large_lightmaps to enable larger lightmap sizes, opt-in, yields better performance with VBO renderer
2025-02-05 13:02:37 +03:00
Alibek Omarov
77abf621d7
ref: gl: make GL_Support and GL_MaxTextureUnits functions inlined
2025-01-30 19:02:53 +03:00
Alibek Omarov
70897af362
public: add dll helpers to simplify basic interaction with exported functions lists
2024-12-23 04:43:15 +03:00
Alibek Omarov
4d1119391a
ref: gl: get rid of NULL sentinels at the end of arrays
2024-12-22 07:11:28 +03:00
SNMetamorph and Alibek Omarov
9244bdc7db
ref: gl: added gl_fog cvar for better GoldSrc compatibility
2024-11-21 23:11:53 +03:00
Alibek Omarov
6153d7f168
engine: make CL_RunLightStyles accept lightstyles array pointer as an argument. Make necessary changes in renderers.
2024-11-03 01:20:30 +03:00
Alibek Omarov
bb4e64ea58
ref: gl: migrate to new way to get lightstyles and dlights
2024-11-03 01:20:30 +03:00
Alibek Omarov
8af995cc28
engine: introduce REF_GET_*_PTR for gamma tables
2024-11-03 01:20:30 +03:00
Alibek Omarov
eb72b6baee
ref: gl: fix r_shadows and gl_vbo registration order. It must be registered before reading renderer config
2024-10-28 02:10:24 +03:00
Alibek Omarov
4a58be2aa0
ref: gl: deregister timerefresh command in renderer, as it's renderer-specific
2024-10-28 01:59:39 +03:00
Alibek Omarov
25b2c0f7e3
ref: gl: use FCVAR_GLCONFIG on VBO and detail textures cvars, so it always gets saved to opengl.cfg
2024-10-24 23:31:16 +03:00
Alibek Omarov
420c5a4ff3
ref: gl: set numeric value for wrappers macros, similar to build.h macros
2024-10-09 02:01:10 +03:00
Alibek Omarov
5c2ab150b3
ref: gl: move forcing gl_vbo to 0 after checking GL extensions out from R_GenerateVBO
2024-09-05 01:47:14 +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
mittorn
6c77608c34
ref_gl: implement color-modulate overbrigths with gl_vbo using texture GL_COMBINE
2024-02-22 21:02:34 +03:00
Alibek Omarov
661e60720d
ref: gl: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
18436a70eb
ref: gl: support overbrights, change the gamma applying order closer to the original renderer
2024-01-09 03:55:00 +03:00
Alibek Omarov
6a4bf4965f
ref: gl: acquire engine pointers
2023-12-30 16:36:13 +03:00
mittorn and Alibek Omarov
eff033298a
ref_gl: disable singlepass detail renderer, use correct fog color multipliers in VBO
2023-12-19 17:55:10 +03:00
Alibek Omarov
9c66e86be1
engine, ref: RefAPI 5. Remove unused calls
2023-12-06 04:13:03 +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
255773b4de
ref: gl: remove useless calls to glGetString if we're running under GL4ES
2023-12-04 02:53:51 +03:00
Alibek Omarov
d6dfb83be7
ref: gl: ripply water implementation (bugfixed version from my Quake-2 patches)
2023-10-31 21:52:00 +03:00
mittorn and Alibek Omarov
6bc613bdb4
ref_gl: force gles2 on non-nanogl until we support gles1 directly
2023-10-26 23:07:39 +03:00
mittorn and Alibek Omarov
a982562658
ref_gl: Fix missing DebugOutput functions on GLES
2023-10-26 23:07:22 +03:00
Alibek Omarov
b0a79df86f
ref: change r_traceglow to 0, as GoldSrc does
2023-10-26 04:59:01 +03:00
Alibek Omarov
3251b68df5
ref: gl: more simple search of GL func with alternative name (EXT, OES suffixes or no suffix)
2023-10-22 20:02:14 +03:00