Commit Graph

795 Commits

Author SHA1 Message Date
Lynix dc6fbfc90f Replace floating point angle by Angle class instance 2018-10-09 23:20:53 +02:00
Lynix f02f206aff SDK/PhysicsComponent2D: Allow massless bodies 2018-10-07 17:34:46 +02:00
Lynix 5108eb8906 Sdk/EntityOwner: Make Entity* constructor implicit 2018-10-01 23:14:02 +02:00
Lynix f6b0405f9b Sdk/RenderSystem: Resolve skinning before rendering 2018-09-30 18:08:17 +02:00
Jérôme Leclercq 53aa9ea170 Layouts (#189)
* Layout WIP

* Widgets/BoxLayout: Fix layout algorithm

* Widgets/BoxLayout: Fix box layout algorithm for good

* SDK/Widgets: Remove padding

* Sdk/Widgets: Make use of minimum/preferred size

* Sdk/TextAreaWidget: Add Minimum/PreferredSize to TextArea

* Sdk/Widgets: Add height/width variants of get/set fixed, maximum, minimum and preferred size methods

* Sdk/BoxLayout: Remove useless code

* Sdk/TextAreaWidget: Fix compilation

* Widgets/TextAreaWidget: Fix cursor position
2018-09-11 21:03:44 +02:00
Faymoon 7c5b0df96c Make all component inherits of HandledObject (#185)
* Update

* Add: [Get/Set]AngularDaming for standardization

* Fix: Name error

* Add: [Get/Set][AngularDamping/MomentOfInertia] in PhysicsComponent2D

* Forgot in last commit

* Add: param coordSys in [PhysicsComponent2D/RigidBody2D]::SetMassCenter

* Add: Some forgotten inline

* Fix little error

* Fix: Indentation before case

* Move and Change GetCenterOfGravity

* Rename m_world into m_physWorld

* Rename GetWorld int GetPhysWorld

* Update: PhysicsSystem2D became an interface of PhysWorld2D

* Update Collison/PhysicsComponent because GetWorld was renamed

* Update tests

* Update: Make the interface usable with Entity instead of PhysicsComponent

* Update: Make GetPhysWorld private

* Update PhysicsSystem2D.hpp

* Update: indent

* Remove: useless blank line

* update order(?)

* Update PhysicsSystem2D.hpp

* Add calls to GetPhysWorld to attempt a nullptr value

* update include

* little fix

* add some missing inline

* Fix

* Make all component inherits of HandledObject

* fix: compilation error

* Add Handle alias for all Components

* forgot in last commit
2018-09-08 10:28:25 +02:00
Jérôme Leclercq 02383b1c0b Sdk/GraphicsComponent: Invalidates culling when adding/removing renderables 2018-09-07 13:34:55 +02:00
Jérôme Leclercq b019fc4f6d Sdk/GraphicsComponent: Fix generated AABB 2018-09-07 13:26:14 +02:00
Lynix 566e5b4dcf Sdk/DebugSystem: Increase line width to 2 2018-08-31 22:01:21 +02:00
Lynix a5c2a433f8 Sdk/DebugSystem: Draw global AABB in orange 2018-08-31 22:01:06 +02:00
Lynix 8ce8eafb88 Sdk/DebugSystem: Fix AABB/OBB debug draw 2018-08-31 21:45:57 +02:00
Lynix b739965b1d Graphics/RenderSystem: Add supports for partial culling 2018-08-31 21:45:35 +02:00
Jérôme Leclercq e42ff5b18a Sdk/GraphicsComponent: Remake bounding volume handling
GraphicsComponent now only have an AABB but their instanced renderable now have individual BoundingVolume
2018-08-31 17:32:48 +02:00
Jérôme Leclercq 7bb6c84752 Graphics/CullingList: Improve culling list
- Now supports box culling
- Removed branch
- Removed complex hash combination and replaced it with a much faster algorithm
- It now supports partial visibility
2018-08-31 17:26:50 +02:00
Lynix 109e6a89ca Sdk/PhysicsSystem2D: Removed copy constructor 2018-08-28 22:05:31 +02:00
Lynix 78faacf03f PhysicsSystem2D: Fix RegisterCallbacks for good
Allowing move instead of forcing copy
Fixing RegisterCallbacks overload
2018-08-28 22:05:15 +02:00
Lynix cd0647008c SDK/PhysicsSystem2D: Fix temporary taken by reference 2018-08-28 21:56:32 +02:00
Lynix fd9db1b639 Graphics/CullingList: Add forceInvalidation parameter 2018-08-25 22:41:34 +02:00
Faymoon 2db5273d36 Fix (#184) 2018-08-23 17:29:02 +02:00
S6066 d83c12c2d3 TextAreaWidget: Make Tab writable (#175)
* TextAreaWidget: Make Tab writable

* Implement Tab ena/disabling, disable it by default

* Log change

* Rename Tab Enabling function

* Add useful Write/Delete functions

* Finished!

* whoops

* Fix everything

* whoops

* I don't know why but it works

* whoops

* I'M PUSHING.
2018-08-14 20:53:26 +02:00
Faymoon beca6e7dd5 little fixes (#183)
* Update

* Add: [Get/Set]AngularDaming for standardization

* Fix: Name error

* Add: [Get/Set][AngularDamping/MomentOfInertia] in PhysicsComponent2D

* Forgot in last commit

* Add: param coordSys in [PhysicsComponent2D/RigidBody2D]::SetMassCenter

* Add: Some forgotten inline

* Fix little error

* Fix: Indentation before case

* Move and Change GetCenterOfGravity

* Rename m_world into m_physWorld

* Rename GetWorld int GetPhysWorld

* Update: PhysicsSystem2D became an interface of PhysWorld2D

* Update Collison/PhysicsComponent because GetWorld was renamed

* Update tests

* Update: Make the interface usable with Entity instead of PhysicsComponent

* Update: Make GetPhysWorld private

* Update PhysicsSystem2D.hpp

* Update: indent

* Remove: useless blank line

* update order(?)

* Update PhysicsSystem2D.hpp

* Add calls to GetPhysWorld to attempt a nullptr value

* update include

* little fix

* add some missing inline
2018-08-14 18:44:41 +02:00
Lynix 8ffe7f14ba Merge branch 'master' of https://github.com/DigitalPulseSoftware/NazaraEngine 2018-08-08 10:34:32 +02:00
Faymoon 0a5e9e040d Update PhysicsSystem2D (#179)
* Update

* Add: [Get/Set]AngularDaming for standardization

* Fix: Name error

* Add: [Get/Set][AngularDamping/MomentOfInertia] in PhysicsComponent2D

* Forgot in last commit

* Add: param coordSys in [PhysicsComponent2D/RigidBody2D]::SetMassCenter

* Add: Some forgotten inline

* Fix little error

* Fix: Indentation before case

* Move and Change GetCenterOfGravity

* Rename m_world into m_physWorld

* Rename GetWorld int GetPhysWorld

* Update: PhysicsSystem2D became an interface of PhysWorld2D

* Update Collison/PhysicsComponent because GetWorld was renamed

* Update tests

* Update: Make the interface usable with Entity instead of PhysicsComponent

* Update: Make GetPhysWorld private

* Update PhysicsSystem2D.hpp

* Update: indent

* Remove: useless blank line

* update order(?)

* Update PhysicsSystem2D.hpp
2018-08-07 19:08:01 +02:00
Lynix 5bb16ab016 Revert "Sdk/DebugSystem: Fix OBB drawing"
This reverts commit a12c72186f.
2018-08-05 15:09:26 +02:00
Lynix 602992609f Sdk/RenderSystem: Add EnableCulling method 2018-08-04 15:38:05 +02:00
S6066 cf24b8abe4 TextAreaWidget: Implement movement with Ctrl key (#176)
* TextAreaWidget: Implement movement with Ctrl key

* whoops, remove useless comments

* Fixies
2018-08-03 08:45:42 +02:00
S6066 05f277deeb Ndk/TextAreaWidget: Add possibility to write only one specific character category (#174)
* Ndk/TextAreaWidget: Add possibility to write only one specific character category

* Add support for multiple categories

* Use a predicate instead of an enum

* Log change

*  String::FindLast/FindWord: Fix bug where index wouldn't be used (#177)

* String::FindLast/FindWord: Fix bug where index wouldn't be used

* Log change

* Update Physics2D Component and Body (#178)

* Update

* Add: [Get/Set]AngularDaming for standardization

* Fix: Name error

* Add: [Get/Set][AngularDamping/MomentOfInertia] in PhysicsComponent2D

* Forgot in last commit

* Add: param coordSys in [PhysicsComponent2D/RigidBody2D]::SetMassCenter

* Add: Some forgotten inline

* Fix little error

* Fix: Indentation before case

* Move and Change GetCenterOfGravity

* Physics2D: Add Arbiter2D

* Fix deprecation warning

* Fix units tests :derp:

* Fixies
2018-08-03 08:43:48 +02:00
Jérôme Leclercq 6ab4a676c2 Fix deprecation warning 2018-08-02 15:43:18 +02:00
Faymoon 2f3f02b2fc Update Physics2D Component and Body (#178)
* Update

* Add: [Get/Set]AngularDaming for standardization

* Fix: Name error

* Add: [Get/Set][AngularDamping/MomentOfInertia] in PhysicsComponent2D

* Forgot in last commit

* Add: param coordSys in [PhysicsComponent2D/RigidBody2D]::SetMassCenter

* Add: Some forgotten inline

* Fix little error

* Fix: Indentation before case

* Move and Change GetCenterOfGravity
2018-08-02 11:25:57 +02:00
S6066 d91c48ab50 Widgets: Force parent parameter to be present (#172) 2018-07-31 13:24:28 +02:00
Jérôme Leclercq 7b6cc47e03 Sdk/Entity: Add IsDying method 2018-07-17 10:51:35 +02:00
Lynix f2487bbcba Merge branch 'master' of https://github.com/DigitalPulseSoftware/NazaraEngine 2018-07-15 16:46:34 +02:00
Lynix a12c72186f Sdk/DebugSystem: Fix OBB drawing 2018-07-15 16:46:32 +02:00
S6066 49d33bea55 Implement LuaImpl* for Vector[2|3]<int> (#170)
* Implement LuaImplQueryArg for Vector[2|3]i

* Implement LuaImplReplyVal for Vector[2|3]i

* Edit changelog

* Fix previous commit crash

* Network/ENetPeer: Fix reliable sequence number wrap error

* Edit changelog

* what have I done to changelog
2018-07-10 14:48:23 +02:00
Lynix 6390da95d3 Fix previous commit crash 2018-07-07 14:35:11 +02:00
Jérôme Leclercq cb6885d6a9 Graphics/CullingList: Fix compilation errors on MSVC with /permissive- 2018-07-06 15:24:30 +02:00
S6066 858d0da5f2 Fix Sprite & GraphicsComponent copy constructors leaving some members uninitialized (#166)
* Fix Sprite copy constructor (corner colors)

* Also add change to changelog

* [GraphicsComponent] Bugfix: Initialize m_scissorRect in copy ctor

* Add change to changelog

* Move GraphicsComponent fix change to correct section in Changelog

* Use default copy constructor for Sprite
2018-06-17 18:54:02 +02:00
Jérôme Leclercq b2185f2138 Physics2D/RigidBody2D: Add ClosestPointQuery method 2018-06-12 15:11:16 +02:00
Jérôme Leclercq 56b23a2f27 Network/SocketPoller: Wait() now returns the number of active sockets, and optionally the last error
It will also ignore the EINTR error on Linux
2018-06-12 14:31:49 +02:00
Jérôme Leclercq 15f84dc712 Noexcept all the things! 2018-06-12 11:37:44 +02:00
Lynix 0bea301a48 Fixed some uninitialized variables 2018-06-09 13:59:35 +02:00
Lynix 056bd0efdd SDK/GraphicsComponent: Add ForEachRenderable method 2018-06-06 19:37:58 +02:00
Lynix bc2f6f67cc Graphics/InstancedRenderable: Add Clone method 2018-06-06 19:36:46 +02:00
Jérôme Leclercq adab3cbc93 Sdk/DebugSystem: Fix OBB not taking offset in account 2018-05-03 13:33:29 +02:00
Jérôme Leclercq d94baf133b Utility/Mesh: Refactor Mesh & Submeshes 2018-05-03 13:32:17 +02:00
Lynix 4a6d9dba51 Sdk/EntityOwner: Fix move assignement operator 2018-04-24 21:55:55 +02:00
Lynix 97067cb566 Sdk/Entity: Fix movement
Fixes OnEntityDestruction not being moved
2018-04-22 12:46:41 +02:00
Lynix 2147156df9 RenderSystem: Temporary fix for lights not changing positions 2018-04-21 00:30:21 +02:00
Lynix 9f74b71bd6 DebugSystem: Fix crash when asked to show collision mesh but entity has no collidercomponent 2018-04-21 00:27:46 +02:00
Lynix d234d66120 Fix compilation 2018-04-15 03:31:01 +02:00
Lynix 65c6996ccd SDK/TextAreaWidget: Add support for line selection 2018-04-15 02:39:19 +02:00
Lynix d253ec1adc Sdk/GraphicsComponent: Fix bounding volume when using a local matrix 2018-04-15 02:30:36 +02:00
Lynix 3362a4f160 Sdk/DebugSystem: Fix some warnings 2018-04-14 00:09:07 +02:00
Lynix 251b8af03a SDK: Add DebugComponent
@gawaboumga @gawaboumga @gawaboumga @gawaboumga @gawaboumga @gawaboumga @gawaboumga @gawaboumga @gawaboumga @gawaboumga
2018-04-13 22:09:19 +02:00
Jérôme Leclercq 42b4759680 Sdk/Application: Give/clear console focus when enabling/disabling it 2018-04-12 13:42:54 +02:00
Jérôme Leclercq 26f0a9fec9 Sdk/Console: Add ClearFocus/SetFocus methods
Theses should be virtuals
2018-04-12 13:42:36 +02:00
Jérôme Leclercq 6fb44796a0 Sdk/Console: Fix SetCharacterSize not updating character size 2018-04-12 13:41:48 +02:00
Jérôme Leclercq 7cc94d0617 Sdk/Console: Fix merge issue 2018-04-12 13:41:30 +02:00
Jérôme Leclercq f44a4dd349 Sdk/TextAreaWidget: Fix SetCharacterSize not updating displayed text 2018-04-12 13:41:09 +02:00
Jérôme Leclercq 917c41f90e Sdk/TextAreaWidget: Fix GetGlyphIndex not being const + add overload returning current glyph index 2018-04-12 13:40:39 +02:00
Jérôme Leclercq 583cfb5f71 Fix console size 2018-04-12 13:40:03 +02:00
Jérôme Leclercq 16014d3f37 Merge branch 'master' into console-widget 2018-04-12 12:47:17 +02:00
Jérôme Leclercq 2da086b7df New Render queues (#161)
* Add new render queues proof of concept + scissoring support (WIP)

* Graphics: Adapt basic sprites rendering to new render queue system

* Graphics: Fix layers when rendering sprites

* Graphics/RenderQueue: Fix sprite default overlay

* Graphics: Enable scissor test by default

* SDK/Widgets: Enable scissoring on widgets

* Graphics: Handle almost everything with the new renderqueues system

Todo:
- Billboard rendering
- Proper model rendering

* Graphics/RenderQueue: Billboard drawing now works (WIP)

At 1/4 of previous code performances due to individually process of billboards

* Add new render queues proof of concept + scissoring support (WIP)

* Graphics: Adapt basic sprites rendering to new render queue system

* Graphics: Fix layers when rendering sprites

* Graphics/RenderQueue: Fix sprite default overlay

* Graphics: Enable scissor test by default

* SDK/Widgets: Enable scissoring on widgets

* Graphics: Handle almost everything with the new renderqueues system

Todo:
- Billboard rendering
- Proper model rendering

* Graphics/RenderQueue: Billboard drawing now works (WIP)

At 1/4 of previous code performances due to individually process of billboards

* Graphics/RenderQueues: Add full support for billboards

* Graphics/RenderQueue: Cleanup and improve billboard rendering

* Graphics/RenderQueue: Fix model drawing

* Examples/Particles: Fix lighting on space station

* Graphics: Cleanup forward render queue/technique

* Fix compilation under Linux

* Graphics/ForwardRenderTechnique: Fix case when scissoring is enabled on material but disabled on element

* Add support for Deferred Shading

* SDK/Widgets: Fix widget rendering

* Graphics: Remove legacy code from render queues

* Graphics: Fix some objects sometimes not showing up due to broken scissor box

* Fix compilation error

* Sdk/GraphicsGraphics: Fix bounding volume

* SDK/World: Fix self-assignation

* Update changelog for render queues
2018-04-11 19:36:52 +02:00
Jérôme Leclercq e299e1f03e Sdk/World: Add ForEachSystem method 2018-04-09 12:37:58 +02:00
Jérôme Leclercq e99d34f195 Sdk/World: Add const getters for systems 2018-04-09 12:34:37 +02:00
Lynix ae2fd0069a SDK/ListenerSystem: Handle velocity in a generic way (no longer require a VelocityComponent) 2018-04-08 17:52:12 +02:00
Jérôme Leclercq 2d56911e82 Sdk/EntityList: Fix copy assignation 2018-03-12 09:19:46 +01:00
Jérôme Leclercq 464419db73 SDK/EntityList: Fix movement 2018-03-06 17:33:33 +01:00
Jérôme Leclercq 242e154f09 Sdk/World: Fix world movement not moving profiler status 2018-02-27 16:31:23 +01:00
Lynix 166ecffc32 Sdk/[Collision|Physics]Component2D: Set internal rigidbody userdata to the entity id 2018-02-17 14:22:25 +01:00
Lynix af12c5ed92 Merge branch 'master' into physics3d-material 2018-02-11 14:39:14 +01:00
Jérôme Leclercq 34fe5dd466 Fix refresh Lua binding and comments 2018-02-08 16:25:52 +01:00
Jérôme Leclercq a9364ab7e2 Sdk/World: Add profiler 2018-02-08 16:25:27 +01:00
Jérôme Leclercq 6161b1a751 Sdk/World: Use a Bitset to store free entity id 2018-02-08 15:15:56 +01:00
Jérôme Leclercq 555817e3ee World: Rename Update() to Refresh()
Also updated comment block
2018-02-08 14:32:53 +01:00
Jérôme Leclercq 7366d92818 Sdk/System: Fix time loss when using max update rate 2018-02-08 11:43:15 +01:00
Jérôme Leclercq fb3eb9443e Core/Clock: Restart now returns the elapsed time in milliseconds 2018-02-07 15:02:44 +01:00
Lynix 1e88e23854 Merge branch 'master' into physics3d-material 2018-01-28 14:28:44 +01:00
Faymoon 4911aff64f Fix assert message error : NodeComponent instead of ParticleEmitterComponent (#156) 2018-01-22 14:22:18 +01:00
Lynix c592acfd5f Merge branch 'master' into physics3d-material 2018-01-20 14:21:01 +01:00
Lynix 5380b6a41b Lua/LuaInstance: Move library initializations to LoadLibraries 2018-01-20 14:20:46 +01:00
germinolegrand 6d11e8d2ed Prerequisites instead of Prerequesites (typo) #152 Header Guard (#154)
For an unknown readon, this correction didn't get to the pull-request (?)
2018-01-19 14:25:33 +01:00
Jérôme Leclercq d267354fdf Sdk/World: Fix uninitialize value found by valgrind 2018-01-18 10:38:17 +01:00
Lynix c1cebe1425 Merge branch 'master' into physics3d-material 2018-01-17 18:25:57 +01:00
Lynix 19580c859f Merge branch 'master' of https://github.com/DigitalPulseSoftware/NazaraEngine 2018-01-16 21:30:21 +01:00
germinolegrand 1e55c4d9e9 Prerequisites instead of Prerequesites (typo) #152 (#153) 2018-01-16 12:23:01 +01:00
Lynix 76043e4f2e Merge branch 'master' into physics3d-material 2018-01-14 18:05:44 +01:00
Lynix 78c2e06b58 Sdk/PhysicsSystem3D: Fix CollisionComponent3D teleportating causing velocity increase in physical objects 2018-01-14 18:05:29 +01:00
Lynix 4cb598c32b Merge branch 'master' into physics3d-material 2018-01-14 14:40:57 +01:00
Lynix fe278bae4b Remove useless inline 2018-01-13 20:49:47 +01:00
Lynix 141640a962 Fix compilation for good 2018-01-13 12:01:53 +01:00
Lynix 0183f60b80 Fix compilation and PR 2018-01-13 11:57:30 +01:00
Faymoon 4f6bf30f24 Constraint 2D (#147)
* Rename all Constraint by [name]Constraint3D

* Create Refs and Libraries for Constraint2D

* Remove ref to PhysWorld in Constraints ctors

* Update Constraint2d ctor to have RigiBodies first

* Add New static function for all constraints and fix an oopsie

* Add Contraint Library and remove all library useless aliases

* Add ConstraintComponent2D

* remove useless definition of Constraint2D library

* Fix : getting the world of the constraint before having created it

* Make the GetStaticBody function return a ref

* Remove : Useless AddJoint Fonction and Update CreateJoint function

* Update PhysicsSystem3D because GetStaticBody return now a ref

* Oops

* Having done something with the 3D and i was needing 2D

* Add ConstraintComponent as friend of Collision and PhysicsComponent

* Update all the Get[Static/Rigid]Body function so they return a pointer

* fix the bugs caused by the commit before

* update : CreateConstraint lambda for the nullptr case

* remove the useless  use of const pointer

* Update : CreateConstraint function

* Update ChangeLog.md
2018-01-13 11:03:03 +01:00
Lynix 67fe1ec514 Merge branch 'master' into physics3d-material 2018-01-03 20:43:35 +01:00
Lynix 1d32557856 Sdk/TextAreaWidget: Fix Clear 2018-01-03 20:43:24 +01:00
Lynix fd8306f17f Core/String: Replace implicit operator std::string by ToStd::String 2017-12-14 19:50:06 +01:00
Lynix e302667c21 Merge branch 'master' into physics3d-material 2017-12-14 18:15:35 +01:00
Lynix 5aab9b248d Sdk/PhysicsComponent3D: Fix cloning by preserving physics states 2017-12-13 22:17:50 +01:00
Jérôme Leclercq 4eb3520be8 Sdk/PhysicsComponent3D: Add node synchronization control 2017-12-13 10:36:27 +01:00
Lynix afa874de26 WIP on materials 2017-12-10 22:17:41 +01:00
Lynix f1b84bfc9e Sdk/Physics3D: Handle properly disabled physics entity 2017-12-10 14:07:18 +01:00
Lynix 498bd77d8a Sdk/BaseComponent: Add OnEntityDisabled and OnEntityEnabled callbacks 2017-12-10 14:06:43 +01:00
Lynix 0df70dcb16 Physics3D/RigidBody3D: Rename [Get|Set]Velocity to [Get|Set]LinearVelocity 2017-12-10 12:09:36 +01:00
Lynix 7772d56c66 Sdk/GraphicsComponent: Fix local matrix not being copied 2017-12-06 21:12:51 +01:00
Jérôme Leclercq 5ba0d0dba0 Add unit test for EntityOwner 2017-12-01 15:53:50 +01:00
Lynix 6d09abbc2c Physics3D/RigidBody3D: Add [Get|Set][Angular|Linear]Damping 2017-11-30 12:04:33 +01:00
Lynix 9eaf995b21 Sdk/CollisionComponent2D: C++14 cleanup 2017-11-28 23:21:32 +01:00
Lynix 71ee30d570 Sdk/GraphicsComponent: Fix clear method 2017-11-28 23:21:11 +01:00
Jérôme Leclercq 377dd992b9 Sdk/Canvas: Implement tab/shift-tab to switch to next/previous widget 2017-11-23 14:48:59 +01:00
Jérôme Leclercq 4116984f9f Sdk/Canvas: Rename widgetbox to widgetentry 2017-11-23 13:54:58 +01:00
Jérôme Leclercq 3cff3fbadc Sdk/TextAreaWidget: Fix cursor showing up on readonly text area 2017-11-23 13:24:13 +01:00
Jérôme Leclercq d98b7a8f4f Sdk/Canvas: Prevent OnFocusLost/OnFocusReceived when using SetFocus on an already focused widget 2017-11-23 13:23:54 +01:00
Jérôme Leclercq 1601849a00 Sdk/BaseWidget: Add HasFocus method 2017-11-23 13:23:11 +01:00
Jérôme Leclercq 6c8b3eb319 Sdk/Entity: Add Disable shortcut 2017-11-23 13:22:38 +01:00
Jérôme Leclercq 0a5cbe656f Math/VectorI: Make array/pointer constructor explicit 2017-11-23 13:21:51 +01:00
Jérôme Leclercq b83a9b60e7 Sdk/World: Fix destruction retrieval while world clear 2017-11-22 10:26:33 +01:00
Faymoon 06ac8cf904 Add AddImpulse for PhysicsComponent2D (#141)
* Update PhysicsComponent2D.hpp

* Update LuaBinding_SDK.hpp

* Update LuaBinding_SDK.cpp

* Update LuaBinding_SDK.cpp

* Add : AddImpulse

* Add : AddImpulse

* Add : binding of PhysicsComponent2D

* add : handle

* fix alphabetical order

* complete PhysicsComponent2D binding

* Update LuaBinding_SDK.cpp

* Update LuaBinding_SDK.hpp

* Update PhysicsComponent2D.hpp

* Update PhysicsComponent2D.inl

* forgot : use namespace Nz and open namespace Ndk

* Update PhysicsComponent2D.hpp

* Add Addimpulse

* Update PhysicsComponent3D.hpp
2017-11-21 12:17:11 +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 4fc076325c Sdk/StateMachine: Fix instantaneous state change 2017-11-19 17:09:56 +01:00
Jérôme Leclercq 16d4a6ac1c Sdk/BaseWidget: Fix compilation, for real 2017-11-15 10:48:30 +01:00
Lynix 14924f0e74 Sdk/BaseWidget: Fix compilation on Linux 2017-11-15 01:25:33 +01:00
Lynix 55bbc282db Sdk/TextAreaWidget: Fix compilation 2017-11-11 18:53:51 +01:00
Lynix 0487b282d7 Sdk/TextAreaWidget: Show cursor as long as focus is active 2017-11-11 18:42:30 +01:00
Lynix f136530a74 BaseWidget: Renamed GrabKeyboard to SetFocus, added ClearFocus and focus virtual methods 2017-11-11 18:38:11 +01:00
Lynix f5b639ec0f Sdk/TextAreaWidget: Fix detail about cursor
When moving cursor to the left when already at the beginning of a line, make it move to the upper line
2017-11-11 18:19:44 +01:00
Lynix 2b88d81294 Sdk/TextAreaWidget: Refactor cursor position
In order to have only one cursor instead of two
2017-11-11 18:18:44 +01:00
Jérôme Leclercq 79338c7177 Sdk/TextAreaWidget: Fix issues when deleting characeters 2017-11-10 13:38:06 +01:00
Jérôme Leclercq e3f21b7268 Sdk/TextAreaWidget: Add OnTextChanged signal 2017-11-10 13:13:33 +01:00
Jérôme Leclercq bb6e032b60 Sdk/TextAreaWidget: Add support for EchoMode 2017-11-10 13:12:04 +01:00
Jérôme Leclercq 5eec06b0ea Sdk/Canvas: Fix crash on keyboard event 2017-11-09 12:39:25 +01:00
Jérôme Leclercq a8651846ae Sdk/World: Fix movement not taking waiting entities into account 2017-11-08 13:14:00 +01:00
S6066 2ed9691c80 Added ImageWidget (#139)
* Added ImageWidget

* Remove useless ResizeToContent function

* Add ResizeToContent function

* Forgot operators

* Added textures & colors functions

* oops
2017-11-06 16:50:52 +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
Lynix be38aee1fa Fix some warnings 2017-10-18 22:02:21 +02:00
Jérôme Leclercq 10a92dcb18 Sdk/LuaAPI: Add Ndk::Entity* handling for parameters 2017-10-16 11:57:38 +02:00
Lynix 2cac137066 Sdk: Remove systems clone (and thus need for copy constructor) 2017-10-14 14:41:55 +02:00
Lynix a39ed47ef4 Regenerate global headers 2017-10-10 21:52:34 +02:00
Jérôme Leclercq 10e2d3008a Sdk/Algortihm: Fix 64bits shift 2017-10-10 21:52:34 +02:00
Jérôme Leclercq 84537fcfb8 Sdk: Fix segfault when deleting hovered widget 2017-10-10 21:52:33 +02:00
Lynix d1eac591f5 Graphics: Prepare dynamic reflections 2017-10-10 18:28:15 +02:00
Lynix c763dea4e1 Merge branch 'master' into reflection-mapping 2017-10-02 21:11:15 +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 bccbc0dbf1 Move warning fixes! 2017-09-30 15:23:05 +02:00
Lynix 508554fcb1 Fix some more warnings 2017-09-30 15:00:42 +02:00
Lynix fb354b1204 Fix compilation warnings 2017-09-30 14:54:08 +02:00
Lynix f95fc332f1 Sdk/BaseSystem: Fix udpate with max update rate + unit tests 2017-09-22 21:01:25 +02:00
Jérôme Leclercq 9a665bbff6 Sdk/BaseSystem: Rename UpdateRate to FixedUpdateRate and add MaximumUpdateRate 2017-09-22 15:22:19 +02:00
Jérôme Leclercq 37896e2401 Sdk/BaseWidget: Add CenterHorizontal and CenterVertical() methods 2017-09-21 14:40:03 +02:00
Jérôme Leclercq bf98297233 Merge branch 'master' of https://github.com/DigitalPulseSoftware/NazaraEngine 2017-09-19 15:14:26 +02:00
Jérôme Leclercq 5afe321b5c Widgets/ButtonWidget: Fix position 2017-09-19 15:14:24 +02:00