Commit Graph

577 Commits

Author SHA1 Message Date
Lynix 6c8d2ed03a Merge branch 'NDK-ShadowMapping'
Former-commit-id: 0fcd92b113069d2ee1edc74cf9be471cd6d97267
2016-05-13 13:06:23 +02:00
Lynix 1715ca19b5 Sdk/CameraComponent: Clean include
Former-commit-id: d0856ba86be59ed82c9b044b270f6369ed1f57be
2016-05-13 13:02:42 +02:00
Lynix 6274692108 Sdk/CameraComponent: Clean include
Former-commit-id: 3ff8192a4ae46441c7f3d5554c532f6a0bcc07da
2016-05-13 13:02:42 +02:00
Lynix 5588a573a6 Commit current work
Former-commit-id: 79be9d4e937a73626cd5ec02c1d2e2fcbd440d18
2016-05-13 13:00:52 +02:00
Lynix b1288c5277 Sdk/LuaBinding: Make LuaClass members public
Former-commit-id: 89e8182c833073e12d18ec5a0f0ae0d0f689c4f1
2016-05-09 19:38:30 +02:00
Lynix 16c229bc90 Sdk/LuaBinding: Make LuaClass members public
Former-commit-id: 31867b0b6233641952e71638b90c49c7702a26e8
2016-05-09 19:38:30 +02:00
Lynix e9608366cd Core/ObjectHandle: Add noexcept move constructor/assignment
Former-commit-id: d726fab8750fe02fbed0e605bbf9a757c7f035de
2016-05-09 09:03:11 +02:00
Lynix 7db8507874 Core/ObjectHandle: Add noexcept move constructor/assignment
Former-commit-id: 930de41518be74fff072e061f735afceb218138c
2016-05-09 09:03:11 +02:00
Lynix 5e52988d87 Sdk/Binding: Add component access by name
Former-commit-id: 8b5cffb55c526124cddffc9f13a05bbecc638bb9
2016-05-05 20:40:25 +02:00
Lynix 51549f8526 Sdk/Binding: Add component access by name
Former-commit-id: dd2e5d76254e8ce5e60db62e606c8129d784f528
2016-05-05 20:40:25 +02:00
Lynix 839ab8cebe Sdk/Binding: Fix querying argument of type IpAddress
Former-commit-id: 2980c126f7d216dd4537cef6f745928148eee45e
2016-05-03 22:44:01 +02:00
Lynix 176b1e9042 Sdk/Binding: Fix querying argument of type IpAddress
Former-commit-id: f080b4b9463aa0a7f0f881105c3b2c15f50e788e
2016-05-03 22:44:01 +02:00
Lynix 73f648616f Sdk/State: Fix linker errors
Former-commit-id: e9a23daa5f5b0bb2964541ed7def2422703a541b
2016-04-25 18:33:40 +02:00
Lynix 98867fee19 Sdk/Binding: Bind Rect
As requested


Former-commit-id: 97fcb06de0505341f39418147c57d240e4210159
2016-04-24 21:14:10 +02:00
Lynix fa90d3fd69 Sdk/LuaAPI: Add accessor to internal LuaBinding
Former-commit-id: 3e93330d789cd5566cc50e26acb49970bde2c2bc
2016-04-24 20:08:01 +02:00
Lynix 44e20a5ba9 Sdk/LuaBinding: Add EntityHandle and WorldHandle queriers
As requested


Former-commit-id: 20e3d0621243caccd0d3283f077a33c03ab4d2a3
2016-04-24 20:05:42 +02:00
Lynix 1bdcdb36fa Sdk/LuaBinding: Fix issues with optimisation
Former-commit-id: 5bc419c9e35055810f162501cb3f465e737739c2
2016-04-24 20:04:43 +02:00
Lynix 24a8fcee01 Optimize Lua binding
Optimize binding by removing a useless extra indirection and allowing to
move replying variables


