Commit Graph

1051 Commits

Author SHA1 Message Date
Benau
23cd67f45c Implement draw2DRectangle for GEVulkanDriver 2022-03-23 10:53:00 +08:00
Benau
9e50c8a71f Remove unneeded files, fix #4751 2022-03-22 07:51:45 +08:00
Benau
3e2ff91654 Add dynamic scissor support 2022-03-21 11:54:28 +08:00
Benau
ea1733ed08 Add drawing code for devices with low sampler images 2022-03-20 13:35:22 +08:00
Benau
bb6551fdf6 Add drawing code for devices without descriptor indexing 2022-03-19 16:09:32 +08:00
Benau
1cf2c0c5bf Add initial 2D vulkan rendering 2022-03-19 15:14:55 +08:00
Benau
cb607a16ff Add GEVulkanShaderManager 2022-03-18 16:24:33 +08:00
Benau
89afd214e8 Require shaderSampledImageArrayDynamicIndexing for vulkan 2022-03-18 09:24:55 +08:00
Benau
1d0d2ebb75 Fix windows xp support 2022-03-17 15:12:08 +08:00
Benau
9ea2f3ff8c Fix cctools build 2022-03-17 14:06:27 +08:00
Benau
38a553513c Fix switch build 2022-03-17 13:52:46 +08:00
Benau
f01959de8b Disable documentation generation for shaderc 2022-03-17 13:36:27 +08:00
Benau
2bc31f1518 Disable shared libraries manually for shaderc 2022-03-17 13:12:55 +08:00
Benau
bc1d885bd1 Add shaderc v2022.1 for GLSL to SPIR-V shaders
Ran ./utils/git-sync-deps already, removed some unneeded files
2022-03-17 12:21:20 +08:00
Benau
c19327aaeb Fix vsync disabled 2022-03-16 15:43:26 +08:00
Benau
a7994c02d8 Fix command buffers size 2022-03-16 12:37:18 +08:00
Benau
d6265f3bf7 Handle possible error from createTextureImage 2022-03-15 14:04:36 +08:00
Benau
4b28f5b9af Wait queue to become idle before deleting texture 2022-03-15 12:42:31 +08:00
Benau
ea275ae798 Use a correct layout during updateTexture 2022-03-14 09:43:22 +08:00
Benau
f35f402edf Fix VkDeviceQueueCreateInfo warning 2022-03-13 10:54:35 +08:00
Benau
4a93bea962 Fix MSVC 2015 build 2022-03-12 16:43:32 +08:00
Benau
8a5ecc458f Fix apple build 2022-03-01 16:25:25 +08:00
Benau
17a899aa2c Fix exit crash 2022-03-01 15:59:48 +08:00
Benau
8b68f52e57 Add GEVulkanTexture 2022-03-01 13:22:20 +08:00
David CARLIER
1f0ea77f80
illumos port. (#4732)
overcoming sun constant defined in this platform.
forcing 64 bits build as angelscript assembly is incorrect for 32 bits.
2022-02-13 00:31:14 +08:00
Benau
3ccdfaf70d Add createSamplers for GEVulkanDriver 2022-01-23 16:43:33 +08:00
Benau
8e64c69c5d Add command creation for GEVulkanDriver 2022-01-22 00:41:24 +08:00
Benau
2f4093516a Add createSyncObjects for GEVulkanDriver 2022-01-22 00:18:42 +08:00
Benau
f0f498d53f Add createSwapChain for GEVulkanDriver 2021-12-28 13:51:03 +08:00
Benau
baeafd9f7d Fix missing ime candidate window using SDL2 hint 2021-12-24 09:43:06 +08:00
Varro33
6b022368cf
Fix irrlicht error indent (#4676) 2021-11-22 21:49:15 +08:00
Bryan Quigley
bee1c222af Always AS_MAX_PORTABILITY on AArch 2021-11-07 23:43:05 -08:00
Bryan Quigley
b710fab5c8 STK modifications to angelscript to let Windows/Apple builds
(and 3 forgotten source files)
2021-11-06 10:12:01 -07:00
Bryan Quigley
73c94f571d Update Angelscript from 2.32.0 to 2.35.1
Didn't require any changes except dos2unix.
2021-11-04 17:59:10 -07:00
Kalev Lember
164c51cb2e Always build tinygettext as a static library
Explicitly pass STATIC to tinygettext add_library() call to make sure
it's always built as static, even when distro's cmake is configured to
build libs shared by default.
2021-10-07 00:52:32 +02:00
Benau
835154bde2 Handle SDL_RENDER_DEVICE_RESET event 2021-10-04 21:16:26 +08:00
Benau
17329a1b29 Register native functions in SDL_main 2021-10-04 13:01:00 +08:00
Benau
307791beda Highlight URLs or addon names from /installaddon in lobby 2021-09-09 09:57:35 +08:00
Benau
38cfd912bd Add extractURLFromGlyphLayouts which handles RTL layout properly 2021-09-08 14:58:35 +08:00
Benau
e85b82001f Fix invalid URL in line breaking 2021-09-08 13:27:09 +08:00
Benau
0c20dda1da Remove SF_DISABLE_URL_HIGHLIGHT flag to avoid conflicts with cache
Manually remove the URL highlighting if needed
2021-09-08 09:38:30 +08:00
Benau
8c3bacf769 Only save original string in GlyphLayout if needed 2021-09-06 14:51:45 +08:00
Benau
ae98b0cf9b Use LinkHelper::openURL on highlighted URL 2021-09-06 14:19:39 +08:00
Benau
280d8fc114 Highlight URL with skin marked text color 2021-09-06 11:05:24 +08:00
Benau
8f41b721ed Share FontWithFace render code with getCluster for more functionality 2021-09-05 08:41:46 +08:00
Benau
4deeac7dc8 Move getCluster code to a dedicated function for later usage 2021-09-05 00:54:52 +08:00
Benau
c76d41c903 Add callback to IGUIStaticText to allow text handling 2021-09-03 18:25:47 +08:00
Benau
33a4369a71 Store shared original string to glyph layouts directly 2021-09-03 13:09:42 +08:00
Benau
6d763a1e26 Update mojoAL 2021-08-26 09:23:53 +08:00
Benau
91e2217eba Fix typo 2021-08-06 09:21:42 +08:00
Benau
608f75e0af Fix GLES2 build 2021-07-29 12:39:00 +08:00
Benau
508eef4b81 Fix exit crash on some AMD driver 2021-07-29 10:44:21 +08:00
Benau
17d26338f8 Add MoltenVK support
SDL_Vulkan_LoadLibrary is used for macOS to keep 10.9 compatibility
2021-06-10 13:21:11 +08:00
Benau
d5c848c4c2 Add basic vulkan driver 2021-06-10 01:02:24 +08:00
Benau
724386bfcd Fix MSVC x86_64 build 2021-06-05 18:28:48 +08:00
Benau
fa03bc4461 Fix compiler warning 2021-05-21 22:04:31 +08:00
Benau
e992bb9cef Fix simulator missing in Xcode project 2021-05-21 17:47:40 +08:00
Benau
33459e852c Use libsamplerate to handle pitch for MojoAL 2021-05-19 11:29:48 +08:00
Benau
ec02331c73 Use MojoAL instead of OpenAL for Apple
Because OpenAL in iOS is broken at the moment
2021-05-14 23:51:24 +08:00
Benau
fc387fa30d Fix broken accelerometer with iOS
After some iOS version it gets reversed for orientation handling
2021-05-07 22:18:16 +08:00
Benau
75f14740ad Add a way to print message to stk gui from java 2021-05-04 09:03:38 +08:00
Benau
4081efbcaa Use initial orientation for device rotation instead of hardcoded values 2021-05-01 16:39:06 +08:00
Benau
b56a042cd3 Fix compiler warnings 2021-04-29 01:13:26 +08:00
Benau
0e9d45665b Update LLVM MinGW toolchain and CMake scripts for ARM64 Windows support 2021-04-27 16:19:17 +08:00
Benau
a5f29bc560 Add GEDX9Texture 2021-04-23 10:58:19 +08:00
Benau
18690fad3a Add scissor test for CD3D9Driver 2021-04-21 16:39:45 +08:00
Benau
b9b5ac2fec Add DirectX 9 driver 2021-04-21 16:33:52 +08:00
Benau
c58de0a91f Make GEGLTexture texture locking read only 2021-04-21 11:43:01 +08:00
Benau
7367610c1f Fix broken billboard text in legacy gl driver 2021-04-21 10:24:29 +08:00
Benau
f3d8b96149 Move scissor test reverse code to gl drivers 2021-04-21 07:56:37 +08:00
Benau
b21c620fea Make SDL device handle non-gl drivers 2021-04-20 00:51:42 +08:00
Benau
23ec5ba379 Don't crash if null image 2021-04-19 12:43:35 +08:00
Benau
af7d6cf391 Move scissor test to IVideoDriver 2021-04-19 12:17:10 +08:00
Benau
2c3922f64f Move RGBA conversion to GEGLTexture 2021-04-19 11:41:22 +08:00
Benau
b3aa499cd4 Fix mingw build 2021-04-18 09:46:44 +08:00
Benau
64c5762eeb Implement updateTexture for GEGLTexture 2021-04-18 00:50:12 +08:00
Benau
4f9471dcff Add createFontTexture 2021-04-17 15:32:33 +08:00
Benau
c4cae7d622 Add GEGLTexture 2021-04-17 12:44:25 +08:00
Benau
7496609bfa Use dedicated function to handle sky textures 2021-04-14 09:34:59 +08:00
Benau
c5bbefd476 Use 64bit texture handler for pointer later 2021-04-14 01:05:44 +08:00
Benau
4ec4fda91b Implement display cutout support for android 2021-03-22 07:04:21 +08:00
Mary Strodl
67af723087 Fix switch compilation 2021-03-11 20:13:27 -05:00
Benau
f1aa29634b Add dns c library 2021-03-12 09:07:14 +08:00
Mary
8daf149895
Switch fixes (rest of cherry pick) (#4504)
* InputManager: support split joycons, fix mappings

* CFileSystem: getAbsoluteFilename() - replace double slashes

* CFileSystem: typo in macro

* debug: use touch handler for debug (strange behaviour on switch SDL)

* InputManager: don't need SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS

* CFileSystem: getAbsoluteFilename() - replace double slashes

* MaterialManager: hack to make material properties apply properly
2021-03-10 09:59:48 +08:00
Mary
cc125c5f68
Switch fixes (#4503)
* InputManager: support split joycons, fix mappings

* CFileSystem: getAbsoluteFilename() - replace double slashes

* CFileSystem: typo in macro

* debug: use touch handler for debug (strange behaviour on switch SDL)

* InputManager: don't need SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS
2021-03-09 23:42:48 +08:00
Mary
d9b8b7acad
Support for Nintendo Switch (#4491)
* WIP support for Nintendo Switch

* OpenAL is usable

* Remove some debug code, add manual crash when DEBUG_NXLINK is on

* Remove more debug logs

* Support touch, account name detection, language detection. Remove resolution settings

* Stylistic changes

* SFXManager: update on main thread

* Add build script, remove crypto.hpp changes, disable opengl recorder on switch

* make: use sudo where needed, libs=>lib, portlib=>portlibs

* make: build harfbuzz with freetype

* main: remove DEBUG_NXLINK

* socket_address: this comment is no longer relevant

* Fix indentation in SDL, remove extra debug logs from InputManager

* InputManager: make log debug, not info

* CMakeLists: add mbedtls include dirs on switch

* main: deinitialize stuff

* main_loop: fix format
2021-03-04 09:23:23 +08:00
jean
89acc4e6a0 Removing sky dome (not used anywhere + deprecated even in irrlicht) 2021-02-07 21:56:58 +01:00
Benau
fa4318b6ad Implement smooth frame transition for animated mesh 2021-02-05 14:41:39 +08:00
Benau
65f23987f1 Fix inconsistent kart size with server 2021-01-26 14:52:22 +08:00
QwertyChouskie
6d3ee0ce31 Add Render resolution (scale_rtts) slider with auto-mode
Auto mode adjusts based on your display's DPI in order to hit a target DPI.  Currently it will default to Always Full for render resolution, but High Quality or even Quality might make a good default, community testing is needed.
2021-01-19 00:12:20 +01:00
David CARLIER
2899cf8977 Mac M1 build fix proposal avoiding mixing up with homwbrew for Rosetta
as well.
2021-01-09 22:33:42 +00:00
Benau
922296f5eb Use correct calling method for jni functions 2020-12-08 09:03:47 +08:00
Benau
5500b4dcc9 Avoid making filenames lower case in windows
It breaks fallback translation (zh_TW to zh_tw) which tinygettext
uses zh_TW to detect
2020-12-04 11:08:20 +08:00
Benau
3f0eb215f7 Replace glew with glad with vulkan support 2020-12-04 09:39:06 +08:00
David Carlier
eace0982a2 DragonFlyBSD support, mainly FreeBSD codepath. 2020-10-10 14:14:49 +01:00
Adnan1091
995fdf8c81 Optimize images 2020-09-09 19:47:37 +03:00
Benau
fd4be023d5 Make tinygettext use stk logging 2020-09-09 14:46:29 +08:00
Benau
f1fb30250b Generate plural forms in tinygettext using python script 2020-09-09 13:43:26 +08:00
Benau
1a8b5cd2e1 Fix windows build of tinygettext 2020-09-09 13:36:21 +08:00
Benau
c51d464839 Add new languages to tinygettext 2020-09-09 13:32:53 +08:00