Alibek Omarov
0cfb354374
common: add RENAME_SYMBOL macro that renames symbol for compatibility with nasty mods (also reformat this portion, while we're at it)
2024-04-28 06:59:18 +03:00
Alibek Omarov
e81b5144b3
engine: common: zone: use realloc for managing mem pools
...
rearrange data in memheader_s to avoid unnecessary paddings
2024-04-19 00:14:26 +03:00
Alibek Omarov
e039ef35c0
filesystem: don't check for SDL whether we can load Android assets, because filesystem doesn't know anything about SDL
...
Replace it with runtime check instead.
2024-03-11 23:25:10 +03:00
mittorn and Alibek Omarov
d97d4d6c42
filesystem: add XASH_ANDROID_ASSETS macro for aassets switch
2024-02-27 04:04:54 +03:00
Alibek Omarov
2416635ba3
common: validate extended surfaces size
2024-02-23 20:54:32 +03:00
Alibek Omarov
95a75465c9
common: remove FORCEINLINE and NOINLINE macros, we don't use them in engine
2024-02-22 15:43:37 +03:00
Alibek Omarov
725b7ea7f9
common: render_api: rename TF_ALLOW_NEAREST_TOGGLE to just TF_ALLOW_NEAREST, it's just shorter
2024-01-29 05:59:06 +03:00
Alibek Omarov
04f42df7d5
common: render_api: new flag TF_ALLOW_NEAREST_TOGGLE that allows toggling nearest filtering for TF_NOMIPMAP textures
2024-01-29 05:48:42 +03:00
Alibek Omarov
edc08e39ef
common: move FORCEINLINE from port.h to xash3d_types.h, alongside other compiler-specific attributes
2024-01-24 20:51:34 +03:00
Alibek Omarov
ba9bb70924
common: remove unused gamma definitions
2024-01-13 05:03:58 +03:00
Alibek Omarov
46f30e215c
common: replace netadr.h with compatible definition from GPL Quake-2 sources
2024-01-12 23:09:38 +03:00
Alibek Omarov
2ae038c01c
common: fix broken STATIC_ASSERT macro again
2024-01-12 23:00:56 +03:00
Alibek Omarov
aaa9fbd50f
common: replace kbutton.h with compatible defintion from GPL WinQuake sources
2024-01-12 17:20:30 +03:00
Alibek Omarov
9304a0041d
ref: gl: support kRenderFxLightMultiplier
...
* add undocumented kRenderFxLightMultiplier to const.h
2024-01-09 03:33:39 +03:00
Alibek Omarov
49f972a7c9
engine: add new engine feature ENGINE_STEP_POSHISTORY_LERP that enables CStrike's MOVETYPE_STEP lerp based on position history
2024-01-04 05:05:03 +03:00
Alibek Omarov
f705a7cd26
common: xash3d_types: another attempt to properly check static asserts availability
2023-12-28 17:32:07 +03:00
Alibek Omarov
9d8ba03f5e
common: xash3d_types: fix static_assert macro
2023-12-27 03:10:41 +03:00
Alibek Omarov
d41a80bc2c
engine: add mask to sanitize possible engine features bits
2023-12-17 17:43:51 +03:00
Alibek Omarov
683c4874f8
common: add ALLOC_CHECK macro that enables attribute alloc_size on GCC that allows to prevent suspicious allocation sizes
2023-12-09 19:00:25 +03:00
Alibek Omarov
9fcd4baa87
engine: client: gameui: expose animated_title and hd_background flags to main menu API
2023-11-22 11:01:18 +03:00
Alibek Omarov
a443547d4d
common: defaults: add default macro for default gameinfo max_edicts value
2023-11-20 17:32:19 +03:00
Alibek Omarov
597429cf41
engine, filesystem: unify GetNativeObject between all the APIs. Allow getting filesystem APIs through GetNativeObject
2023-10-31 21:25:11 +03:00
mittorn and Alibek Omarov
f2c080e736
gl2shim: fix broken matrix update when fog attribute enabled (32 bit shift overflow)
2023-10-30 22:34:34 +03:00
Alibek Omarov
02b8037f33
common: xash3d_types: add NONNULL attribute
2023-10-22 17:37:09 +03:00
Ivan Avdeev and GitHub
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
2023-10-18 10:31:40 +03:00
Alibek Omarov
ef663a8790
engine: partially remove legacy Android port, in preparation of new port merge
2023-06-05 20:30:18 +03:00
Alibek Omarov
05560c7607
engine: always read and set vid_fullscreen value directly with it's object
2023-05-27 21:52:58 +03:00
Alibek Omarov
6e27926a10
engine: simplify XASH_USE_EVDEV macro usage by giving it's defined positive value
2023-03-27 17:28:19 +03:00
SNMetamorph and Alibek Omarov
575179dbf5
engine: client: added default dead zone values for psvita platform
2023-03-27 03:52:51 +03:00
fgsfds and Alibek Omarov
adc5aa4659
psvita: don't default to -dev 255
2023-03-11 07:09:18 +03:00
fgsfds and Alibek Omarov
6304b51f32
psvita: fno-short-enums, make ref_gl function somewhat
2023-03-11 07:09:18 +03:00
fgsfds and Alibek Omarov
7424b29e56
engine: initial psvita build support
2023-03-11 07:09:14 +03:00
Alibek Omarov
3765686077
public: make va() buffer size public
2023-03-11 05:28:17 +03:00
Alibek Omarov
9b0ac7cb32
common: add shared synctype_t definition header, borrowed from Quake's modelgen.h
2023-02-14 18:18:16 +03:00
Alibek Omarov
555fd02407
defaults: reorganize platform default overrides, disable touch for nswitch
2023-02-09 05:55:35 +03:00
fgsfds
4e87eb068a
engine: common: nswitch: use #if instead of #ifdef
2023-02-07 23:03:59 +01:00
fgsfds
25fb89f717
nswitch: don't redefine O_BINARY
2023-02-05 02:16:56 +01:00
fgsfds
25a1cb8ce7
Nintendo Switch support (again)
2023-02-05 02:09:32 +01:00
9466461ce0
engine: preliminary support for SGI IRIX ( #1211 )
...
* Added definitions for IRIX
* Patchset to get dedicated server to compile on IRIX.
* Cleaned up debug statements in wscript
* Potential bug in IRIX implementation of isnan? For now just use the portable macro.
* Include the platform port files in the build
* Temporary execution script for setting appropriate library search paths to the right locations in the build directory. This should probably get replaced with a more permanent script at some point which lives in the same directory as the normal xash binary, or be replaced by a solution that sets the rpath during config or modifies rpath during install.
* Clean up formatting and remove unneeded debugging statements
* Added GPL copyright notice and description
* Moved to irix platform folder and edited script
* Re-introduced _inline macro
* Replace spaces with tabs
Co-authored-by: Xav101 <xaviernye@msn.com >
2023-01-14 09:35:30 +03:00
Alibek Omarov
c28aeb2362
engine: make crashhandler implementation choice private to crashhandler code
2023-01-09 07:55:54 +03:00
Alibek Omarov
4684f174ee
public: completely get rid of PATH_SEPARATOR macros
2023-01-05 06:06:07 +03:00
Alibek Omarov
e1ea3387ee
common: rename PATH_SPLITTER to PATH_SEPARATOR, change it's type to character
2022-12-27 02:31:46 +03:00
Alibek Omarov and GitHub
6e179346c9
common: redefine poolhandle_t back to pointer for 32-bit systems
2022-12-19 18:36:31 +03:00
Alibek Omarov
f20fddee1c
common: bspfile: add separate definitions for clipnodes limit for HLBSP and QBSP2
2022-12-15 00:42:40 +03:00
SNMetamorph and Alibek Omarov
080cd146dd
common: com_model: changed common structs reserved fields type to intptr_t
2022-12-11 22:59:17 +03:00
Alibek Omarov
e48b708fa6
engine: imagelib: img_png: validate image size through common engine function
2022-12-05 04:54:20 +03:00
Alibek Omarov
e30c61c0e2
common: netadr: use static_assert macro
2022-11-17 19:44:47 +03:00
Alibek Omarov
64e97124c3
Merge master to ipv6
2022-11-17 19:34:46 +03:00
Alibek Omarov
a52d901f25
common: add STATIC_ASSERT macro
...
We're trying to guess if we have C11 static_assert defined in assert.h
otherwise use good ol' trick with negative array
2022-09-20 21:55:32 +03:00
Alibek Omarov
69b0954007
engine: change RenderAPI's RenderGetParm return type to intptr_t to insure compatibility with 64-bit
2022-09-20 18:06:19 +03:00