Former-commit-id: 76728df1c3ab9a38a4304ae2b9f2fc6a000e0ebb
2016-04-24 19:54:46 +02:00
Lynix b5f237b58f Fix some errors
Former-commit-id: df7db9ab69395ca969779817fcdc17acb711967d
2016-04-24 04:38:18 +02:00
Lynix cfef9988ae Sdk/Binding: Bind Font class
Former-commit-id: 63726c649af7b95f01d283bfd08206cf214172da
2016-04-23 22:24:00 +02:00
Lynix 6a259c9ef9 Sdk/LuaBinding: Expose BindComponent for user components
Former-commit-id: 3d9f1d14f6b63ec72b61e15e6e549e46e958a92f
2016-04-17 20:50:26 +02:00
Lynix 37aa00b2e7 Merge branch 'master' into NDK-ShadowMapping
Former-commit-id: e2be28b65207dfbb81efe58f31ca31548afecee7
2016-04-17 19:57:15 +02:00
Lynix 19e4a35e46 Sdk/Systems: Fix update rate
Former-commit-id: 6267d307c07009f921eb2c7c14eb0904a3a0e48a
2016-04-17 19:29:01 +02:00
Lynix c8dd28f75c Sdk/RenderSystem: Allow to change render technique
Former-commit-id: ec61a2ebff138300344e6068917f0863c3d11859
2016-04-16 18:40:58 +02:00
Gawaboumga 265e1c0fbd Fix compilation for gcc/clang + tests for serialization
Former-commit-id: db9c93a1db3c57f268fc17e411402e071fc8675a
2016-04-04 10:17:05 +02:00
Lynix 85c2cd43e7 Sdk/Application: Store worlds in a list to prevent their memory position to move
Former-commit-id: 918ce261e7b8faded4ad6bded48fc09a885ceb8c
2016-04-03 22:42:31 +02:00
Lynix 8481a3ae90 Sdk/LuaAPI: Add MusicParams binding
Former-commit-id: 430bfb2afc6c05d0dbc78788130460de8e578242
2016-04-03 22:41:47 +02:00
Lynix 0a17aacae6 Sdk: Fix server building
Former-commit-id: 1c3e0626fcaacbb414c526862a5608c36325f464
2016-04-01 18:58:45 +02:00
Lynix 3e7facc342 Sdk/World: Fix handles when moving
Former-commit-id: 0e5866864150bd607db028deb9c972ace6b50caf
2016-04-01 18:58:37 +02:00
Lynix fdccc9e510 Sdk/LuaAPI: Bind VelocityComponent
Former-commit-id: 7e51aa57854b58cdf8b243f1e02e7bb90a943709
2016-04-01 18:57:51 +02:00
Lynix 2736081578 Sdk/Application: Add GetUpdateTime()
Former-commit-id: 55acb0529b41860c56ad0717ab15005e4d237f0f
2016-04-01 18:57:23 +02:00
Lynix 8732cc9459 Sdk/Console: Add Clear method
Former-commit-id: 6230bf71538d3436cd1c247e9645e54fff0e0a2d
2016-04-01 18:57:07 +02:00
Lynix 9a472a4a1c Sdk/LuaAPI: Bind console
Former-commit-id: 70738fdc709b867bead746a0091dcb50a5ca67ea
2016-04-01 18:56:57 +02:00
Lynix 1dd13046cd Sdk/LuaAPI: Add Vector2
Former-commit-id: d5f7b8cf7baa7d08562214008155467b9fa888ed
2016-04-01 18:55:59 +02:00
Lynix 916e3c2d7c Sdk/LuaAPI: Add querying color
Former-commit-id: 946071a4642f0b649f26655d5195894057debfbc
2016-04-01 18:55:43 +02:00
Lynix 6808d60cc1 Sdk: Remake LuaAPI internal
Former-commit-id: 297c30dbeca443d934edfd8d889cd7a6c725d0e1
2016-03-31 22:51:10 +02:00
Lynix 1ecc52c718 Sdk: Add binding of SDK
Former-commit-id: 4bad2b5db52a2fe459ad7802eb4a894fe3bf006e
2016-03-31 21:16:48 +02:00
Lynix 809c340edc Sdk: Add Network binding
Former-commit-id: 8cc96ed5e00f680d347ac7f51dfb5a80b3252b0e
2016-03-31 21:16:05 +02:00
Lynix 82d1fbb057 Sdk: Add NodeComponentHandle
Former-commit-id: 74e925d0eb39e99e57429c5c769ff827cc04e9c8
2016-03-31 21:15:17 +02:00
Lynix 1c1625070e Sdk: Add GraphicsComponentHandle
Former-commit-id: 437240bf060a20c92f29c03a8f913fc7355dab05
2016-03-31 21:15:10 +02:00
Lynix 64cd5e0cf3 Sdk: Add WorldHandle
Former-commit-id: 70141670052728f93093922471835d0aa30acce3
2016-03-31 21:14:55 +02:00
Lynix a77ad42fcb Add generic handlers
Former-commit-id: 8fc343d3a056de8031cf453748b8801d50d3710e
2016-03-31 21:14:22 +02:00
Lynix a2f6e54104 Sdk/BaseComponent: Add GetMaxComponentIndex static method
Former-commit-id: b3413066bcb5b9f7b7b84092a2645154ad6d8005
2016-03-31 20:15:38 +02:00
Lynix 9b988f8960 Merge branch 'application'
Former-commit-id: e0f348fdcdd66784c9265ca8f8b55bb70fd423fd
2016-03-30 19:45:33 +02:00
Lynix b4d0dd1758 Merge branch 'master' of https://github.com/DigitalPulseSoftware/NazaraEngine
Former-commit-id: 157536817615de91c7bea1920d706c356d858216
2016-03-30 18:39:08 +02:00
Lynix 2b51a8b4b6 Sdk/Console: Add command history
Former-commit-id: e5b437988a3f81b2724c0f1a45da0bbfc85b14b0
2016-03-30 18:36:54 +02:00
Lynix 8ae493b535 Ndk/StateMachine: Fix constructor not calling State::Enter
Former-commit-id: 8e66600c19c53617cab1d889d8fa3c219bc9ea19
2016-03-29 23:42:25 +02:00
Lynix 12968c73fe Merge branch 'master' into application
Former-commit-id: 02d073ae79490d0ac38e56c90bf7d8ff57ae94c4
2016-03-29 21:47:56 +02:00
Lynix dd87b9b115 Ndk/GraphicsComponent: Add BoundingVolume
Former-commit-id: e053b21e5495e097a752c17bf2f9367f55b78d78
2016-03-26 01:38:30 +01:00
Lynix 11fe78f7e0 Ndk/StateMachine: Add constructor/destructor, should be usable now
Former-commit-id: fab76ba97470e8d7a2f4a01a9d1746a8e213892f
2016-03-25 21:34:17 +01:00
Lynix 8d6c8e8a79 Sdk/Application: Fix errors while exiting
Former-commit-id: 5b22aad341730918fbe4f56698a6a10e251256af
2016-03-19 14:20:55 +01:00
Lynix 8aa406a310 Sdk/Application: Fix AddWorld
Former-commit-id: 8b4758f0fafd6aae0360d0c87b8d5362e8e8d583
2016-03-19 14:20:28 +01:00
Lynix 42874b90d9 SDK: Add StateMachine (FSM)
Former-commit-id: 8029f7cce71809ff1f661982d39750c48c86431f
2016-03-19 12:21:07 +01:00
Lynix 83884015fc Add current work
Former-commit-id: 06dd34f00951e334b330c067f61f69fc73dcc2d2
2016-03-15 23:00:03 +01:00
Lynix 946d2cea7a SDK: Add global headers (improved global headers script)
Former-commit-id: f04a3526b185c6c5b8025168cd56829898082bc6
2016-03-03 14:10:52 +01:00
Lynix dbce7592a9 Sdk: Make World moveable
Former-commit-id: 285cb9da4cbafd3da0c0859eb9d366bb2fb978a3
2016-03-01 14:01:31 +01:00
Lynix d7ab29e5ef Fix and improve last PR
Former-commit-id: 16afead68e42411402dfb5a7bd957a4940b6f83a
2016-01-24 15:20:14 +01:00
GigAnon 69a1be70ba Lua Binding update
- Added range check on various casts (ranged_cast routine needs to be
moved somewhere else)
- Added Nz::Vector3ui type to auto-bind system


