Commit Graph

617 Commits

Author SHA1 Message Date
Jérôme Leclercq d4532ce7ff SDK/Lua: Bind HasComponent method 2017-06-15 11:07:21 +02:00
Jérôme Leclercq 86fa6c5009 SDK/LuaBinding: Bind IsValidHandle for handled types 2017-06-13 15:05:55 +02:00
Lynix 9efcfb54ac SDK/LuaBinding: Fix compilation 2017-06-10 22:53:11 +02:00
Lynix 487bd64bcf Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-06-10 22:33:03 +02:00
Lynix 713f7dfd5b SDK/LuaBinding: Fix TextureManager binding 2017-06-10 22:32:51 +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
Jérôme Leclercq a8129b218b Refactor LuaInstance to prepare coroutine handling 2017-06-07 21:18:07 +02:00
Lynix 3b914422c8 SDK/EntityList: Fix warning on GCC 2017-05-30 00:50:28 +02:00
Jérôme Leclercq 09bace0f28 Sdk/LuaBinding: Bind UdpSocket 2017-05-18 11:44:28 +02:00
Lynix 7425993d2d SDK/World: Fix waiting entities not being cleared on time 2017-05-15 10:11:42 +02:00
Lynix bb3eebb9cc Sdk/EntityList: Automatically remove entities from lists on destruction 2017-05-14 22:13:31 +02:00
Lynix 3d25501f9f Sdk: Fix compilation 2017-05-13 20:00:15 +02:00
Lynix 4a0cb4e1f1 Sdk/World: Get rid of now useless trick in Clone method
EntityHandle can no longer move in memory until a world update
2017-05-11 21:26:01 +02:00
Lynix c9969d1b57 Sdk/BaseComponent: Disable implicit copying 2017-05-11 21:21:25 +02:00
Lynix 75d57b3c29 Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-05-11 20:52:04 +02:00
Lynix dd4466081f Merge branch 'entitylist-refactor' 2017-05-11 20:35:09 +02:00
Lynix 19f9191815 SDK/World: Improve doc 2017-05-11 20:14:58 +02:00
Lynix 1b66948213 Merge branch 'entitylist-refactor' of https://github.com/DigitalPulseSoftware/NazaraEngine into entitylist-refactor 2017-05-11 20:13:57 +02:00
Lynix 064ffd2945 SDK/EntityList: Improve documentation 2017-05-11 19:46:57 +02:00
Lynix 52a4a590e1 Graphics/Material: Fix depth sorting flag handling for meshes 2017-04-22 17:13:51 +02:00
Lynix e3514db87f Sdk/GraphicsComponent: Add methods to update local matrix and render order 2017-04-22 17:11:42 +02:00
Lynix 5211d899dd Merge remote-tracking branch 'refs/remotes/origin/master' into entitylist-refactor 2017-04-22 12:59:18 +02:00
Lynix ec310b9577 Sdk/Entity: Fix removed components sometimes not being removed 2017-04-22 12:59:06 +02:00
Lynix 0708531f6c Sdk/World: Inline GetEntity and KillEntity 2017-04-22 12:58:39 +02:00
Lynix c1e9fe7b04 Merge remote-tracking branch 'refs/remotes/origin/master' into entitylist-refactor 2017-04-21 22:08:13 +02:00
Lynix 4f6706284e Sdk/World: Fix entity block handling 2017-04-21 21:27:27 +02:00
Lynix 3c99782643 Sdk/EntityList: Fix empty() behavior 2017-04-21 21:27:07 +02:00
Lynix 203509f141 Sdk/BaseSystem: Reuse EntityList 2017-04-21 01:02:46 +02:00
Lynix 53b92106ff Sdk/World: Fix block pointers 2017-04-21 01:02:23 +02:00
Lynix 48b348135e Refactor EntityList and prevent World to invalidate its own handles between updates 2017-04-20 23:42:45 +02:00
Gawaboumga eb70453574 State machine as a stack (#123)
* State machine as a stack

* Fix comments linked to code review

* I will think to compile, next time
2017-04-20 12:30:43 +02:00
Lynix 1305e8434a Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-04-17 23:42:21 +02:00
Lynix 5eccfefc05 Fix compilation 2017-04-17 23:42:20 +02:00
Lynix f7cd52d947 Small update 2017-04-17 17:39:26 +02:00
Lynix 5702e5202c Components/GraphicsComponent: Add DoesRequireRealTimeReflections method 2017-03-29 18:58:41 +02:00
Lynix 6851428c3c Components/GraphicsComponent: Watch every used material to handle reflective information 2017-03-28 23:36:08 +02:00
Lynix 02508fb99d Sdk/BaseComponent: Add GetEntity method 2017-03-20 07:49:01 +01:00
Lynix 62fd66a159 Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-03-18 17:23:12 +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 4ea43e0b0b Sdk/Entity: Fix problem when moving entities 2017-03-08 17:36:13 +01:00
Jérôme Leclercq 0818a2187b Sdk/Entity: Fix OnDetached being called after OnEntityRemove when destructing 2017-03-08 16:32:08 +01:00
Jérôme Leclercq 9c7b2ed4b8 Sdk/World: Fix entity ids being reused before destruction 2017-03-08 15:52:59 +01:00
Lynix 3fe54ff777 Sdk/Entity: Add OnEntityDestruction callback 2017-03-03 17:52:19 +01:00
Lynix 605e5c2fd0 Sdk/BaseComponent: Add OnEntityDestruction callback
Also fixes physics component callbacks (OnContactEnd by example) being
fired while entity is destroyed
2017-03-03 17:52:07 +01:00
Lynix 55d9a22665 NDK/BaseWidget: Children widgets are now automatically parented to their parent 2017-02-23 00:09:39 +01:00
Lynix 496cdfd32c Merge branch 'master' into reflection-mapping 2017-02-23 00:08:57 +01:00
EloD10 ce6eb1d6d9 Update Console.cpp (#117)
* Update Console.cpp

Deleting a semicolon

* Update ButtonWidget.cpp

Removing empty fuction

* Update ButtonWidget.hpp

Removing unnecessary variable
2017-02-22 17:54:00 +01:00
Gawaboumga c2e4ccaf72 Various little fixes (#118)
* Add missing override qualifier

* Mostly shadowing, virtual destructor and other little things
2017-02-19 23:15:13 +01:00
Lynix ead54e1c30 Merge branch 'master' into reflection-mapping 2017-02-18 15:07:17 +01:00
Jérôme Leclercq 4df5ec776c Sdk/Entity: Fix entity destruction not calling Component::OnDetached 2017-02-08 16:27:55 +01:00
Lynix 7d5d21f025 Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-01-21 15:56:37 +01:00
Lynix 174feda1e9 Sdk/TextAreaWidget: Make cursor sprite black 2017-01-20 20:03:17 +01:00
Lynix cf286e0413 Sdk/Widgets: Add possibility to set cursor when mouse hover a widget 2017-01-20 20:03:00 +01:00
Lynix bb3f395319 Revert "Spoilers.."
This reverts commit e00d00931c.
2017-01-20 19:40:54 +01:00
DrLynix 18862fd1ba Forgot to save those two files 2017-01-20 13:02:19 +01:00
DrLynix f383eca19a Update copyright year 2017-01-20 12:58:35 +01:00
DrLynix e00d00931c Spoilers.. 2017-01-20 10:07:20 +01:00
Lynix 6ba35700bf Sdk/BaseWidget: Cleanup canvas index 2017-01-19 23:09:23 +01:00
Lynix 439f8d0033 Sdk/Canvas: Little cleanup 2017-01-19 21:44:53 +01:00
Lynix 27b000470d Sdk/Canvas: Fix warning and optimize integer to float conversion 2017-01-18 23:39:22 +01:00
Lynix ec795269ad Sdk/TextAreaWidget: Add signals (allowing for controlling the cursor/keys) 2017-01-18 23:38:29 +01:00
Lynix 5d39d60f94 Sdk/TextAreaWidget: Fix commit fail 2017-01-18 23:36:19 +01:00
Lynix 36bcdcdb8c Sdk/Widgets: Make the canvas aware of itself as a widget 2017-01-18 23:35:43 +01:00
Lynix c1dfc5c4b8 Sdk/Widgets: Properly fixes padding 2017-01-18 23:06:31 +01:00
Lynix 679f599c79 Sdk/Console: Fix crash 2017-01-16 21:25:23 +01:00
Lynix c9458eeb17 Sdk/BaseWidget: Add visibility control 2017-01-15 12:13:29 +01:00
Lynix e1e290808a Sdk/Canvas: Fix crash at Canvas destruction 2017-01-15 12:12:58 +01:00
Lynix 5865679891 Sdk/BaseWidget: Add a way to change background color 2017-01-15 12:11:59 +01:00
Lynix 14e327c603 Sdk/TextAreaWidget: Add SetTextColor 2017-01-15 12:11:15 +01:00
Lynix fd923ed58b Sdk/BaseWidget: Add Destroy method 2017-01-11 19:14:32 +01:00
Lynix 6acf101d77 Sdk/BaseWidget: Fix crash at Canvas destruction 2017-01-11 19:14:21 +01:00
Lynix d57498be10 Sdk/BaseWidget: Widget::Add now returns a pointer (easier to use) 2017-01-11 19:13:40 +01:00
Lynix 4f1438f0f1 SDK/BaseWidget: Add OnParentResized method 2017-01-11 18:27:32 +01:00
Lynix 6b949afb9b Graphics: Add support of skins to InstancedRenderable + big clean up 2017-01-09 01:52:00 +01:00
Lynix d2ee4744a9 Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-01-06 17:29:54 +01:00
Lynix e36374dfc4 SDK/Lua: Fix EulerAngles constructor 2016-12-19 18:23:24 +01:00
Lynix 37d36a89a6 Graphics: Add basic reflection mapping 2016-12-18 01:18:48 +01:00
Lynix e66e0dfdce SDK/TextAreaWidget: Add multiline option 2016-12-06 16:34:23 +01:00
Lynix 7dc600fb34 SDK/TextAreaWidget: Add ReadOnly option 2016-12-06 16:33:55 +01:00
Lynix c781f7cb45 SDK/TextAreaWidget: Improve glyph selection 2016-12-05 20:39:33 +01:00
Lynix d3e3e9cbe2 SDK/TextAreaWidget: Expose cursor 2016-12-05 20:39:13 +01:00
Lynix 6138c02b9b SDK/TextAreaWidget: Make Write public 2016-12-05 16:48:29 +01:00
Lynix 2960157f8f SDK/TextAreaWidget: Fix insertion with accents 2016-12-05 16:10:48 +01:00
Lynix 60fee4bba6 SDK/TextAreaWidget: Add getters methods 2016-12-05 15:22:01 +01:00
Lynix e3e254532d SDK/TextAreaWidget: Add Clear() method 2016-12-05 15:21:47 +01:00
Lynix d6e02d486b SDK/TextAreaWidget: Fix cursor position after inserting special characters 2016-12-05 15:17:11 +01:00
Jérôme Leclercq 58866fd4ac SDK/LuaBinding: Fix File binding 2016-12-03 11:01:57 +01:00
Lynix 85c5f4b48b SDK/TextAreaWidget: Make character erasing work with cursor
Adds support for delete key
2016-12-03 00:41:27 +01:00
Lynix 6c03803c5e SDK/TextAreaWidget: Add cursor shifting by left and right arrows 2016-12-03 00:40:31 +01:00
Lynix d28dab2e36 SDK/TextAreaWidget: Fix cursor handling 2016-12-03 00:39:19 +01:00
Lynix cfa9b4bf2f SDK/Widgets: Add OnKeyPressed/OnKeyReleased callbacks 2016-12-03 00:35:39 +01:00
Lynix e6e4a437bd Merge remote-tracking branch 'refs/remotes/origin/master' into gui 2016-11-30 13:08:08 +01:00
Lynix 3c5594c206 Merge remote-tracking branch 'refs/remotes/origin/master' into culling 2016-11-28 17:27:12 +01:00
Lynix 936a2df676 SDK/Lua: Bind WindowStyle 2016-11-27 13:40:58 +01:00
Lynix a34d1e410c Core/Enum: Convert OpenMode and StreamOption to the new flags system 2016-11-27 13:40:47 +01:00
Lynix a8280469a3 Sdk/Lua: Fix binding initialization 2016-11-27 12:39:13 +01:00
Lynix 6160886785 SDK/Lua: Move binding files to NDK/Lua directory 2016-11-24 23:48:07 +01:00
Lynix 7f143e41f8 SDK/Lua: Rework LuaBinding classes to try to improve compile time and binary size 2016-11-24 22:54:48 +01:00
Lynix 0c8128b7e4 Mesh/MeshParams: Replace flipUVs by texCoordOffset and texCoordScale 2016-11-24 09:43:56 +01:00
Lynix 7e7549b182 Merge remote-tracking branch 'refs/remotes/origin/master' into culling 2016-11-23 14:12:46 +01:00
Lynix 093ee3175e SDK/Component: Fix typo (and compilation) 2016-11-23 14:12:24 +01:00
Lynix 8d86306933 Merge remote-tracking branch 'refs/remotes/origin/master' into culling 2016-11-23 14:07:52 +01:00
Lynix 88895df1d0 SDK/Systems: Disable VelocitySystem if PhysicsComponent2D is present 2016-11-23 14:07:20 +01:00
Lynix ed827e039c SDK/Lua: Bind GetFOV and GetLayer methods from CameraComponent 2016-11-19 15:43:49 +01:00
Lynix 4cc083154d Sdk/Lua: Fix warning 2016-11-19 15:43:31 +01:00
Lynix f629803f90 Sdk/CameraComponent: Fix compilation 2016-11-19 15:43:17 +01:00
Lynix 3bd426f3dc SDK/Lua: Bind CameraComponent 2016-11-18 22:39:01 +01:00
Lynix cdc53e3dc3 Sdk/Lua: Bind Keyboard 2016-11-18 22:14:10 +01:00
Lynix 77b8f48352 SDK/Lua: Bind methods from EulerAngles and Quaternion 2016-11-18 21:25:32 +01:00
Lynix a1b71467c6 SDK/CollisionComponent2D: Fix static body position 2016-11-18 18:47:24 +01:00
Lynix 950068a60d Doc/SDK: Fix missing NDK group 2016-11-18 12:03:35 +01:00
Lynix cd0e9d97b8 Graphics/Sprite: Add SetMaterial and SetTexture overloads for searching a resource name 2016-11-17 18:24:36 +01:00
Lynix 1ff530cfbe Sdk/LuaAPI: Remove documentation from LuaImplQueryArg/LuaImplReplyVal
Since they are internal functions
2016-11-15 11:46:12 +01:00
Lynix f596b46629 Sdk/Lua: Fix Clock() constructor not correctly handling optional arguments 2016-11-14 00:21:36 +01:00
Lynix d0e3d1c1e8 Sdk/Lua: Fix Material:LoadFromFile last parameter not being optional 2016-11-13 20:45:14 +01:00
Lynix 74f3ac8021 SDK: Add components and system for 2D physics 2016-11-10 18:31:27 +01:00
Lynix 7f445def13 Fix some warnings from MSVC 2016-11-10 16:44:29 +01:00
Jérôme Leclercq a8d4e44669 Sdk/World: Optimize updating dirty entities by removing a branch 2016-11-08 12:29:15 +01:00
Jérôme Leclercq 4536ba768c Sdk/BaseSystem: Fix compilation with GCC 2016-11-08 12:28:12 +01:00
Jérôme Leclercq 7e5a9048e1 Sdk/World: Fix a warning 2016-11-08 12:27:55 +01:00
Jérôme Leclercq ff47fb6fa2 Sdk: Add default update order for Listener, Render and Velocity systems 2016-11-08 02:51:47 +01:00
Jérôme Leclercq aa304ef2e9 SDK: Allow to set an update order for systems (Closes #106) 2016-11-08 02:51:25 +01:00
Jérôme Leclercq 9e84c397ba Merge branch 'master' into culling 2016-11-07 11:26:48 +01:00
Jérôme Leclercq 4f01e13b09 Sdk: Fix typo 2016-11-06 23:12:08 +01:00
Jérôme Leclercq 482eeafdb7 Remove save-failed file 2016-11-04 18:31:15 +01:00
Jérôme Leclercq e087129d4a Fix many errors and warnings found out by MinGW 2016-11-04 18:14:52 +01:00
Lynix 28a2328371 Global headers: Remove the generation date
They should now generate the same input everytime
2016-10-28 17:53:03 +02:00
Lynix 3d79db4c52 Sdk/Widgets: Add TextAreaWidget (experimental) 2016-10-28 17:46:23 +02:00
Lynix 7df732b927 Sdk/Canvas: Add basic keyboard handler 2016-10-28 17:46:02 +02:00
Lynix a4eccc9fac SDK: Add widget global header 2016-10-27 21:38:46 +02:00
Lynix df24519230 Merge remote-tracking branch 'refs/remotes/origin/master' into gui 2016-10-27 18:36:47 +02:00
Lynix 15a1302522 SDK/Lua: Simplify graphics binding code 2016-10-27 18:30:11 +02:00
Lynix 6b1d1a1d64 Sdk/Lua: Bind TextureLibrary and TextureManager 2016-10-27 11:29:02 +02:00
Lynix 1d7e1b46ff Sdk/Lua: Bind more Matrix4 methods 2016-10-27 11:23:24 +02:00
Lynix 5ffc5a8784 Lua/LuaClass: Don't remove instance from the Lua stack
The instance Lua entry now remains as the first index, shifting all the
parameters indexes by 1
2016-10-27 11:22:35 +02:00
Lynix d6f6b4421e Sdk/Lua: Fix GraphicsComponent:Attach not taking other overloads into account 2016-10-25 13:52:26 +02:00
Lynix b27cfd30af Sdk/VelocityComponent: Cleanup 2016-10-25 12:22:57 +02:00
Lynix 2a08e19e77 Sdk/Lua: Bind Material class 2016-10-25 12:22:46 +02:00
Lynix 034f5cc8d7 Sdk/Lua: Bind SpriteLibrary 2016-10-21 17:32:40 +02:00
Lynix 373b8a7069 SDKServer: Fix compilation 2016-10-21 02:29:09 +02:00
Lynix b1abe2aac8 SDK: Fix compilation² 2016-10-21 02:22:12 +02:00
Lynix b062b496cf Fix compilation 2016-10-21 02:12:35 +02:00
Lynix 8f84700628 Sdk/LuaAPI: Make GetBinding() initialize the binding in case it wasn't initialized 2016-10-21 02:12:23 +02:00
Lynix 6b6608eccc Sdk/LuaBinding: Remove "class" suffix from classes instances 2016-10-21 02:03:31 +02:00
Lynix 6d597aa2bc Sdk/Application: Cleanup 2016-10-21 02:01:08 +02:00
Lynix 350c7dad59 Sdk/Lua: Bind Sprite class 2016-10-21 02:00:51 +02:00
Lynix 4cd6bdd14a Sdk/Lua: Bind Texture class 2016-10-21 02:00:35 +02:00
Lynix 6885e99ee7 SDK/Lua: Bind Matrix4 2016-10-20 17:24:22 +02:00
Lynix 725dc6cdbc Merge remote-tracking branch 'refs/remotes/origin/master' into culling 2016-10-19 11:17:12 +02:00
Lynix d530ca22e0 Final pass of Clang warning fixes 2016-10-17 16:14:35 +02:00