mittorn
14c7a84482
engine/client: always save touch config if it was resetted manually (helps after writing broken/empty config)
11 months ago
mittorn
c1d1aa6787
ref_gl: rewrite ARB workaround to check EXT/OES names, notify user that function found with different name
11 months ago
mittorn
bee81e9723
engine: Make SDL_GetBasePath error not fatal
11 months ago
mittorn
1bfb6c560a
platform/sdl: add check for missing hint defines
11 months ago
mittorn
24d6f1788a
platform/sdl: workaround ubuntu SDL2 bug preventing resolving any extensions on EGL
11 months ago
mittorn
fb95cc9a97
engine/client: respect m_ignore in mouse client code as grabbing window breaks touch input
11 months ago
mittorn
b949da291e
engine: fix strict aliasing issues found by an old armv7hf compiler
11 months ago
Alibek Omarov
2ecbe5b67e
engine: add testing master server at mentality.rip:27011
11 months ago
Andrey Akhmichin
6634e0487c
Documentation: opensource-mods.md: update.
11 months ago
Alibek Omarov
7d61b5317c
engine: client: add random key to the query, so we can validate master server response
11 months ago
Alibek Omarov
201258dc9e
engine: client: allow passing additional filter through internetservers command arguments
11 months ago
Alibek Omarov
0330569537
engine: client: remove master server queries from NetAPI, they are never used by mods
11 months ago
Alibek Omarov
a1ab84a2ca
mainui: update
11 months ago
Alibek Omarov
2d79f3ef7a
engine: common: sys_con: enable writing build commit, os and arch to the engine.log
11 months ago
Alibek Omarov
99a7e9ad87
wscript: enable -Werror=nonnull
11 months ago
Alibek Omarov
02b8037f33
common: xash3d_types: add NONNULL attribute
11 months ago
Andrey Akhmichin
fc55a685e3
utils: mdldec: small optimizations.
11 months ago
Alibek Omarov
b76a75d6b4
ref: gl: respect gl_texture_nearest value for skyboxes
11 months 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
11 months ago
Andrey Akhmichin
c551aefd77
utils: mdldec: add boneweights support.
11 months ago
Andrey Akhmichin
f343f0da41
utils: mdldec: return different errorcodes on error.
11 months ago
Andrey Akhmichin
6d318a4102
utils: mdldec: smd.c: replace loop with VectorMA.
11 months ago
mittorn
a2b992d865
ref_gl: fix codestyle
11 months ago
mittorn
ddf3f2ffdb
gl2shim: Allow drawing huge QUADS sequences by splitting drawcalls on overflow
11 months ago
Alibek Omarov
2454e87509
ref_gl: gl2shim: refactoring, add missing spaces in parentheses and ternary ops, remove singleline multiple assignments, use bitset macros
11 months ago
mittorn
0dc44249a2
ref_gl: fix XASH_GL_STATIC build
11 months ago
mittorn
150cbfa4de
ref_gl: do not trust REFAPI context version, get it from OpenGL anyway
11 months ago
mittorn
c0b068d81b
ref_gl: add workarounds for detecting extensions correctly on gles1/gles2 without wrapper (swiftshader works now)
11 months ago
mittorn
fbc312b6cf
gl2shim: remove float suffix in shaders, that makes glsl100 work in swiftshader
11 months ago
mittorn
342e0d3e2e
gl2shim: add glsl100 support
11 months ago
mittorn
202b228691
gl2shim: correct allocation/cleanup
11 months ago
mittorn
c9c1286803
ref_gl: fix typo
11 months ago
mittorn
eab98b0eda
gl2shim: dynamic extension checking and autoconfiguration
11 months ago
mittorn
35be80fc21
ref_gl: request gl1.1 if compatibility profile unavailiable, this fixes launching with GL <= 2.0, improve old version extension detection
11 months ago
mittorn
6041bb0a43
platform/sdl: fix safegl
11 months ago
mittorn
c7dd9d6437
ref_gl: init r_temppool before InitExtensions, fix extension string allocation
11 months ago
mittorn
d378878c91
gl2shim: try fix getting program link log
11 months ago
mittorn
4a2f8cafcd
gl2shim: try fix errors in ViZual ZtudiO
11 months ago
mittorn
d254bac16b
ref_gl: integrate gl2shim extensions
11 months ago
mittorn
e23b632ce5
ref_gl: add missing non-arb shader functions
11 months ago
mittorn
2f321b1471
ref_gl: implement minimum inclusion version for GL extensions, implement quering extensions on core profile
11 months ago
mittorn
0265e88d8f
gl2shim: fix wrong color vertex
11 months ago
mittorn
4114d2f24d
gl2shim: more refactoring
11 months ago
mittorn
8124035763
ref_gl: try fix psvita
11 months ago
mittorn
96127c6eb0
gl2shim: make shaders code more portable
11 months ago
mittorn
cf65a39b83
gl2shim: refactoring
11 months ago
mittorn
0341f96b70
gl2shim: use IBO for quads
11 months ago
mittorn
c95d91cfe3
gl2shim: limit begin-end chain length, cycle incremental buffers
11 months ago
mittorn
cbd10c6279
gl2shim: improve shader version handling, fix particle issues
11 months ago
mittorn
5df9e57743
gl2shim: support incremental non-persistent buffers for arrays
11 months ago