Commit Graph

2053 Commits

Author SHA1 Message Date
Jérôme Leclercq 3589a2bc8e Core/Flags: Reworked Flags class 2017-11-21 12:26:22 +01:00
Gawaboumga f991a9529e General bug fixes (#142)
* Core/Bitset: Fix TestAll method

* Fix documentation

* Fix color and their conversions

* Core/ByteStream: Fix return of Write

* Fix compiler warnings

* Math/Algorithm: Fix angle normalization

* Math/BoundingVolume: Fix lerp

* Math: Fix relation between Matrix4 and Quaternion

* More tests

* X11/Window: Fix mouse moved event generated when doing Mouse::SetPosition

* Update ChangeLog

* Should fix compilation on Windows

* Should fix compilation on Windows

Forgot to include array for Windows
2017-11-21 12:16:46 +01:00
Lynix f2506ee918 Network/ENetHost: Fix service time precision 2017-11-20 21:04:50 +01:00
Lynix 7eff1f34f1 Fix warning 2017-11-19 20:14:47 +01:00
Lynix 078641aa23 Core/Algorithm: Fix Unserialization of std::string 2017-11-05 22:36:14 +01:00
Lynix 786a11fc78 Graphics/Material: Fix missing reflection initialization 2017-10-31 00:14:50 +01:00
Lynix 8dab3bf341 Renderer/ShaderBuilder: Fix compilation error when including ShaderBuilder.hpp 2017-10-30 22:30:04 +01:00
Lynix d688cecbde Renderer: Replaced RenderTarget::Get[Height|Width] by RenderTarget::GetSize
Utility: Removed Window::Get[Height|Width] methods
2017-10-28 23:26:22 +02:00
Jérôme Leclercq bf82a34fc4 Graphics/Sprite: Fix #138 2017-10-26 15:33:30 +02:00
Lynix 9daadb73bc Utility: Make mesh loader use the parameters vertex declaration 2017-10-21 04:51:05 +02:00
Jérôme Leclercq 2951b7811e Merge branch 'master' of https://github.com/DigitalPulseSoftware/NazaraEngine 2017-10-20 16:36:45 +02:00
Jérôme Leclercq a982215ab7 Core/Bitset: Mark swap as noexcept 2017-10-20 16:36:43 +02:00
Lynix 995dfddafa Utility/MeshParam: Use constref instead of pointer 2017-10-19 21:05:48 +02:00
Lynix e0bdd35280 VertexMapper: GetComponentPtr no longer trigger an error/assert 2017-10-19 21:01:07 +02:00
Lynix be38aee1fa Fix some warnings 2017-10-18 22:02:21 +02:00
Lynix b47b89ed8b Utility/Mesh: Add index and vertex buffer flags in MeshParams 2017-10-18 00:29:34 +02:00
Lynix 9c97ec45c6 Utility/Mesh: Disable index buffer optimization in debug mode 2017-10-18 00:21:07 +02:00
Lynix 5b4185a4a6 Utility/VertexMapper: Add GetVertex[Buffer|Count] functions 2017-10-18 00:20:38 +02:00
Jérôme Leclercq 6e7b78611d Physics2D/RigidBody2D: Add SetStatic method 2017-10-16 11:56:41 +02:00
Lynix 9911c6e07c Core: Optimize StringStream 2017-10-15 12:25:08 +02:00
Lynix 46cf06f446 Fix previous commit oopsies 2017-10-14 18:27:37 +02:00
Lynix 683b09144d Core: Replace StackAllocation by StackArray
This will cleanup alloca usage a little bit
2017-10-14 18:04:16 +02:00
Jérôme Leclercq 101783126c Physics2D: Add DebugDraw method 2017-10-13 15:14:37 +02:00
Lynix 4bdcb1f31f Fix demo compilation and warnings 2017-10-10 21:52:36 +02:00
Lynix eb6f23d53c Fix -Wignored-qualifiers warning 2017-10-10 21:52:35 +02:00
Lynix 85aa01a562 Physics2D: Add constraint support 2017-10-10 21:52:35 +02:00
Lynix a39ed47ef4 Regenerate global headers 2017-10-10 21:52:34 +02:00
Lynix c763dea4e1 Merge branch 'master' into reflection-mapping 2017-10-02 21:11:15 +02:00
Jérôme Leclercq 99d21b8722 Fix compilation and some warnings 2017-10-02 16:18:15 +02:00
larnin 40a678889d Vertex declaration changes (#135)
* Add type to ComponentType conversion

* Change type to ComponentType conversion

* Change assert to condition, add check on particle mapper.

* Change particle life type

* Changes as requested

* Fix Travis try 1

* Changes as requested

* move IsSuitableForComponent to inl
2017-10-02 15:21:03 +02:00
Gawaboumga bbac0838dd Include-What-You-Use (#137)
* IWYU Core

* IWYU Noise

* IWYU Utility

* IWYU Audio

* IWYU Platform

* IWYU Lua

* IWYU Network

* IWYU Physics2D

* IWYU Physics3D

* IWYU Renderer

* IWYU Graphics

* IWYU NDKServer

* IWYU Fix

* Try to fix compilation

* Other fixes
2017-10-01 11:17:09 +02:00
Lynix 8569d7da88 Renderer: Make RenderTarget movable 2017-09-30 15:00:54 +02:00
Lynix 508554fcb1 Fix some more warnings 2017-09-30 15:00:42 +02:00
Lynix 0fa3565435 Renderer/Context: Disable movement 2017-09-30 14:53:58 +02:00
Lynix 396fd79c9a Audio: Disable movement for musics 2017-09-30 14:45:30 +02:00
Lynix 85442a14fa Fix: SoundBuffer should not move (as a refcount) 2017-09-30 14:35:26 +02:00
Lynix aa80f52597 Fix compilation 2017-09-30 14:30:36 +02:00
Lynix 2cd9fa2b7a Core: Add MovablePtr class 2017-09-30 13:57:25 +02:00
Jérôme Leclercq cc4fdf2476 Network/ENet: Add compressor support 2017-09-22 15:22:43 +02:00
Jérôme Leclercq b4d0854028 Physics2D/PhysWorld2D: Add damping control 2017-09-08 09:41:08 +02:00
Jérôme Leclercq 3153af485c Physics2D: Handle kinematic objects properly 2017-09-07 16:16:11 +02:00
Jérôme Leclercq 305a72a7d2 Lua/LuaState: Fix movement not stealing pointer 2017-09-04 10:05:23 +02:00
Jérôme Leclercq e37a7ad5fd Network/ENetHost: Dismiss external peer connection if listen address is loopback 2017-09-01 15:22:27 +02:00
Jérôme Leclercq 38bd348ed6 Physics2D/RigidBody2D: Allows better control on inertia 2017-09-01 14:26:28 +02:00
Lynix 923ffb6d0a Renderer/ShaderAst: Fix missing file from previous commit 2017-08-30 18:21:44 +02:00
Lynix cb69b1ed01 Renderer/ShaderAst: Add ConditionalStatement 2017-08-30 18:21:44 +02:00
Lynix 205b8b1ba6 Renderer/ShaderAst: Add Swizzle 2017-08-30 18:21:43 +02:00
Lynix 832237c6d4 Renderer/ShaderAst: Fix a few multiply/divide cases 2017-08-30 18:21:42 +02:00
Lynix fd5bf16a90 Renderer/ShaderBuild: Fix build? 2017-08-30 18:21:42 +02:00
Lynix 8a68df4c56 Forgot to save all files.. 2017-08-30 18:21:41 +02:00
Lynix f0a7430d34 Renderer/ShaderAst: Fix compilation errors on Linux 2017-08-30 18:21:40 +02:00
Lynix bd8a3ba47d Renderer: Replace shaders files by runtime-generated GLSL 2017-08-30 18:21:40 +02:00
Lynix 8fd152aec0 Renderer/ShaderAst: Rename Builtin enum to BuiltinEntry 2017-08-30 18:21:39 +02:00
Lynix a60836c45a Revert "Renderer/ShaderBuilder: Rename Builtin to BuiltinVariable"
This reverts commit 193c0d4a92.
2017-08-30 18:21:38 +02:00
Lynix f72b3ed57d Renderer/ShaderBuilder: Rename Builtin to BuiltinVariable 2017-08-30 18:21:37 +02:00
Lynix a5a228e0c7 Renderer/ShaderAst: Add Constant overloads 2017-08-30 18:21:36 +02:00
Lynix 021ac3d971 Renderer/ShaderAst: Fix Mat4x4 handling 2017-08-30 18:21:36 +02:00
Lynix 10a1bec793 Renderer/ShaderAst: Fix support for matrix4 type 2017-08-30 18:21:35 +02:00
Lynix 2a57af9896 Renderer/ShaderAst: Add Cast node 2017-08-30 18:21:34 +02:00
Lynix a84391cf08 Renderer/ShaderAst: Add support for expression type 2017-08-30 18:21:33 +02:00
Lynix 12321bc59a Renderer/ShaderBuilder: Add builder for remaining binary operations 2017-08-30 18:21:33 +02:00
Lynix 3ed661f387 Renderer/ShaderAst: Add input and outputs variables 2017-08-30 18:21:32 +02:00
Lynix f7c4c86934 Renderer/ShaderBuilder: Cleanup 2017-08-30 18:21:31 +02:00
Lynix 386c3b1132 Renderer/ShaderBuilder: Add builder for builtins 2017-08-30 18:21:30 +02:00
Lynix e82fb7fef4 Renderer/ShaderAst: Add NamedVariable and BuiltinVariable classes 2017-08-30 18:21:30 +02:00
Lynix 43e23fea47 Renderer/GlslWriter: Add comment sections 2017-08-30 18:21:29 +02:00
Lynix f487761940 Renderer/GlslWriter: Add #version directive 2017-08-30 18:21:28 +02:00
Lynix d538a7ddf5 Renderer/GlslWriter: Add support for Uniform and Parameters variables 2017-08-30 18:21:27 +02:00
Lynix 5c3e67bb26 Renderer/GlslWriter: Move variables to the function scope 2017-08-30 18:21:26 +02:00
Lynix 5c6df52fbf Commit current work 2017-08-30 18:21:25 +02:00
Gawaboumga 5aa072cee3 New module: Platform - Split window management from Utility module (#128)
* New module: Platform - Split window management from Utility module

Final touch

* NDK/SDK: Bring back initialization of Utility
2017-08-30 10:22:50 +02:00
Gawaboumga 41a1b5d493 Physics2D tests (#129)
* Quaternion: Fix singularity on Z axis when converting to euler angles

* CollisionComponent2D: Add method to retrieve AABB

* Collider2D: Fix constructor for Box with Vector2

* Physics2D: Fix rotation (Chipmunk works with radian and Nazara degrees) and copy constructor of RigidBody2D

* Colider2D: Add New for convex and tests for the new classes
2017-08-20 21:47:23 +02:00
Lynix 9613ad5de6 Merge branch 'master' of https://github.com/DigitalPulseSoftware/NazaraEngine 2017-08-16 20:33:40 +02:00
Lynix 2fe905a453 Increase instance buffer size 2017-08-16 20:33:37 +02:00
Lynix fc2fd81719 Utility: Make Window constructor explicit 2017-08-16 20:33:13 +02:00
Jérôme Leclercq 5531e81e65 Core: Add CRC64 and regenerate global headers 2017-08-15 12:32:19 +02:00
Lynix e512302305 RigidBody2D: Add experimental SetMomentOfInertia method 2017-08-06 23:46:55 +02:00
Lynix 74af157113 PhysWorld2D: Use std::function for callbacks 2017-08-06 23:08:36 +02:00
Jérôme Leclercq 3d368b2fe7 Network/SocketPoller: Fix behavior of Wait method (-1 will block) 2017-08-04 13:37:17 +02:00
Jérôme Leclercq b64ab862fe Fix warnings 2017-07-27 14:39:48 +02:00
Jérôme Leclercq 6047018082 Physics3D/Collider3D: Improve CompoundCollider3D constructor 2017-07-27 11:40:42 +02:00
Jérôme Leclercq afdc018778 Physics2D/Collider2D: Implement CompoundCollider2D and ConvexCollider2D 2017-07-27 11:39:23 +02:00
Jérôme Leclercq b00487c88c PhysicsID/RigidBody: Add GetWorld() accessor 2017-07-25 14:44:30 +02:00
Jérôme Leclercq b4732d8c17 Add Udp::ReceiveMultiple method 2017-07-11 12:11:20 +02:00
Jérôme Leclercq 2ca844be63 Merge branch 'master' of https://github.com/DigitalPulseSoftware/NazaraEngine 2017-06-21 18:10:51 +02:00
Jérôme Leclercq b2e23cfb56 Mark every bool conversion as explicit 2017-06-21 18:10:46 +02:00
Lynix 90d86c6eb0 Breaks compatibility with Windows XP by default 2017-06-20 08:16:43 +02:00
Lynix 50a3f78f91 Core/Thread: Add posibility of setting thread name 2017-06-20 08:16:08 +02:00
Lynix 4a1a335cee Core/Flags: Fix compilation
Oops..
2017-06-20 07:06:50 +02:00
Lynix dfc441c2fc Core/Flags: Rename DetailFlagOperators to FlagsOperators
In case a user would need to use it
2017-06-20 06:57:57 +02:00
Jérôme Leclercq 5c63d30545 Lua/LuaInstance: Fix typo 2017-06-15 17:08:24 +02:00
Lynix 7875854e7d Lua/Binding: Fix unsigned integer binding 2017-06-12 14:42:36 +02:00
Lynix 487bd64bcf Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-06-10 22:33:03 +02:00
Lynix a82de92377 Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-06-10 22:29:31 +02:00
Lynix 78182502e3 Lua/LuaInstance: Fix missing memory/time methods 2017-06-10 22:29:17 +02:00
Lynix cea89abc51 Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-06-09 01:47:33 +02:00
Lynix 4ce7db09d6 Lua/LuaCoroutine: Fix inline include 2017-06-09 01:47:15 +02:00
Lynix 9117deb609 Update global headers 2017-06-09 01:46:04 +02:00
Jérôme Leclercq 01edc4fb21 Add coroutine support (WIP) 2017-06-08 15:53:17 +02:00
Jérôme Leclercq a8129b218b Refactor LuaInstance to prepare coroutine handling 2017-06-07 21:18:07 +02:00
Jérôme Leclercq b7df3bd1c4 Core/Flags: Try some hack to fix compilation 2017-06-06 18:08:36 +02:00
Jérôme Leclercq 184a970b72 Fix all flags.. 2017-06-06 16:50:09 +02:00
Lynix c98fb482e7 Network/ENetPeer: Add GetRoundTripTime method 2017-06-05 15:06:19 +02:00
Lynix e32c1a8b8b Utility/PixelFormat: Move Flip to .cpp
Because of std::swap_range usage (Thanks Microsoft)
2017-06-04 17:28:58 +02:00
Jérôme Leclercq 17d9cd6e7d Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-06-01 17:25:33 +02:00
Jérôme Leclercq 8752d1e0f4 Network: Add ErrorToString for ResolveError/SocketError 2017-06-01 17:25:21 +02:00
Jérôme Leclercq 4f1d52b395 Fix [Box|Rect]::Contains including outer border points 2017-06-01 17:24:28 +02:00
Jérôme Leclercq 421dbf54f2 Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-05-29 19:55:50 +02:00
Jérôme Leclercq bc4a533b96 Core/ParameterList: Use double and long long instead of float and int 2017-05-29 19:55:02 +02:00
Jérôme Leclercq 7cce74afb7 Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-05-29 18:01:44 +02:00
Jérôme Leclercq 30a4e20ee5 Lua/LuaInstance: Expose some raw functions 2017-05-29 18:01:31 +02:00
Jérôme Leclercq 3e97240148 Core/ParameterList: Add ForEach methods 2017-05-29 18:01:19 +02:00
Lynix 555f44edeb Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-05-19 16:32:07 +02:00
Lynix 53f865c42c Merge branch 'enet_wip_nothing_to_see_here' of https://github.com/DigitalPulseSoftware/NazaraEngine into enet_wip_nothing_to_see_here 2017-05-19 16:31:31 +02:00
Lynix 3ca179b954 Network/ENet: Separate Connect event into OutgoingConnect and IncomingConnect 2017-05-19 16:31:29 +02:00
Jérôme Leclercq 09bace0f28 Sdk/LuaBinding: Bind UdpSocket 2017-05-18 11:44:28 +02:00
Lynix 9a30a7ee04 Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-05-16 09:08:37 +02:00
Lynix 65d3b59e03 Network/SocketPoller: Makes it possible to watch read and write states 2017-05-16 09:07:28 +02:00
Lynix 75d57b3c29 Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-05-11 20:52:04 +02:00
Lynix af41b240ad Graphics: Add support for depth-sorted sprites 2017-04-23 13:40:13 +02:00
Lynix 52a4a590e1 Graphics/Material: Fix depth sorting flag handling for meshes 2017-04-22 17:13:51 +02:00
Lynix 883d7b02a7 Math/Algorithm: Optimize NumberEquals unsigned and float cases 2017-04-22 15:08:43 +02:00
Lynix 06038a4d81 Cleanup pass 2017-04-22 15:08:05 +02:00
Lynix 140e52203d Graphics/ForwardRenderQueue: Cleanup a bit 2017-04-21 21:48:05 +02:00
Lynix 33b10989e2 Physics2D/PhysWorld2D: Initialize callbacks to nullptr to prevent misuse 2017-04-21 21:39:37 +02:00
Lynix 1305e8434a Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-04-17 23:42:21 +02:00
Lynix f7cd52d947 Small update 2017-04-17 17:39:26 +02:00
1d44adf23a Merge branch 'master' into enet_wip_nothing_to_see_here 2017-04-14 16:56:49 +02:00
Jérôme Leclercq 7b4f438065 Math/Algorithm: Fix NumberEquals for signed integers 2017-04-14 16:53:03 +02:00
Jérôme Leclercq be4f0ad00c Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-04-05 15:58:09 +02:00
Jérôme Leclercq ca4a93c4af Fix compilation error on Linux 2017-04-05 15:57:54 +02:00
Jérôme Leclercq 660cddba34 Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-04-05 10:11:01 +02:00
Lynix bb272c57f5 Lua/LuaInstance: Fix movement 2017-03-30 18:43:05 +02:00
Lynix 5ec913311f Physics2D/PhysWorld2D: Add RegionQuery method 2017-03-30 16:32:29 +02:00
Lynix 6851428c3c Components/GraphicsComponent: Watch every used material to handle reflective information 2017-03-28 23:36:08 +02:00
Lynix 447ef235c1 Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-03-25 10:12:15 +01:00
Lynix 6d0314741a Core/ObjectHandle: Fix self-movement case 2017-03-25 10:12:01 +01:00
Lynix 65393d98fb Graphics/Material: Add SetReflectionMode 2017-03-19 17:01:48 +01:00
Lynix 62fd66a159 Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-03-18 17:23:12 +01:00
Lynix c766387567 Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-03-10 17:10:36 +01:00
Lynix 82edb5c7cb Core/Signal: Fix compilation 2017-03-10 17:10:11 +01:00
Lynix 9531edfffc Core/Signal: Fix move behaviour with GCC 4.9 .... 2017-03-10 17:07:40 +01:00
Lynix c5c5beef92 Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-03-10 11:37:19 +01:00
Lynix 4d932e9317 PhysWorld2D: Ensure PostStepContainer is move-constructible noexcept 2017-03-10 11:36:58 +01:00
Lynix 353ade3efd Core/Signal: Make movement noexcept 2017-03-10 11:36:48 +01:00
Lynix 2cf1d5ddfc Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-03-09 18:20:30 +01:00
Lynix cdf7c11ef8 Fix crash when RigidBody2D is moved while having poststeps 2017-03-09 18:20:18 +01:00
Jérôme Leclercq 247186fe55 Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-03-07 09:36:47 +01:00
Jérôme Leclercq 78d6a69bcb Physics2D/PhysWorld2D: Fix SetMass calls during callbacks 2017-03-07 09:36:29 +01:00
Jérôme Leclercq 4259ad8c9d Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here 2017-03-06 14:02:46 +01:00