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
719093c10b
ref: properly return false to the engine if renderer refuses to load the model for some reason
2025-01-22 19:13:23 +03:00
Alibek Omarov
0e27d8717c
ref: remove servercount from texture struct, Xash don't use it (and it's also harmful anyway)
2025-01-21 14:36:42 +03:00
Alibek Omarov
c906aa0106
ref: gl: make DrawGLPoly and R_TextureAnimation private to brush rendering code
2025-01-18 08:39:31 +03:00
Alibek Omarov
0a41b70e44
ref: gl: store ripple texture in texture's fb_texturenum as it's only used for water and water don't have luma
2025-01-18 08:38:43 +03:00
Alibek Omarov
ea338adc46
ref: gl: make GL_FrustumSetPlanme private to the frustum implementation
2025-01-18 08:34:25 +03:00
Alibek Omarov
5fa777578b
ref: gl: fix detail texture leak, fix texture leak when texture have default texture set (in which case it still might have other textures set)
2025-01-18 08:33:20 +03:00
Alibek Omarov
dcdca01e86
ref: gl: declare VBO globals static
2025-01-14 11:30:35 +03:00
Alibek Omarov
47aff9e30b
engine: hack mnode_t struct so we can have 24-bit face and children indices to support BSP2 format in runtime
2025-01-09 08:02:39 +03:00
Alibek Omarov
ced8744ac9
engine: split edge struct into two with 16-bit indicies and 32-bit indicies to support BSP2 format in runtime
2025-01-08 14:46:07 +03:00
Alibek Omarov
d50927f21f
ref: gl: make r_ripple work with non-square non-pot textures, fix holes caused by unexpected transparency
2024-12-26 06:31:53 +03:00
Alibek Omarov
c6e3146290
ref: gl: fix broken water texture when it was discarded by R_UploadRipples
2024-12-26 03:49:12 +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
Alibek Omarov
0154ffa060
wscript: try to automatically set console subsystem flag depending on target features
...
Remove subsystem flag from shlibs and stlibs, it's only required for executables.
2024-11-27 15:43:13 +03:00
SNMetamorph
9244bdc7db
ref: gl: added gl_fog cvar for better GoldSrc compatibility
2024-11-21 23:11:53 +03:00
Alibek Omarov
046b1da8a8
ref: fix some possible off by one errors
2024-11-17 13:26:03 +03:00
Alibek Omarov
d15949d2e8
Rename _format to FORMAT_CHECK
2024-11-07 14:24:07 +03:00
Alibek Omarov
8bebf698ef
ref: fix out of bound access when the entity is marked as player but has invalid number
...
It's possible when client.dll passes a self allocated entity and wants to draw
it as player but doesn't initialize or set the entity number correctly.
2024-11-07 07:18:14 +03:00
Alibek Omarov
159ded433d
ref: gl: don't touch polygon offset when not drawing debug hulls as it breaks decals with VBO
...
Also correctly restore polygon offset state so decals gets drawn even with VBO
2024-11-06 01:39:46 +03:00
Alibek Omarov
4d003bc13f
ref: remove Mod_LoadMapSprite from RefAPI
2024-11-03 02:59:44 +03:00
Alibek Omarov
addd50467e
engine: remove FillRGBABlend from RefAPI. FillRGBA now accepts rendermode parameter
2024-11-03 02:24:36 +03:00
Alibek Omarov
6cd2dbf178
engine: remove R_DrawTileClear from RefAPI
2024-11-03 02:21:38 +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
b39d660189
ref: refactor R_BuildLightMap
2024-11-03 01:20:30 +03:00
Alibek Omarov
9608da5bf9
engine: move debug hulls rendering from renderer, implement through TriAPI
...
Bump RefAPI version to 9.
2024-11-02 22:57:26 +03:00
Alibek Omarov
40c051fb6b
ref: refactor R_AddDynamicLights
2024-11-02 04:08:40 +03:00
Alibek Omarov
015f1ba8c0
ref: gl: small optimization for brush model rendering passes, track the first and last texture id of a special surface (fullbrights, alpha chains, details..)
2024-11-02 03:24:54 +03:00
Alibek Omarov
c3de4a5c3b
ref: gl: add fullbright textures to the list with VBO renderer
2024-11-02 02:18:43 +03:00
Alibek Omarov
93b382f174
wscript: move SUPPORT_BSP2_FORMAT definition to the main wscript file. Manually define REF_DLL in the build task
2024-11-02 01:57:33 +03:00
Alibek Omarov
f7bc258c2f
ref: gl: reduce copypasted branch at LM_UploadBlock
2024-11-01 19:06:09 +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
ec5578a437
ref: gl: vgl_shim: remove -fno-PIC to properly link it with shared library
2024-10-24 15:47:06 +03:00
Alibek Omarov
e381d04094
ref: simplify wscripts, remove gl2_shim unused wscript, fix non-existent export in exports.txt
2024-10-24 00:40:12 +03:00
Alibek Omarov
a15c1f99b2
wscript: remove useless features
2024-10-23 23:20:47 +03:00
Alibek Omarov
763e101208
ref: preserve aspect ratio when saving level and save shots
2024-10-16 21:35:52 +03:00
Alibek Omarov
663f6eaf5c
ref: turn r_shadows into extended convar_t
2024-10-14 04:18:35 +03:00
Alibek Omarov
9d3210259c
ref: set hullcolor (used by r_drawentities) as const
2024-10-14 04:15:48 +03:00
54ac
653f0841e4
ref: gl: restore r_shadows ( #1843 )
2024-10-13 17:15:29 +03:00
Alibek Omarov
96f3061709
ref: gl: show texture size in memory, skip empty pages, skip empty 0-th texture
2024-10-09 02:44:26 +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
e8f6476e8c
ref: gl: patch to compile with nanogl (nanogl doesn't impement glTexCoord3f)
2024-10-09 00:31:05 +03:00
Alibek Omarov
f5ae806b31
ref: gl: add r_showtextures implementation by ncuxonaT
...
Main changes made by me besides engine differences:
* Text color changed to pure white for better readability
* An attempt to draw texture name in full size
2024-10-08 12:56:07 +03:00
Alibek Omarov
0c8b2d007a
ref: gl: set malloc like attribute for imported zone memory allocator functions
2024-09-30 04:00:28 +03:00
Alibek Omarov
55c1bddac5
ref: gl: implement generating VBO only when gl_vbo was set to 1
...
* Make it safer by creating a function that returns VBO state, was it
generated or enabled by user
2024-09-05 04:10:56 +03:00