Alibek Omarov
5aac5d2a52
filesystem: VFileSystem009: add pathid support to RemoveFile method
1 year ago
Alibek Omarov
061b50404d
engine: server: register dummy cvar sv_allow_dlfile for GoldSrc compatibility
1 year ago
Alibek Omarov
279cec5ae9
engine: rename cl/sv_allowdownload for GoldSrc compatibility
1 year ago
Alibek Omarov
83a5648335
filesystem: only allow setting true or false for boolean type keys in gameinfo/liblist.gam
1 year ago
Alibek Omarov
a8fc9a4c5a
waf: update to latest waifu
1 year ago
Alibek Omarov
6f6ddbce28
engine: add argument -timedemo that makes engine run timedemo and exit
1 year ago
Alibek Omarov
4cb425d2bb
engine: console: do not draw console and do not draw notify in timedemo
1 year ago
mittorn
bf5fd40d64
gl2shim: workaround empty rgb5/rgb8 textures
1 year ago
mittorn
6bc613bdb4
ref_gl: force gles2 on non-nanogl until we support gles1 directly
1 year ago
mittorn
a982562658
ref_gl: Fix missing DebugOutput functions on GLES
1 year ago
Alibek Omarov
96a9172e36
engine: platform: sdl: check that we're handling SDL errors according to it's documentation
1 year ago
Alibek Omarov
34d7664342
ref: gl: disable TGA flip for detail textures, GoldSrc ignores it, so we will too
1 year ago
Alibek Omarov
b0a79df86f
ref: change r_traceglow to 0, as GoldSrc does
1 year ago
Alibek Omarov
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>
1 year ago
Alibek Omarov
8f819a2fde
engine: platform: sdl: fix forgotten icon setup call
1 year ago
Alibek Omarov
3251b68df5
ref: gl: more simple search of GL func with alternative name (EXT, OES suffixes or no suffix)
1 year ago
Alibek Omarov
3ac8ad9484
engine: fixup endianness found by -Werror=strict-aliasing in old armv7hf compiler (d259421111289af3b49c055150e02213f39075a6)
1 year ago
Alibek Omarov
b9ca0d4563
engine: common: network: more simple IP address copying from sockaddr to netadr_t and back
1 year ago
mittorn
dcb3da53b0
engine/client: fallback to defaults in touch_reloadconfig if config not exist
1 year ago
mittorn
e68b19ed1a
engine/client: handle touch config aspect ratio, try correctly handle touch aspect on resizeable windows
1 year ago
mittorn
14c7a84482
engine/client: always save touch config if it was resetted manually (helps after writing broken/empty config)
1 year ago
mittorn
c1d1aa6787
ref_gl: rewrite ARB workaround to check EXT/OES names, notify user that function found with different name
1 year ago
mittorn
bee81e9723
engine: Make SDL_GetBasePath error not fatal
1 year ago
mittorn
1bfb6c560a
platform/sdl: add check for missing hint defines
1 year ago
mittorn
24d6f1788a
platform/sdl: workaround ubuntu SDL2 bug preventing resolving any extensions on EGL
1 year ago
mittorn
fb95cc9a97
engine/client: respect m_ignore in mouse client code as grabbing window breaks touch input
1 year ago
mittorn
b949da291e
engine: fix strict aliasing issues found by an old armv7hf compiler
1 year ago
Alibek Omarov
2ecbe5b67e
engine: add testing master server at mentality.rip:27011
1 year ago
Andrey Akhmichin
6634e0487c
Documentation: opensource-mods.md: update.
1 year ago
Alibek Omarov
7d61b5317c
engine: client: add random key to the query, so we can validate master server response
1 year ago
Alibek Omarov
201258dc9e
engine: client: allow passing additional filter through internetservers command arguments
1 year ago
Alibek Omarov
0330569537
engine: client: remove master server queries from NetAPI, they are never used by mods
1 year ago
Alibek Omarov
a1ab84a2ca
mainui: update
1 year ago
Alibek Omarov
2d79f3ef7a
engine: common: sys_con: enable writing build commit, os and arch to the engine.log
1 year ago
Alibek Omarov
99a7e9ad87
wscript: enable -Werror=nonnull
1 year ago
Alibek Omarov
02b8037f33
common: xash3d_types: add NONNULL attribute
1 year ago
Andrey Akhmichin
fc55a685e3
utils: mdldec: small optimizations.
1 year ago
Alibek Omarov
b76a75d6b4
ref: gl: respect gl_texture_nearest value for skyboxes
1 year ago
Ivan Avdeev
a251600c8a
engine: common: imagelib: add KTX2 support ( #1455 )
...
* engine: common: imagelib: add KTX2 support
Adds basic KTX2 support for a few compressed formats. KTX2 essentially
is a Vulkan-centric texture format that supports literally hundreds of
pixel formats.
For now only support for these is added:
- `VK_FORMAT_BC4_UNORM_BLOCK`
- `VK_FORMAT_BC4_SNORM_BLOCK`
- `VK_FORMAT_BC5_UNORM_BLOCK`
- `VK_FORMAT_BC5_SNORM_BLOCK`
- `VK_FORMAT_BC6H_UFLOAT_BLOCK`
- `VK_FORMAT_BC6H_SFLOAT_BLOCK`
- `VK_FORMAT_BC7_UNORM_BLOCK`
- `VK_FORMAT_BC7_SRGB_BLOCK`
Adding more formats is relatively straightforward:
- Copy format definition from `VkFormat` enum in `vulkan_core.h`
- Add a new definition into `pixformat_t` enum.
- Add format size calculation into `Image_ComputeSize()`
While we're at it, also adds a few new formats to DDS:
- BC4_UNORM -- PF_BC4_UNSIGNED
- BC4_SNORM -- PF_BC4_SIGNED
- BC5_UNORM -- PF_BC5_UNSIGNED
- BC5_SNORM -- PF_BC5_SIGNED
- BC7 is expanded into BC7_UNORM and BC7_SRGB
ref_gl and ref_soft code is updated where it made sense. But not tested
really. Support for these formats has been tested with ref_vk.
* address spaces-vs-parentheses formatting where noticed
* parenthesize sizeofs
* move ktx2.h to imagelib as img_ktx2.h; massage it a bit
* use SetBits() instead of |=
* remove stale TODO comments
1 year ago
Andrey Akhmichin
c551aefd77
utils: mdldec: add boneweights support.
1 year ago
Andrey Akhmichin
f343f0da41
utils: mdldec: return different errorcodes on error.
1 year ago
Andrey Akhmichin
6d318a4102
utils: mdldec: smd.c: replace loop with VectorMA.
1 year ago
mittorn
a2b992d865
ref_gl: fix codestyle
1 year ago
mittorn
ddf3f2ffdb
gl2shim: Allow drawing huge QUADS sequences by splitting drawcalls on overflow
1 year ago
Alibek Omarov
2454e87509
ref_gl: gl2shim: refactoring, add missing spaces in parentheses and ternary ops, remove singleline multiple assignments, use bitset macros
1 year ago
mittorn
0dc44249a2
ref_gl: fix XASH_GL_STATIC build
1 year ago
mittorn
150cbfa4de
ref_gl: do not trust REFAPI context version, get it from OpenGL anyway
1 year ago
mittorn
c0b068d81b
ref_gl: add workarounds for detecting extensions correctly on gles1/gles2 without wrapper (swiftshader works now)
1 year ago
mittorn
fbc312b6cf
gl2shim: remove float suffix in shaders, that makes glsl100 work in swiftshader
1 year ago
mittorn
342e0d3e2e
gl2shim: add glsl100 support
1 year ago