Former-commit-id: 3ec773b26d9cc85e40879c011cad0fb2a3d05571
2016-01-21 18:54:01 +01:00
GigAnon 04aac4363f Lua binding update
- Added files & Register_X methods for modules Graphics, Renderer and
Utility
- Added Nz::AbstractImage binding (WIP)


Former-commit-id: 91fd641c7676c12034e5f702bd3ba45e2a826263
2016-01-21 14:12:20 +01:00
Lynix 3898421f2f Sdk/API: Begin Lua Binding
Former-commit-id: b9be6bf7748296c3afc6fe1f32a1fd3fad6af008
2016-01-20 14:08:43 +01:00
Lynix 2b85c93433 Sdk/EntityOwner: Prevent copy (Copying an EntityOwner has no use)
Former-commit-id: 628eb865509a84de19bf97bf8253960d6bfb0005
2016-01-19 12:20:38 +01:00
Lynix f49f77b75d Sdk/CameraComponent: Add Size property for Orthogonal rendering
Former-commit-id: 0cdebac880e7e97685c7a0a2980dba973ec651a3
2016-01-13 18:43:42 +01:00
Lynix 8441dcfa2a Ndk/Console: Fix compilation
Former-commit-id: 3579cc6a392f1e74134e035192c5ecdd3e779266
2016-01-07 18:07:03 +01:00
Lynix 55cfd66c7a Sdk: Add Console
Former-commit-id: c80d3c9dbbb0391fdb48a2710f5b5bf7468c050d
2016-01-07 13:43:53 +01:00
Gawaboumga 7f4a7c1012 Add override where missing
Former-commit-id: 2a876a280bc29f45ba81cedff5a3efeb5b70efab
2015-12-30 15:15:20 +01:00
Gawaboumga 92eaf8db1f Linux is case-sensitive
Former-commit-id: 40f31badac6bd4f19d8b54850ab0be8e486f08c2
2015-12-30 15:08:30 +01:00
Lynix 26e7fa1686 Ndk: Add EntityOwner class
Former-commit-id: ef7486e39124642cb1d1b8c24c4c726dc592486b
2015-12-18 13:27:09 +01:00
Lynix ee16bee137 Sdk/EntityList: Fix entity removal
Former-commit-id: bd85de75d139bd824e96449310063d6fad77f269
2015-12-11 13:08:15 +01:00
Lynix 8adc0097df Sdk/Entity: Add enable/disable mechanism
Former-commit-id: 09884bdacf2b573bef516936d2580942cc5d4f66
2015-12-10 23:50:09 +01:00
Lynix 9cf5e4b68c Merge branch 'master' into NDK-ShadowMapping
Former-commit-id: 83435ab51753299b30a102871fbcd5558d2ac4f1
2015-12-09 00:59:07 +01:00
Lynix f1166b68a9 Sdk /CameraComponent: Fix render target resizing
Former-commit-id: c730aa1cd42d334fd3687cb76accc54d4a7fc1d7
2015-12-04 19:36:38 +01:00
Lynix 26681b48b7 Sdk/GraphicsComponent: Fix copy constructor
Former-commit-id: 8007e8c374d2c9442bc45b6c911666ba5f3a39b1
2015-11-30 18:19:38 +01:00
Lynix 0a0e6d00f7 Graphics: Add render order
Former-commit-id: 881ae69c214e024846dc0165f3476f76f5bcc0b5
2015-11-27 23:38:54 +01:00
Lynix 504452a60b Ndk/World: Fix crash with unused-systems
Former-commit-id: 2425e885d4f93033d3d6f367944ef2893f043223
2015-09-26 21:54:34 +02:00
Lynix df8da275c4 Switch from Nz prefix to namespace Nz
What a huge commit


