Ivan Avdeev
5659fb0b6f
imagelib: c90-ize ktx2 loader even more
2023-12-18 12:43:52 -05:00
Ivan Avdeev
6d79e84f5b
imagelib: c90-ize ktx2 loader face cursors
2023-12-18 12:39:21 -05:00
Ivan Avdeev
356f7bdf71
imagelib: load KTX2 cubemaps directly
2023-12-18 11:37:46 -05:00
Ivan Avdeev
2776373652
imagelib: do not overwrite the correct image size when building cubemap
...
For some very unknown reason there's a line that fixes image size to
w*h*4, which would correspond to RGBA8 pixel format w/o alignment.
This is extremely incorrect for other pixel format, e.g. compressed
ones.
Not sure why this size-fixing was there, but removing it fixes sided
KTX2 compressed skybox corruption.
2023-12-15 09:14:23 -05:00
Ivan Avdeev
b1b333f74a
vk: use imagelib cubemap/skybox loader
...
Engine imagelib already has skybox loader. It uses rgbdata_t
IMAGE_CUBEMAP flag.
1. Support IMAGE_CUBEMAP
2. Utilize imagelib skybox loader, do not try to load individual skybox
sides manually.
This will allow loading KTX2 cubemaps directly.
Known issues:
1. Compressed KTX2 sides are not rotated correctly. Engine/imagelib is
unable to rotate compressed images.
2. Some KTX2 sides are corrupted. Cause unknown.
2023-12-14 13:40:34 -05:00
Ivan Avdeev
2a2aaecd92
engine: allow specifying amount of frames to wait on wait
command
2023-11-20 13:01:37 -05:00
Ivan Avdeev
a6fe7cc3a6
engine: allow specifying screenshot filenames in command directly
2023-11-20 13:01:01 -05:00
Ivan Avdeev
1f9b489bdc
Merge remote-tracking branch 'upstream/master' into vulkan-upstream-merge-20231102
2023-11-02 11:31:59 -04:00
e21fa4a910
engine: add cvar r_refdll_loaded to indicate currently loaded renderer (for menu options and etc)
2023-10-31 21:52:00 +03:00
a41902bd46
engine: mod_bmodel: detect water textures by texture name like LoadSurfaces does
2023-10-31 21:52:00 +03:00
597429cf41
engine, filesystem: unify GetNativeObject between all the APIs. Allow getting filesystem APIs through GetNativeObject
2023-10-31 21:25:11 +03:00
5ea074a1fd
engine: fix build issues pointed by @Velaron
2023-10-31 21:01:42 +03:00
a62a9429c9
engine: launcher: remove Windows code from single binary launcher, as Windows completely supports running from external launcher and don't need dedicated builds
2023-10-31 04:30:22 +03:00
f7c536b81c
engine: server: allow loading maps from subdirectories as this is used by some Half-Life mods
2023-10-29 02:44:46 +03:00
4d7d592918
engine: mod_bmodel: completely get rid of global loadmodel pointer
2023-10-28 16:06:00 +03:00
c5e91f299b
engine: mod_studio: reduce dependency on global loadmodel pointer, make it private for brush model loader
2023-10-28 15:38:40 +03:00
cff276db71
engine: client: mod_dbghulls: reduce dependency on global loadmodel pointer
2023-10-28 15:35:20 +03:00
30d1492b93
engine: remove Set/GetCurrentLoadingModel from RefAPI
2023-10-28 15:22:21 +03:00
f07eea5073
engine: server: allow server unloading for Win32 targets until we figure out the issues with MetaMod
2023-10-28 11:14:12 +03:00
78bc177e05
engine: server: remove unused host struct field
2023-10-28 11:06:18 +03:00
8fb908e3d4
engine: server: disable SV_UnloadProgs, only call it when shutting down engine
2023-10-28 11:06:18 +03:00
d8b261370a
engine: common: do not probe server to collect cvars for game.cfg (CHECK THIS)
2023-10-28 11:06:18 +03:00
a2c9ac5b1f
engine: client: disable server DLL probe for GameUI, check it's existence instead
2023-10-28 11:06:18 +03:00
7f9025e178
engine: server: sv_pmove: use model name for physent name to avoid crash when classname isn't initialized yet
2023-10-28 11:04:43 +03:00
8647110a10
Revert "engine: wscript: move libasound uselib under linux condition, as the ALSA interface is only relevant for Linux"
...
This reverts commit 48e44f0057
.
2023-10-28 10:10:03 +03:00
Ivan Avdeev
96864cf0bd
vk: silence extra logs, add diagnostic checks
2023-10-27 10:41:39 -04:00
48e44f0057
engine: wscript: move libasound uselib under linux condition, as the ALSA interface is only relevant for Linux
2023-10-27 17:03:04 +03:00
a5ee631191
engine: server: sv_game: disable searching closer to server library memory region for Android
2023-10-27 14:31:16 +03:00
ce39255ef0
engine: host: set rootdir on Android SDL port
2023-10-27 14:25:16 +03:00
061b50404d
engine: server: register dummy cvar sv_allow_dlfile for GoldSrc compatibility
2023-10-27 08:02:10 +03:00
279cec5ae9
engine: rename cl/sv_allowdownload for GoldSrc compatibility
2023-10-27 07:25:09 +03:00
6f6ddbce28
engine: add argument -timedemo that makes engine run timedemo and exit
2023-10-27 03:49:00 +03:00
4cb425d2bb
engine: console: do not draw console and do not draw notify in timedemo
2023-10-27 03:47:52 +03:00
96a9172e36
engine: platform: sdl: check that we're handling SDL errors according to it's documentation
2023-10-26 23:06:50 +03:00
9e107e900c
engine: network: fix async NS resolve
...
If we're currently running NS resolving thread, any request would block.
Co-Authored-by: mittorn <mittorn@sibmail.com>
2023-10-24 18:11:31 +03:00
8f819a2fde
engine: platform: sdl: fix forgotten icon setup call
2023-10-23 00:31:30 +03:00
3ac8ad9484
engine: fixup endianness found by -Werror=strict-aliasing in old armv7hf compiler (d259421111289af3b49c055150e02213f39075a6)
2023-10-22 20:02:14 +03:00
b9ca0d4563
engine: common: network: more simple IP address copying from sockaddr to netadr_t and back
2023-10-22 20:02:14 +03:00
dcb3da53b0
engine/client: fallback to defaults in touch_reloadconfig if config not exist
2023-10-22 20:02:14 +03:00
e68b19ed1a
engine/client: handle touch config aspect ratio, try correctly handle touch aspect on resizeable windows
2023-10-22 20:02:14 +03:00
14c7a84482
engine/client: always save touch config if it was resetted manually (helps after writing broken/empty config)
2023-10-22 20:02:14 +03:00
mittorn
bee81e9723
engine: Make SDL_GetBasePath error not fatal
2023-10-22 20:02:14 +03:00
mittorn
1bfb6c560a
platform/sdl: add check for missing hint defines
2023-10-22 20:02:14 +03:00
mittorn
24d6f1788a
platform/sdl: workaround ubuntu SDL2 bug preventing resolving any extensions on EGL
2023-10-22 20:02:14 +03:00
mittorn
fb95cc9a97
engine/client: respect m_ignore in mouse client code as grabbing window breaks touch input
2023-10-22 20:02:14 +03:00
mittorn
b949da291e
engine: fix strict aliasing issues found by an old armv7hf compiler
2023-10-22 20:02:14 +03:00
2ecbe5b67e
engine: add testing master server at mentality.rip:27011
2023-10-22 19:39:58 +03:00
7d61b5317c
engine: client: add random key to the query, so we can validate master server response
2023-10-22 18:16:42 +03:00
201258dc9e
engine: client: allow passing additional filter through internetservers command arguments
2023-10-22 17:58:28 +03:00
0330569537
engine: client: remove master server queries from NetAPI, they are never used by mods
2023-10-22 17:49:52 +03:00