Commit Graph

3902 Commits

Author SHA1 Message Date
Lynix 9d669f722e Core: Rework TaskScheduler (WIP) 2024-01-31 16:42:25 +01:00
Lynix 2b88f50c21 Minor improvements 2024-01-29 18:34:46 +01:00
SirLynix 0191256493 Fix Nz::ErrorFlags API and usage 2024-01-28 15:03:24 +01:00
SirLynix f06752b08d Renderer/WindowSwapchain: Fix calls to GetSize() happening after window destruction 2024-01-28 13:56:06 +01:00
SirLynix b29ecdf0db Widgets/AbstractTextAreaWidget: Add support for additional copy/cut/past shortcut
- ctrl + insert (copy)
- shift + insert (paste)
- shift + delete (cut)
2024-01-27 15:12:08 +01:00
SirLynix 33374ed0c0 Widgets/TextAreaWidget: Improve text shifting when cursor is out of bounds 2024-01-26 16:16:13 +01:00
SirLynix c931e9a509 Widgets/TextAreaWidget: Add a way to limit text length 2024-01-26 16:15:53 +01:00
SirLynix f10671ac2a Core/StringExt: Add TrimLeftCount and TrimRightCount 2024-01-26 15:11:31 +01:00
SirLynix 22a047b3b1 Add tab outside of indent check 2024-01-26 14:38:59 +01:00
SirLynix 6757de1be8 Add end-of-line spaces checker 2024-01-26 10:43:00 +01:00
SirLynix d3fabf21d6 Core/Posix: Use _exit instead of exit for intermediary process 2024-01-26 10:07:26 +01:00
SirLynix 625b4f2d9f Core/StringExt: Add Substring family of function (unicode-aware) 2024-01-26 10:02:15 +01:00
SirLynix 2d3d7a670f Update to latest NazaraUtils version 2024-01-25 17:36:44 +01:00
SirLynix 9ada93b995 Remove spaces before line feed 2024-01-25 14:38:06 +01:00
SirLynix 771ab670c0 Widgets: Update default theme buttons to work better at low sizes 2024-01-25 10:16:10 +01:00
Lynix af55f9fcdb Fix unity build compilation on Windows 2024-01-24 20:34:18 +01:00
SirLynix a116f1fc8d Network: Add WebServiceAppComponent 2024-01-24 17:43:16 +01:00
SirLynix e01f6730ef Network/WebService: Add QueueRequest overload taking a builder functor 2024-01-24 17:42:43 +01:00
SirLynix e14614cf41 Update checkfiles system headers 2024-01-24 16:51:58 +01:00
SirLynix bb3b28279b Rename AppComponent classes (AppEntitySystemComponent => EntitySystemAppComponent) 2024-01-24 16:50:04 +01:00
SirLynix 496de948d2 Core/Posix: Fix O_CLOEXEC on pipes 2024-01-23 19:31:21 +01:00
SirLynix 37be90b1f7 Fix compilation on macOS 2024-01-23 19:31:21 +01:00
SirLynix a228325bd5 Add process unit tests 2024-01-23 19:31:21 +01:00
SirLynix a02990beff Core/Posix: Rework implementation (using posix_spawn) 2024-01-23 19:31:21 +01:00
SirLynix b63c9fcc49 Core/Process: Add Exists function 2024-01-23 19:31:21 +01:00
SirLynix b0648918a7 Core/Process: Add GetCurrentPid 2024-01-23 19:31:21 +01:00
SirLynix 9c102638c0 Fix unity build compilation 2024-01-23 19:31:21 +01:00
SirLynix 65c8d2e8de Add reference link 2024-01-23 19:31:21 +01:00
SirLynix 8ee128b475 Core/Process: Improve Posix implementation
- Handle chdir errors
- Calls _exit if execve failed
- Better format the code
2024-01-23 19:31:21 +01:00
SirLynix ac1422c221 Core: Add initial process support (Process::SpawnDetached) 2024-01-23 19:31:21 +01:00
SirLynix 278e59934b Fix compilation on macOS 2024-01-23 17:45:10 +01:00
SirLynix f4095d07a8 xmake check-files -f 2024-01-22 23:15:03 +01:00
SirLynix 05ee3d7a55 Core/Win32: Use native string instead of generic in Windows code 2024-01-22 23:08:31 +01:00
SirLynix 639f6708b0 Core/StringExt: Replace ptr + size by a view in IterateOnCodepoints parameter
Also increase buffer size to increase performance
2024-01-22 17:02:26 +01:00
SirLynix 8dab084037 Core/Win32: Add PathToWideTemp function 2024-01-22 16:58:12 +01:00
SirLynix 373309d6d9 Core: Move platform-specific code to PlatformImpl namespace 2024-01-22 16:49:21 +01:00
SirLynix 3557040246 Replace utf8cpp, Vulkan and VMA headers by xmake packages 2024-01-22 16:44:50 +01:00
SirLynix 0a433a8bd6 Core/FileLogger: Fix compilation 2024-01-16 18:15:38 +01:00
SirLynix 9b96503fde Remove test that was wrongly commited 2024-01-16 15:22:30 +01:00
SirLynix c8e07b3f3f Network/WebRequest: Fix missing option handling
That part belongs to f1de6f9198 but was not commited
2024-01-16 15:21:42 +01:00
SirLynix e355144bb6 Network/WebRequest: Add progress callback 2024-01-16 15:21:19 +01:00
SirLynix 964d32b34e Widgets: Add ProgressBarWidget 2024-01-16 14:13:06 +01:00
SirLynix bbef5cfd1d Color: Replace std::ostringstream usage by Format 2024-01-16 14:06:19 +01:00
Lynix ea4b8eaaea VulkanRenderer: Fix descriptor pool sizes when using arrays 2024-01-15 14:30:56 +01:00
SirLynix f1de6f9198 Network/WebRequest: Add option flags 2024-01-14 23:03:45 +01:00
SirLynix c52ffa15c4 Widgets/BoxLayout: Center widgets on the other axis 2024-01-14 22:04:02 +01:00
SirLynix db83413536 Graphics: Fix issue when unregistering viewer then adding it again before resources are cleaned 2024-01-14 16:01:55 +01:00
SirLynix 5c7059c8fc Minor fixes 2024-01-13 16:19:46 +01:00
SirLynix 6a4d3008c9 Fix compilation 2024-01-05 11:37:45 +01:00
SirLynix 2bdd6f9351 Graphics/Model: Add model loader 2024-01-05 11:24:25 +01:00
SirLynix 201ac025e2 Graphics: Fix compilation 2024-01-05 11:23:55 +01:00
SirLynix e8a362b695 Graphics/MaterialInstance: Add Build method 2024-01-04 17:47:54 +01:00
SirLynix 7ae76b32b0 Utility: Rework MaterialData 2024-01-04 17:47:41 +01:00
SirLynix 2125b80b8d Use std::string_view for strings 2024-01-04 14:40:50 +01:00
SirLynix 0cd8cff53e OpenGLRenderer: Minor improvements 2024-01-04 10:19:38 +01:00
SirLynix f46f0da12a Graphics/Shaders: Fix point and spot lights in PhysicallyBasedMaterial 2024-01-04 00:03:32 +01:00
SirLynix 5a96ab3bf7 Graphics/PipelinePassList: Add AddPass overload taking a pass name 2024-01-03 18:18:09 +01:00
SirLynix 14f51b31ca Fix a bunch of warnings 2024-01-03 18:17:52 +01:00
SirLynix cd8c1cb160 Replace reinterpret_cast from/to pointers to BitCast 2024-01-03 17:19:42 +01:00
SirLynix 6d1e7d7852 Fix compilation on Windows 2024-01-02 13:07:38 +01:00
SirLynix 7dc7104cc4 Update to latest nazarautils 2024-01-02 12:02:45 +01:00
SirLynix d2e2c075b4 Update copyright year 2024-01-02 12:02:14 +01:00
SirLynix 448cf66846 Minor fixes 2024-01-02 11:50:04 +01:00
Jérôme Leclercq 79ec135af7
Optimize out a lot of std::string construction and allocations (#415)
Update CommandLineParameters.hpp

Update CommandLineParametersTests.cpp

Update WebContext.hpp

xmake check-files -f

Fix MaterialPassRegistry
2023-12-30 14:50:57 +01:00
SirLynix 69efb93671 Network/IpAddress: Add a parameter to exclude port from string 2023-12-30 11:14:29 +01:00
Lynix 8a32c748bb Physics2D/ChipmunkRigidBody2D: Fix SetGeom 2023-12-28 17:47:15 +01:00
SirLynix 08eaf396ed Update to NazaraUtils 2023.12.28 2023-12-28 13:26:04 +01:00
SirLynix 3d21401569 Fix compilation on Windows < Vista 2023-12-28 13:25:33 +01:00
SirLynix 9da6e2ef8c ChipmunkPhysics2D: Fix kinematic body handling 2023-12-26 12:42:08 +01:00
SirLynix 0d3a9547fc Graphics/PipelinePassList: Fix error introduced by 9fb308a531 2023-12-26 12:41:48 +01:00
Lynix e1b3832643 Minor cleanup 2023-12-25 21:02:24 +01:00
Lynix 9fb308a531 Graphics/FramePipelinePass: Replace pointer + size by span 2023-12-25 20:05:45 +01:00
Lynix 4065fbfb1a Core/OpenMode: Rename ReadOnly/WriteOnly to Read/Write 2023-12-25 19:49:03 +01:00
SirLynix 91221a9b4a Minor changes 2023-12-23 14:01:04 +01:00
SirLynix 496800fc5c Graphics/UberShader: throw an exception if shader module couldn't be resolved 2023-12-21 00:08:30 +01:00
SirLynix 92e9a75ffa Platform: Add MessageBox 2023-12-21 00:08:14 +01:00
SirLynix 83366e93d4 Make changes for breaking NZSL update
Fix build

Fix compilation (again)

Fix global included

TextureAsset belongs to another branch

Add missing include

Fix include (should be good, finally)
2023-12-17 20:40:45 +01:00
SirLynix 87bf4563f2 Update auto-gen files 2023-12-17 16:00:44 +01:00
SirLynix 3514ac6340 Widgets/Canvas: Add mouse unhandled signals 2023-12-07 18:28:11 +01:00
SirLynix f2672f6376 Fix compilation 2023-12-07 17:14:20 +01:00
SirLynix 3fd696385d JoltPhysics3D/JoltPhysWorld3D: Add CollisionQuery for points and shapes 2023-12-07 16:49:48 +01:00
SirLynix 26dbdef50d JoltPhysics3D: Add elapsedTime parameter to PostSimulate 2023-12-07 16:45:46 +01:00
SirLynix 6cbfb01243 JoltPhysics3D: Allow raycast to return hit characters (and retrieve their entities) 2023-12-07 16:45:14 +01:00
SirLynix 5253a80a24 Audio: Fix compilation on emscripten | unity_build 2023-12-04 17:50:12 +01:00
SirLynix 3fb1096d07 Audio: Implement support for ALC_EXT_thread_local_context 2023-12-04 17:38:05 +01:00
SirLynix 3e1b61070c Audio/OpenALDevice: Fix previous commit 2023-12-04 17:37:40 +01:00
SirLynix b5576ccb9f Audio: Fix data race when a device is used from multiple threads
OpenAL devices can be used from multiple threads and the error handling code (inspired by OpenGLRenderer) did not take that into account. This is not a problem for the OpenGLRenderer since contexts are thread-local which is not the case for OpenAL devices.
2023-12-04 11:01:01 +01:00
SirLynix 81c5322331 Widgets/BoxLayout: Try to fix widget layout 2023-12-04 09:49:48 +01:00
SirLynix 0c29bce3d8 Utility/SubMesh: Allow tangent generation with 3D texcoords 2023-12-04 09:46:31 +01:00
Jérôme Leclercq 876023ffa9
Core: Fix use of std::bit_cast 2023-12-04 00:38:10 +01:00
SirLynix f75a00efe2 Audio: Fix loading of OpenAL extensions (pointers are context-local) 2023-12-04 00:23:39 +01:00
SirLynix 6059f608c0 Minor improvements 2023-12-04 00:22:36 +01:00
SirLynix f7f31431cb JoltPhysics3D/JoltRigidBody3D: Fix IsSleeping 2023-12-04 00:21:51 +01:00
SirLynix e8c594e325 Graphics/ForwardFramePipeline: Fix viewers ordering 2023-12-03 15:45:44 +01:00
SirLynix 27bc5d48e9 Graphics/ForwardFramePipeline: Fix crash with multiple viewers on a single target 2023-12-03 15:31:32 +01:00
SirLynix 73fc061412 Audio/Music: Remove unnecessary code
Play() blocks until the thread (and source) has started
2023-12-03 15:30:39 +01:00
Lynix 4ee4092bba Cleanup includes 2023-12-02 13:56:24 +01:00
Lynix dc9c1e14c4 Allow to use env vars to override module configs 2023-12-02 13:56:23 +01:00
Lynix 5472514f4b Core: Add EnvironmentVariables 2023-12-02 13:56:23 +01:00
Lynix ba7d2221d0 Audio/SourceEmitter: Throw exception if audio source couldn't be created 2023-12-02 13:56:23 +01:00