Former-commit-id: 38ac5eebf70adc1180f571f6006192d28fb99897
2015-09-25 19:20:05 +02:00
Lynix dea3fb4e39 Convert spaces to tabs
Former-commit-id: b459cfe0c83f651cc660d42f7d3014c3b146f345
2015-09-24 00:55:57 +02:00
Lynix 2fd3872099 Core: Remove NonCopyable
Former-commit-id: f8c6d10ad0b1abb4a32e3c867b7f24fd4bde68a4
2015-09-24 00:37:21 +02:00
Lynix 025d873228 Merge branch 'NDK' into NDK-ShadowMapping
Conflicts:
	SDK/include/NDK/Systems/RenderSystem.hpp
	SDK/src/NDK/Systems/RenderSystem.cpp

Former-commit-id: 2772ff703c9d68d536667c469aca85084be4b861
2015-09-19 14:47:02 +02:00
Lynix 859544eaa7 Ndk: Add support for 2D rendering
Former-commit-id: bdf9257816c8f48b8c0679647978480785720053
2015-09-18 12:34:05 +02:00
Lynix dd7afa970f Ndk/CameraComponent: Fix copy constructor not connecting the render target signal
Former-commit-id: 73172053b08ac409f92784425614a3fa1a5470e2
2015-09-14 22:43:02 +02:00
Lynix ea66d01246 Ndk/EntityHandle: Add ToString() method
Former-commit-id: b99c515e893c6363f030ffdd18925e92870e9361
2015-09-14 22:41:55 +02:00
Lynix 2b48917176 Merge branch 'NDK' into NDK-ShadowMapping
Former-commit-id: b07de3853987ffc91946b307208c0ec26eda280a
2015-08-17 14:26:42 +02:00
Lynix 1ab09188dd SDK/Entity: Fix warnings
Former-commit-id: 3e503fbe24ef56f60f4b7e04367904de3948910a
2015-08-14 14:17:54 +02:00
Lynix 835da411c7 Graphics/Shadows: Add directional shadow mapping (WIP)
It still needs some debug


Former-commit-id: 029872debc1a784712a33802ddd70a2b61e55623
2015-08-13 13:54:34 +02:00
Lynix 0cb4726bf5 Merge remote-tracking branch 'origin/NDK' into NDK-ShadowMapping
Conflicts:
	SDK/include/NDK/Systems/RenderSystem.hpp
	SDK/src/NDK/Systems/RenderSystem.cpp

Former-commit-id: f62e9a27427d96893acd2381bb06ae928a1d3741
2015-06-29 21:05:09 +02:00
Lynix 318da0d960 Fixed some warnings
Former-commit-id: d7db2b471afac2d16f44a67e79842f8a7fc2100e
2015-06-28 13:48:22 +02:00
Lynix 0895a9273d Ndk/RenderSystem: Add backgrounds support
Former-commit-id: 3209be099cb65095f97f99f6ae1d7c44332ea924
2015-06-24 00:26:46 +02:00
Lynix b7b5458c79 Merge remote-tracking branch 'origin/NDK' into NDK-ShadowMapping
Former-commit-id: 0c302477d672346eb50c12f8fa7e2b6a19d60779
2015-06-23 12:11:02 +02:00
Lynix d225f50759 Sdk/BaseSystem: Fix update rate of 0
Former-commit-id: d589ff48e8e300bc1214ed3865101c812dd5aaf6
2015-06-23 00:07:33 +02:00
Lynix ea3fdaba26 Merge remote-tracking branch 'origin/NDK' into NDK-ShadowMapping
Conflicts:
	SDK/include/NDK/Systems/RenderSystem.hpp
	SDK/src/NDK/Systems/RenderSystem.cpp

