Commit Graph

537 Commits

Author SHA1 Message Date
SirLynix
caf8446707 Math: Remove Algorithm file and move string functions to StringExt 2023-06-06 08:59:58 +02:00
Jérôme Leclercq
c87c45f332 Fix missing include 2023-06-05 20:46:54 +02:00
SirLynix
b9c1559d97 Random code cleanup 2023-06-05 18:05:16 +02:00
Jérôme Leclercq
1a55b550fb Improve math module (#396)
* Improve math module

- Mark almost everything constexpr
- Equality (a == b) is now exact, down to the bit level. If you want approximate equality use the new ApproxEqual method/static method
- Rename Nz::Extend to Nz::Extent
- Removed Make[] and Set[] methods in favor of their static counterpart and operator=
2023-06-02 22:30:51 +02:00
SirLynix
d310bf478b Core/VirtualDirectoryFilesystemResolver: Fix unicode path 2023-05-30 19:09:11 +02:00
SirLynix
2886a2e0c0 Rename EnumMap to EnumArray after nazarautils update 2023-05-30 13:49:19 +02:00
SirLynix
dfe6b2ddcf Make use of the new EnumMap class 2023-05-30 12:32:37 +02:00
SirLynix
34b8bb5d65 Core/Resource: Pass filePath by value and move to prevent useless copy 2023-05-15 08:31:42 +02:00
SirLynix
bbbd3f88c1 Core: Add DisabledComponent (to temporary disable an entity) 2023-05-07 22:43:48 +02:00
SirLynix
c69397707e Core: Add StateMachine
Backported from legacy Nazara
2023-05-07 22:42:54 +02:00
SirLynix
9aeaaa9495 Core/Application: Fix updater elapsed time 2023-05-06 15:44:52 +02:00
SirLynix
3e4f32140e Core/ApplicationBase: Fix elapsedTime in updaters for non-fixed intervals 2023-05-01 18:03:01 +02:00
SirLynix
de5e7bd8a8 Core/ApplicationBase: Add support for updaters with intervals 2023-04-23 19:45:33 +02:00
SirLynix
cdb4ff2de9 Fix compilation on wasm 2023-04-12 15:31:04 +02:00
SirLynix
f034e71ba4 Core/HardwareInfo: Fix compilation for other arch than x86 2023-04-12 14:10:55 +02:00
SirLynix
6d8734f288 Add support for ARM64 on Windows 2023-04-11 18:15:29 +02:00
Lynix
a3f7c437f4 Fix compilation with nazarautils changes 2023-04-03 14:02:55 +02:00
Lynix
f2bc00d2ea Core: Skip conversion to UTF-16 if filesystem::path is based on it 2023-04-03 12:51:26 +02:00
SirLynix
23cccaaf99 Core/ApplicationBase: Execute updaters before updating components 2023-03-25 14:47:47 +01:00
SirLynix
9b4d297c04 Update includes for new NazaraUtils version 2023-03-19 13:01:56 +01:00
SirLynix
a414afec24 Core: Update unicode data 2023-03-14 18:06:23 +01:00
SirLynix
b28a0a8748 OCD fix 2023-03-10 13:25:37 +01:00
SirLynix
c67e290b51 Core/ResourceParameters: Add virtual destructor (fix render device destruction) 2023-03-09 17:48:52 +01:00
SirLynix
36dd245564 Core: Rework VirtualDirectory to allow custom directory resolving 2023-03-03 13:21:48 +01:00
SirLynix
0494a72849 Core/Stream: Add HashAppend overload 2023-03-03 13:19:12 +01:00
SirLynix
34abeeb7bd Core/Stream: Add MemoryMapped stream options (allowing for direct memory access) 2023-03-03 13:18:51 +01:00
SirLynix
2629d2052e xmake check-files -f 2023-03-03 13:16:13 +01:00
SirLynix
6bf4304817 Core/File: Add OpenMode::Defer 2023-03-03 13:14:28 +01:00
SirLynix
b38f9dc79b Core/Log: Pass string_view by value instead of ref 2023-02-22 19:04:07 +01:00
SirLynix
5a57aca66a Last changes 2023-02-02 20:34:25 +01:00
SirLynix
cee75dcc11 Merge fixes 2023-02-02 20:34:25 +01:00
SirLynix
292ca60592 WIP 2023-02-02 20:34:25 +01:00
SirLynix
5b3703347f OpenGLRenderer: Use a single context with WebGL 2023-02-02 20:34:25 +01:00
REMqb
f172330aaf ~ WIP port emscripen (WebGL) 2023-02-02 20:34:25 +01:00
SirLynix
35172f5028 Fix some warnings 2023-02-02 13:28:36 +01:00
SirLynix
ee1a98b761 Core/PluginLoader: Add NAZARA_PLUGIN_DIR environment variable 2023-01-29 20:00:18 +01:00
SirLynix
97fa4d98be Rework EnTT integration
- Update EnTT to 3.11.1
- Moved EnTT wrapper to EnTTWorld, inheriting EntityWorld
- AppEntitySystemComponent can now handles multiple EntityWorld
- Headers relying on EnTT are now automatically included if NAZARA_ENTT is defined
- Renamed SystemGraph to EnttSystemGraph (as it depends on it for now)
2023-01-28 19:28:43 +01:00
SirLynix
24bc1dac1c Core/StringExt: Refactor WideConverter 2023-01-23 13:24:53 +01:00
SirLynix
ca0c4a5db7 Core: Add AppFilesystemComponent 2023-01-22 18:00:26 +01:00
SirLynix
f98cbcd00a Copyright year update 2023-01-22 17:41:18 +01:00
SirLynix
2b7ff9274c Core/Application: Add updaters 2023-01-22 12:37:58 +01:00
SirLynix
da9eb14ebe Handle windows and EnTT with application components 2023-01-22 12:37:58 +01:00
Lynix
8db1c04568 Make Application template and responsible for modules init 2023-01-22 12:37:58 +01:00
SirLynix
04bfa97579 Add Application base classes (WIP) 2023-01-22 12:37:58 +01:00
Jérôme Leclercq
dd421a6385 Replace float/UInt64 durations by a more precise Time class (#388)
Improve Clock class with atomic RestartIfOver method and allows to choose required precision
2022-12-29 21:31:46 +01:00
SirLynix
2243d0b1a7 Move free operator overloads inside Nz namespace 2022-12-29 12:15:22 +01:00
SirLynix
763bef3fdd Core: Make Uuid constexpr 2022-12-29 12:13:18 +01:00
SirLynix
9a553e5e9d Core: Make Color constexpr 2022-12-29 12:13:00 +01:00
SirLynix
6d0b53b39e Core: Rework HardwareInfo 2022-09-24 15:52:29 +02:00
SirLynix
9cd7976a91 Remove "MemoryManager" and very old code 2022-09-24 14:25:52 +02:00