Former-commit-id: 0a72e838de272bff91f0b8c8a3637db94fdd7820
2015-06-22 13:31:23 +02:00
Lynix 90363406a6 Sdk: Add automatic system update
Former-commit-id: ce129cc945e7373ac5b9f48960894712d66b097a
2015-06-22 00:58:46 +02:00
Lynix ebbaaf7ff2 Graphics: Add depth render technique/queue
Former-commit-id: 711306ee5f84a9579068ce23240dc105cec15cde
2015-06-17 14:32:05 +02:00
Lynix 974df4288f First shadow mapping commit
Former-commit-id: 7465a7c3297626f8db8c1ff48a20c0e0d9feb765
2015-06-16 14:21:20 +02:00
Lynix 6d953d9e93 Graphics: Separate Renderable and make Light a Renderable (LightComponent)
Former-commit-id: 6177d473f27ef493ba77417fc14461cb08b6f9e1
2015-06-16 00:31:04 +02:00
Lynix 9670d9f3f9 More VS fixes (huehue)
Former-commit-id: 2c3e910d0bdf1c701b4643b4958150e7a0b8492a
2015-06-14 17:13:36 +02:00
Lynix f4c3ec51ed Final VS fixes
Former-commit-id: 6da44f94127f61de39710a52b8b3b73ce19c1269
2015-06-14 16:18:37 +02:00
Lynix 4f04795ef6 Ndk/GraphicsComponent: Fix data depending on transform matrix not updating
Former-commit-id: 993d1d31eca9a296fce09bb21e07a684f9e24220
2015-06-12 14:24:46 +02:00
Lynix c919af8085 Ndk/Entity: Fix arguments forwarding when constructing a component
Former-commit-id: b942a4659ebf7f1575c34b000e3efe9e2559a1d6
2015-06-12 13:59:32 +02:00
Lynix 1e0681ef2a Ndk/BaseSystem: Fix destructor not being virtual
Former-commit-id: e430f12f56a36b0d2dee1c1525cf98fc97cb8de6
2015-06-11 14:23:32 +02:00
Lynix 2a6ec829fe Ndk: Fix inline warnings on GCC
Former-commit-id: 4ffe5cd1e821160c60cd2d84f6a0d164aa1326f7
2015-06-11 14:23:19 +02:00
Lynix 48a54dfa5c Graphics/Renderable: Add InstanceData
Former-commit-id: f30f011ae91a445d5b22f33150a88bbda218950c
2015-06-11 14:14:11 +02:00
Lynix 4e5cdea454 Core/Signals: Remove Connect/Disconnect macros
And make interface easier to use


Former-commit-id: 5b789c9acb694839cb173ae96392650d80d383b7
2015-06-07 17:28:19 +02:00
Lynix 004b53c590 Renderer/Renderer: Replace listeners by signals
Former-commit-id: c1293f7f7cc31c4122ba866fc44d93188917ad93
2015-06-07 16:52:19 +02:00
Lynix fe25249136 Replace Listenable system by signals
Former-commit-id: 16fb0b3e703ca4b41ceb97fab938cebb05f677d4
2015-06-07 15:16:11 +02:00
Lynix cab52dfcfd Ndk/BaseComponent: Fix crash
(Also fix ugly hackfix)


Former-commit-id: b176fb3abc0f541765658376fdd086241c94e279
2015-06-04 09:57:10 +02:00
Lynix 30ba25168f Ndk/Entity: Remove include to Component
Former-commit-id: a209dff2bacf2793d8226671ce2feeeec46e4599
2015-06-04 09:56:43 +02:00
Lynix 80ed8c48bd Ndk/RenderSystem: Finish first implementation
Huge WIP, but I have a first render with it


Former-commit-id: 82ecea8b6ce5c452818f1585c61af7623c28e958
2015-06-04 00:20:51 +02:00
Lynix fac893f379 Ndk/GraphicsComponent: Add Attach method
It will evolve, don't worry.


Former-commit-id: 6529d47e076ef102d54fde0a741df72eb80f5ca7
2015-06-04 00:19:53 +02:00
Lynix 3fdd41cc6b Ndk/CameraComponent: Fix assertion
Former-commit-id: 6f78d6d5b09ad096c22b8a9d2adb5e8060c17613
2015-06-04 00:19:15 +02:00
Lynix 11e7748d85 Ndk/GraphicsComponent: Update
Former-commit-id: 4f4ca46fb58582abb0c61b7f081b77e9cd95ee0f
2015-06-02 17:21:23 +02:00
Lynix 2d0cf1794e NDK/RenderSystem: Begin to implement Update
Former-commit-id: 404b7998afffa79568c722677f9760c467e78166
2015-06-02 17:20:57 +02:00
Lynix d369f6d583 Ndk/RenderSystem: Add Entity Removed event
Former-commit-id: 88b08f81e38f7dc4166f19b431288a212ccd8e75
2015-05-22 17:59:20 +02:00
Lynix 9aacbe158c Ndk: Add RenderSystem (experimental)
Former-commit-id: 23b11c6e9a21a4f26df6bde3d161578101cb2b29
2015-05-19 01:03:11 +02:00
Lynix e0da339217 Ndk/GraphicsComponent: First commit
Former-commit-id: b0174376e8d9211a6ecd7684b3ea7ff3416d5599
2015-05-19 01:01:49 +02:00
Lynix 20dda58ebc Ndk/World: Fixed my stupidity
Former-commit-id: a73b8b1f4bcfc5c878df18f5f2337c8d2535fc74
2015-05-10 23:46:41 +02:00
Lynix ca291d7285 Ndk/World: Fixed entities indexes
Former-commit-id: ec6c3ee98bde983d69945796f8f1089efef794dc
2015-05-06 23:25:00 +02:00
Lynix b84a1f0663 Ndk/CameraComponent: Added [Get/Set]Layer method
Former-commit-id: 51ee045d4eaa7c7274181129ced56d861def3b8e
2015-05-06 22:51:31 +02:00
Lynix 04d864e171 Ndk/Entity: Added Entity::Invalidate()
Former-commit-id: 8b0824982fbe0ff84acbb0db5cc1509e2c86bcbd
2015-05-06 22:48:36 +02:00
Lynix 3195a50114 Ndk/Camera: Invalidate when node invalidate
Former-commit-id: bda6e1f8a5b64f593c9f4ef95a99f1b0198790e7
2015-05-06 13:50:04 +02:00
Lynix e55b4edd0c Ndk: Added CameraComponent (WIP)
Former-commit-id: ae7be5448a1150b7beba10e03916e94df51ea3a0
2015-05-05 18:39:47 +02:00
Lynix 5e954113ef Ndk: Fixed warnings
Former-commit-id: 64509f0d59d83f4c04a09fe7e7913d94a940f191
2015-05-04 13:52:37 +02:00
Lynix 9fa5b5bbfc Ndk/Entity: Inlined IsValid()
Former-commit-id: 217df236c91d7504218e1094f5a8b3f9c28d1599
2015-05-04 00:53:07 +02:00
Lynix 58416694d4 Ndk: Added EntityList
Former-commit-id: f68c3830e59f460b06e23dbacc150c17937491df
2015-05-04 00:25:54 +02:00
Lynix da36f95b7c Ndk/Physics: Merged StaticCollisionSystem with PhysicsSystem
Former-commit-id: de2127eb967fb29f285e9ebae7c743c07ea39f8a
2015-05-03 19:55:16 +02:00
Lynix 47c5d1072b Ndk/BaseSystem: Added entity validation
Former-commit-id: d82a66179244ae8807f65b193ed9be2f48abffa4
2015-05-03 19:51:56 +02:00
Lynix 3ebf967f30 Ndk/BaseSystem: Added "one of" style requirement
Former-commit-id: ce4399561f4198290d639d001a6a56665baa0714
2015-05-03 19:50:42 +02:00
Lynix 9bffaaaa84 Ndk/Algorithm: Fixed headers cyclic dependency
Former-commit-id: a6d4d21586ef948dd68f1d3e7dc01e8275aaac3f
2015-05-03 19:48:33 +02:00
Lynix 3f423239f5 Ndk/Algorithm: Added Is[Component|System] function
Former-commit-id: 946f5081cea0b8df7faf0e95cfea2a3e5dd9f7bb
2015-05-02 21:03:30 +02:00
Lynix d558b04aa7 Ndk/Physics: Added first physics components/systems
Former-commit-id: 654b7a2a4645487d139474dcbd02c0882d7c8f02
2015-05-02 10:00:07 +02:00
Lynix 55519b5e31 Ndk/Component: Modified comment and error messages
Former-commit-id: 6a5fad6d2b7e3c1dbc58df0a1614012eee4df2b7
2015-05-02 09:57:33 +02:00
Lynix ad290a18f4 Ndk/Components: Added On[Attached|Detached] events
Former-commit-id: 46e5b5720a8496dfe536181918ae0a995e028fc1
2015-04-23 14:26:48 +02:00
Lynix 5b44619592 Ndk/Components: Added OnComponent[Attached|Detacted] events
And m_entity member variable


Former-commit-id: d6bd9e382e55bafd357e7ec62862ae731c21f897
2015-04-20 01:54:09 +02:00
Lynix 201275b4ae (NodeComponent) Fixed NzNode::SetParent methods not being exposed
Former-commit-id: e4c60f01db90cd288314c37bfb6969b1922a1868
2015-04-12 23:28:12 +02:00
Lynix ead468525e (NDK) Added Velocity component/system
Former-commit-id: 427b7175fbf9723fcd1d54fc279b8b70167745d4
2015-04-12 23:19:53 +02:00
Lynix 2ab0defa48 (NDK) Fixed copy/move constructor/operator
Former-commit-id: e51e7cab650aa7c17141f7401fbcbdf3159aec2b
2015-04-12 21:03:19 +02:00
Lynix f137a75267 (NDK) Added Listener component and system
Former-commit-id: 0553c4ad9a7e33608e9ab91bd4ca8812272a6293
2015-04-12 19:38:38 +02:00
Lynix f290b8d886 (NDK) Added Application class
Let's try something


Former-commit-id: ebace85e2b050b1fbb994a61a644b60b85cc5a30
2015-04-07 17:41:17 +02:00
Lynix 1bd45731cd (NDK) Added NodeComponent
Former-commit-id: 61b970c31a12a1b128e72c4754590528b6c1b4d6
2015-04-07 17:39:45 +02:00
Lynix 46d125d205 (NDK) Added explicit initialisation
Components and systems just can't be initialized at startup, so we need
some kind of explicit initialisation. I followed the same layout as the
others modules by adding a core class (Ndk::Sdk) which will initialize
components and systems, and Nazara's modules.

This is starting to get serious, I like it.


Former-commit-id: 263500e8d16db70ef7f92047b8a7e3235c08bcd0
2015-04-07 17:39:20 +02:00
Lynix a1280a6af3 (World) Renamed internal method Mark(All)AsDirty
To Invalidate


Former-commit-id: 62e62d82258227d652711c3933a816845a076e53
2015-04-07 15:50:43 +02:00
Lynix ebc651dec8 (World) Added GetEntities() method
Former-commit-id: 14095df977d566b3a3c306542bd4d83bd11392d1
2015-04-07 15:38:08 +02:00
Lynix 7351ce46fb Removed useless space
Former-commit-id: 8eefc03bf288bf24df61b6d5ac4f2f38b69e1c18
2015-04-05 16:35:43 +02:00
Lynix 8421a543fb Changed component index variable name
From CamelCase to camelCase (since I use camelCase for the variables)


Former-commit-id: 3382295dda75378e40835c23040bd2738736a210
2015-04-05 16:19:45 +02:00
Lynix 6a99b38be1 (NDK) Modified component/system registration interface
Let's hope it's the last time I do this


Former-commit-id: 75f8e63e90e067a7d21efa6a1226ae4bbe050ab9
2015-04-05 15:57:24 +02:00
Lynix 28b0e26a88 (EntityHandle) Fixed hashs
Former-commit-id: f5d23d81a5b46dfbf90d2004dfeb9595f30c2df2
2015-03-31 02:20:30 +02:00
Lynix c25f824f65 (NDK) Fixed compilation error
Former-commit-id: c762dbf34c0141882df0ce43509277877c5c559e
2015-03-30 14:17:25 +02:00
Lynix 1903cbda8d (NDK) Minor changes
Added some asserts and comments,


Former-commit-id: 805246f0276aac157c66cbf346c392ab57934e84
2015-03-30 04:36:56 +02:00
Lynix 6d1ac4fe18 Re-remade component and system ids
Former-commit-id: 98b76695cca904c55c7333801c3cdf693da15086
2015-03-30 04:18:44 +02:00
Lynix be8f6edeb4 Improved interface
EntityHandle are no longer required to pass Entity as arguments
World::CreateEntity() now returns a const EntityHandle&

Former-commit-id: 6fc53ce5759a2a508094bdc61b4471f13f0844ec
2015-03-18 00:49:44 +01:00
Lynix e91313b62d Added systems
It's now officially an ECS, yay!


Former-commit-id: e2aacaa5c9fd362921cf3d064e346d11f942bd59
2015-03-17 19:55:39 +01:00
Lynix bc40fbb02f Remade component ids
No longer based on incrementing counter


Former-commit-id: b875e17781d8bcda48ea9ada523adf0823b22a8b
2015-03-17 19:53:59 +01:00
Lynix 0ba034f7e9 (Entity) Added components bits
Moved [Add/Remove]Component implementation to .cpp


Former-commit-id: e61e8c57911c2e106e6c0959b692a006b8f58c40
2015-03-17 12:34:03 +01:00
Lynix 03ef0f9f50 (World) GetEntity now returns a const reference
Former-commit-id: 179139a21c639bbb2c96058095a82f3be76de5c1
2015-03-16 22:16:35 +01:00
Lynix 3694857d30 (World) Optimized entities handling a lot
Former-commit-id: f05f3bb7bf321d30fd51f504ace95aa0ea9f7f8d
2015-03-16 22:14:18 +01:00
Lynix b30298b6ab (World) Removed useless forward-declaration
Former-commit-id: e4a3a34326f9e2d6afdbae062274e2ef63da898d
2015-03-16 22:05:03 +01:00
Lynix 7bac245a0f (Entity) GetComponent no longer throw
Former-commit-id: 8efd0f5aba9c49d7f06ba290425f9e55c2f1eba3
2015-03-14 16:53:26 +01:00
Lynix a16582d20d Removed useless includes
Former-commit-id: 2343f21e70621f194213085b6f83b10d958be09c
2015-03-14 16:52:44 +01:00
Lynix 6bd6039051 (Entity) Fixed typo in method name
Former-commit-id: 40588d78fe38b2ec9ca9998e0c7ce4c73af3b27b
2015-03-14 13:53:10 +01:00
Lynix 40727cc0ca (World) Fixed EntityHandle passed by value
Former-commit-id: c4b4b5cbb4d84110416a4493fc09e7b95e137bc6
2015-03-14 13:21:29 +01:00
Lynix fb148c1aa0 Removed useless include/declaration
Former-commit-id: 7ad1c9940aee9ce00000ba8c31ac05117d2b6c31
2015-03-09 19:05:47 +01:00
Lynix c818ef7d4b (EntityHandle) Fixed swap
Former-commit-id: 735dd9d2c3080d202306ef9cfb1bb130639e93cd
2015-03-09 19:05:32 +01:00
Lynix c71c050831 (Entity) Added non-template version of components handling
Former-commit-id: 0f9795a0b130e6e5ebb26782459d79bde1b0efa1
2015-03-01 13:42:17 +01:00
Lynix 7c73407fa4 (Component) Fixed Clone method
Former-commit-id: afa38a9b684f045dc3cf0d072736ebb6c47e4bd7
2015-03-01 13:41:44 +01:00
Lynix 99bf3d95f7 (BaseComponent) Renamed GetComponentId to GetId
Former-commit-id: 9cc5a3d86755f0b9928ef697e0e0c16c068819bc
2015-03-01 13:41:15 +01:00
Lynix 9c0c991fe0 (Component) Added clone virtual method
Replaced Component<C>::GetId by GetComponentId<C>()


Former-commit-id: 4fae3f73c7fad0a5c36dae16e49b6f12c8bf6ae2
2015-03-01 11:21:58 +01:00
Lynix 8b77825fb8 (Entity) Changed template name from C to ComponentType
Former-commit-id: 780c96238f5f976b9caa86ec982bec7b5fd9ee8a
2015-03-01 11:19:54 +01:00
Lynix 699b580516 Added Components
Former-commit-id: 02f9e9892b58a725697b83e7b75127db5b3a27f4
2015-03-01 01:53:49 +01:00
Lynix ba127ef7b2 (Entity) Fixed handles not being cleared after destruction
Also updated some comments


Former-commit-id: 86b23fca0806c637fbe007df4c7edfb52b95f8e1
2015-02-24 16:15:17 +01:00
Lynix 6201183572 (World) Replaced pointers to Entity by EntityHandle
Former-commit-id: b29aaaa7362c0c816dc270e15ba5f8253717c457
2015-02-19 23:51:17 +01:00
Lynix 924d10e61c (Entity) Changed handle storage from a set to a vector
For performances reasons (creating handles no longer require any memory
allocation)


Former-commit-id: 76d705997c7fa3be78b063c6d602b09c7c20b2fd
2015-02-19 23:35:15 +01:00
Lynix 86fbb310c3 Fixed some files encoding (wasn't UTF-8)
Former-commit-id: cabceea2588d390da5d52a06517754ba97721efc
2015-02-19 23:24:56 +01:00
Lynix 3a18035989 Remade Entities
Former-commit-id: 25f7bc84279fdf58b44cf78e2d94b4cbb78a8410
2015-02-19 22:06:57 +01:00
Lynix 1d79efeb7f (World) Optimized CreateEntities method
Former-commit-id: 99b89aad500ebaa18fb733ad04a94010728e8370
2015-02-08 22:26:28 +01:00
Lynix 32951deed8 (World) Inlined some methods
Former-commit-id: eab086bdde8b11cc261faf2cb5d161bbfcebdc73
2015-02-08 17:47:41 +01:00
Lynix d5a8bdca12 (Entity) Inlined most code
Former-commit-id: 287c7c557263497ba89451dd2d640fcd8522ef3a
2015-02-08 17:39:06 +01:00
Lynix 266da016ad (World) Added clear method
Former-commit-id: 54789542144a382c134042fa8050d06d3a80ca5d
2015-02-08 15:45:42 +01:00
Lynix 5067767074 (NDK) First commit
-Still missing a build file
-This is an Entity Component System, without any component nor system,
so this is an Entity. Yay.


Former-commit-id: f04d2fdfe8819826f940469c2618140a26afa637
2015-02-06 13:56:27 +01:00