Commit Graph

538 Commits

Author SHA1 Message Date
Lynix 31c272ab98 Core/HandledObject: Fix move assignement operator 2018-04-03 22:05:35 +02:00
Lynix 25f2bcf03f Revert "Core/Algorithm: Fix Apply problems"
This reverts commit 9a8c807d18.
2018-03-20 21:50:22 +01:00
Lynix 9a8c807d18 Core/Algorithm: Fix Apply problems 2018-03-20 20:59:54 +01:00
Lynix ad82de2962 Replace typedef keywords by using 2018-03-20 20:59:04 +01:00
Lynix 69f079fcc8 Core/Serialization: Add type tag parameters 2018-03-20 20:56:06 +01:00
Lynix 3036c32d9d Core/Bitset: 2018-03-06 20:25:29 +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 b6bbf82d97 Core/Flags: Fix bit shift on integers 2018-01-20 14:19:05 +01:00
germinolegrand 1e55c4d9e9 Prerequisites instead of Prerequesites (typo) #152 (#153) 2018-01-16 12:23:01 +01:00
Lynix b85a762476 Core/SparsePtr: Fix warning 2018-01-06 02:46:08 +01:00
Jérôme Leclercq e8d519dad7 Core/MemoryHelper: Make PlacementDestroy a no-op on null pointers 2018-01-05 16:09:25 +01:00
Jérôme Leclercq eb9bc18b45 Core/MemoryHelper: Oops 2018-01-05 15:41:30 +01:00
Jérôme Leclercq 1e53274623 Core/MemoryHelper: Fix alloca with a size equivalent to zero 2018-01-05 15:40:25 +01:00
Lynix fd8306f17f Core/String: Replace implicit operator std::string by ToStd::String 2017-12-14 19:50:06 +01:00
Jérôme Leclercq 9272efa159 Core/Thread: Fix possible infinite recursion 2017-12-13 17:42:45 +01:00
Jérôme Leclercq aa623a4933 Core/Flags: Add Test method 2017-11-22 12:58:56 +01:00
Jérôme Leclercq 54faabcc33 Core/Flags: Allow explicit operator conversion to any integer type of the same size (or greater size) than the internal size 2017-11-22 12:58:17 +01:00
Jérôme Leclercq 9c9b9ed49f Core/String: Fix movement leaving a null shared string 2017-11-22 09:27:23 +01:00
Jérôme Leclercq f84ac9c52b Merge branch 'master' of https://github.com/DigitalPulseSoftware/NazaraEngine 2017-11-21 12:26:45 +01:00
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 078641aa23 Core/Algorithm: Fix Unserialization of std::string 2017-11-05 22:36:14 +01:00
Jérôme Leclercq a982215ab7 Core/Bitset: Mark swap as noexcept 2017-10-20 16:36:43 +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 99d21b8722 Fix compilation and some warnings 2017-10-02 16:18: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 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 5531e81e65 Core: Add CRC64 and regenerate global headers 2017-08-15 12:32:19 +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 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
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 3e97240148 Core/ParameterList: Add ForEach methods 2017-05-29 18:01:19 +02:00
Lynix 6d0314741a Core/ObjectHandle: Fix self-movement case 2017-03-25 10:12:01 +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 353ade3efd Core/Signal: Make movement noexcept 2017-03-10 11:36:48 +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 7cc11245f9 Core/Flags: Move external operators to the global scope
Fixes usage of those operators outside of the Nz namespace, global
scoping is not an issue thanks to the enable_if
2017-02-15 07:13:00 +01:00
Jérôme Leclercq ed8deed23c Core/MemoryHelper: Add PlacementDestroy 2017-02-01 17:52:32 +01:00
Lynix 1d6f22cd8a Core/Flags: Make Flags default-constructible 2017-01-27 14:49:07 +01:00
Jérôme Leclercq 28965b799e Core/MemoryPool: Fix incorrect inlines 2017-01-25 15:53:25 +01:00
Lynix a84110a575 Core/ObjectHandle: Fix operator<= 2017-01-21 20:31:53 +01:00
DrLynix f383eca19a Update copyright year 2017-01-20 12:58:35 +01:00
Lynix c9b84e3852 Core/Signal: Make move constructor/operator noexcept 2017-01-11 17:12:35 +01:00
Lynix 7de3c4905f Core/String: Add Format static method 2016-12-16 18:37:06 +01:00
Lynix cb447e4db7 Core/Flags: Add assertion in case EnumAsFlags has not been specialized 2016-12-12 15:12:34 +01:00
Lynix e98a02b190 Core/Flags: Allow handling of more than 32 enum options 2016-12-12 15:12:15 +01:00
Lynix 876fec6f5e Core/Flags: Make aware of enumeration max value
Preventing it to enable bits that have no corresponding enum value
2016-12-12 15:10:37 +01:00
Lynix e9061a6cf8 Core/Flags: Rename EnableFlagsOperators to EnumAsFlags 2016-12-12 15:07:16 +01:00
Lynix bc073de94a Core/Flags: Add documentation 2016-12-12 14:41:34 +01:00
Lynix e3daf7ef1f Core/String: Add GetCharacterPosition method 2016-12-03 00:34:55 +01:00
Lynix efcce7d442 Core/Enums: Fix typo in OpenMode (MustExit => MustExist) 2016-11-27 14:23:26 +01:00
Lynix a34d1e410c Core/Enum: Convert OpenMode and StreamOption to the new flags system 2016-11-27 13:40:47 +01:00
Lynix 1a5617bc55 Lua/LuaInstance: Add conversion operator to UInt32 2016-11-27 13:21:04 +01:00
Lynix 0070e691b0 Core: Add Flags class 2016-11-27 02:22:07 +01:00
Lynix c65f19d8cf Core/Bitset: Fix compilation 2016-11-18 01:36:40 +01:00
Lynix 5efa986ac1 Fix compilation warnings 2016-11-18 01:32:03 +01:00
Lynix 9513d9479a Core/Bitset: Fix PerformsAND when used with itself as argument 2016-11-18 01:14:08 +01:00
Lynix 359b5e6c3a Core/Algorithm: Add BitCount function 2016-11-18 01:13:30 +01:00
Lynix 2ed65e60e1 Core/Bitset: Add Reverse() method 2016-11-18 01:09:05 +01:00
Lynix cec547bf1f Core/Bitset: Improve a bit(set, HAH!) doc 2016-11-17 23:02:13 +01:00
Lynix d9774f30a3 Core/Bitset: Add Read method and FromPointer static method 2016-11-17 22:57:54 +01:00
Lynix 43a3f15794 Core/Bitset: Add AppendBits function 2016-11-17 22:56:48 +01:00
Lynix 828d744879 Core/Bitset: Fix some warnings 2016-11-17 18:26:45 +01:00
Lynix 180a8edf3b Core/Bitset: Add operator<<(ostream&) 2016-11-17 18:26:05 +01:00
Lynix c1630cdbff Core/ParameterList: Fix warning of shadowing variable 2016-11-15 15:13:12 +01:00
Lynix 425f09f418 Core: Remove unused AbstractLogger.docx (Closes #87) 2016-11-14 00:06:49 +01:00
Jérôme Leclercq 8ed34d22fb Core/ByteArray: Move ToHex implementation to .cpp 2016-11-08 16:14:56 +01:00
Jérôme Leclercq 12f6877963 Fix some warnings 2016-11-04 22:25:16 +01:00
Lynix c58ec94e2d Core/Algorithm: Fix return type of Apply() 2016-10-27 10:48:02 +02:00
Lynix f867c20c7c Core/ResourceManager: Fix Purge() compilation 2016-10-27 10:40:41 +02:00
Lynix b81b774c51 Core/ObjectRef: Fix <= operator between two ObjectRef 2016-10-27 10:27:17 +02:00
Lynix 5a07bbd001 Fix a lot of warnings from Clang/GCC 2016-10-17 14:46:53 +02:00
Ardakaniz 495976bff6 Remove DefaultLogger, just accept a SetLogger before initialization 2016-10-16 18:34:01 +02:00
Ardakaniz 308a603324 Log: Add possibility of set default logger (for initialization) 2016-10-16 18:21:05 +02:00
Ardakaniz fca5aeb9cd FileLogger: Make IsTimeLoggingEnabled const 2016-10-16 18:20:25 +02:00
Ardakaniz 64cec3fd01 AbstractLogger: Make IsStdReplicationEnabled const 2016-10-16 18:20:05 +02:00
Lynix 1788cd0735 Core/Bitset: Fix compile error
Former-commit-id: f9e4fc7547f9b741d9830ca96c552595b49b218d [formerly d8e832f8f8307a5af8c54a073fb7105e956dc91f] [formerly da3ca4c03e8c4f26023530a3150c99fe0bd8f060 [formerly 454daac75baf19c15612509e8505417dd1f194b6]]
Former-commit-id: e6c44555476b6b8f2648895493736d6018dd9ce5 [formerly 8e816f8b6a1366583000aa5e35b10b5bd6f82019]
Former-commit-id: 8d470b2679af9464001d3239738ab8d5bc7d6d67
2016-10-08 07:19:41 +02:00
Lynix 2b28b217d1 Core/Bitset: Add bit shifting functions
Former-commit-id: a5d9aa0da769a1f5b70e5db8eed5c370e1e9b076 [formerly c8338571cedad83c557ffa9210f8e11a928157f2] [formerly 47e36d22755f77c878f5277a99f61388f096a449 [formerly 12f27f9470c490160deb869f83736c000bb18d93]]
Former-commit-id: bc971c681a184ac7d340fa1d5b053f2e4a8cd156 [formerly 2a84c48ec1ab8970fb768dc5d925e7712cb193ea]
Former-commit-id: 728cccf49da4bb48416aa91e3687fa7fad8035ef
2016-10-07 19:16:25 +02:00
Lynix c61b4598e8 Core/Config: Rename WINDOWS_VISTA option to WINDOWS_NT6
Former-commit-id: 9d0c33b7d79521e074aa84684d09d7855956d1df [formerly 7400f0dc41845e0bf275e7a631ec760857db6009] [formerly 9bc38d067febb9723119adf811922642b1f7b782 [formerly e7b9f3e327d422a9ed1e01cdc9439170a67bf7d2]]
Former-commit-id: 8614882bef71668ed10cd7fedbf4a058073e6389 [formerly 1bbf4a90092509565475a1709c82dc696f8b8a04]
Former-commit-id: 0b6c22973bfa60dca69902388244d4d40fc9b554
2016-09-27 13:40:29 +02:00
Lynix d700124704 Core/Log: Add AbstractLogger inclusion
Former-commit-id: 0da715a3ab6b34b3ffe65659a6d46bb542a12897 [formerly c4033c72ac80435a188a50197bc382be9b413c63] [formerly 989f44ed7d63b9f6c3b125694b7855de8e51bacf [formerly a0a4effadc32a802ee2d56429326f1a935bb4d4a]]
Former-commit-id: 04addee943f199d59be5cafff05009b191415158 [formerly a787ddc27a06f6b39097b1813235cfe3d33aba30]
Former-commit-id: e4f09a35f3dff825c3bafa0f7614526ce01a8e60
2016-09-26 13:15:09 +02:00
Lynix 5ded56c6e5 Core: Fix warning of Serialize()
Former-commit-id: d6ddb8947cd250e03a7918e6079b1ee0e4e9bc19 [formerly db49227b808f10e078925da7e293cd3474ea4fa7] [formerly 43f03d8bb5ce0f2ae1ad8989d5af99c6e780c622 [formerly 915b6943dc75ff7e550b6a028358bdb8cbe15203]]
Former-commit-id: 1eeb94806f6053948945adf0e044563ad371d1e7 [formerly 2d9eeea263f8728588f6c0ce0d0e0e27006154b1]
Former-commit-id: 417aa3f586b9615c2bf8d8f2127b616871be35e7
2016-09-25 02:02:05 +02:00
Lynix f434b753ff Core/Algorithm: Add serialize/unserialize overload for std::string
Former-commit-id: c4aa07b3ab8fcac85ac290ae5168bd841ce16dfd [formerly ee0f4fa822ec65aa72d43c9ab370402976713206] [formerly 9ec403e92a60b8ca97d7bc3e579ca5983089ba76 [formerly d7e17cc3ff72d43e23f11a70d785efcff3f4cba2]]
Former-commit-id: 190337087a987ca5ef1ac9789f04e3b9f2fc47af [formerly fc6bed4363a90b165db7fde093a6df37eeb9f45a]
Former-commit-id: 28d6dfe4b4217e91a7283e0fbe45d20ac982f79c
2016-09-25 01:48:57 +02:00
Lynix 0b1ae4f16a Core/Config: Fix typo
Former-commit-id: 8e9d1c6f4ef8231b9ff59d51abf224606795775d [formerly 5ff9f91c844593607b64df00b5ec9344da1aa864] [formerly 83084c13b439390fa313594332ef0d42e793df9a [formerly 317e9e476ef6a7a97e9906245682080a196dd82f]]
Former-commit-id: 5b16e13e15bcc5054743387fd1cb738515a198d9 [formerly ec5e19e21a44489c2eaa0843b0f869341c5deb20]
Former-commit-id: 60028fb6c993ddf6cee0458f9ed6d5d7fcca25bd
2016-09-22 18:17:29 +02:00
Lynix 9e1b2c69a9 Core/MemoryHelper: Fix compilation with MinGW
Former-commit-id: d06a447e934ee66f3f5c399fdd58f2bc95260544 [formerly 18a9328df6edb35b500a57184a8c5155e0e8f6ed] [formerly ef18cf674c43bc0e5cd0f54f50897f184b74d327 [formerly 474225aa4a4843398bfdc5e9d6c9f3db88573170]]
Former-commit-id: 3d5905c69b5fd68c585cecf5191bcffe1d3557f9 [formerly 4a1183e5d7a59d8efe05091b282b406c1c4049e3]
Former-commit-id: 8755e653ff0730ec687db80117405f33a4b2e430
2016-09-16 14:19:42 +02:00
Lynix 8e009a1d66 Core/MemoryHelper: Add portable stack allocation
Former-commit-id: 50b96029c53d1784f028148f1ec15ae2cf98d036 [formerly eb3398905190df3d0dc77c8a3b54bb455059e39b] [formerly bfac4638e043161208ee7cf4735a788b1427f73e [formerly 1ee0a59ab5aa407c995afd287a9aaa4307075754]]
Former-commit-id: 521c4248c638e5141534cd1d223d8f563693b821 [formerly 203f6191b3b24ccb2e04d330372973dadfb81e1d]
Former-commit-id: 140a5c705819055b4d27f43156b079d6142049a5
2016-09-15 00:46:59 +02:00
Lynix da7216a202 Utility/OBJSaver: Remove some warnings
Former-commit-id: 7762f44e85efd99346752899b43d757512eee8fc [formerly 6b86a269f98d9421b60263f2e8435cf14445e469] [formerly ecd111f0499e4659638c11071ae1f472303fa0d9 [formerly d272286ae403222512e8ca9178419094f7da4a0c]]
Former-commit-id: 4211533ae1db2ce95fda5721a0c1050afe3d67f9 [formerly 10f4944022e9fac77060407fd6f05ab40aa20e09]
Former-commit-id: 12747ce9a2c9c3fc2e2b02233d06e9370b18f790
2016-09-04 21:00:23 +02:00
Lynix 7c2add0a65 Core/Signal: Remove debug log that got accidentaly commited
Former-commit-id: 435e861f9d695e09995c3a0f4a1eacd43c1d883d [formerly a995326be759d5dd467d938f363bc2fe727123d3] [formerly 1c38e003106ee292dd7f94fbc68e3308e9be9a86 [formerly cf359837241bce8143a16394c72a14a8c614aa53]]
Former-commit-id: cc354e782c2f2a13350c742e2a016bbc656842fb [formerly f72def4abc3b8b27a72ee4d53d11015d0d2bbcd4]
Former-commit-id: 85a57ad329db63764ba3f26375926dfdb40ff821
2016-08-11 01:06:21 +02:00
Lynix c1b2f3af00 Core/Log: Fix errors not being written in NazaraLog.log
>.>


Former-commit-id: 0aaaced48b71709efbe19255f12053d2ee3c1cd0 [formerly bdfff4f0dbc3f85c39d16966f0060706039a34a3] [formerly 6084c5725e4b55a72a1c23682b296507f8ef87e2 [formerly eaef4ab9e73788599dbfab43d11566c21435a334]]
Former-commit-id: 4762ce471a7cb88c8bbc6f551daa5db31e57a38c [formerly b2e6b592bfdab34e367674ea48e79659934a08a5]
Former-commit-id: 9f7ab7e7441f6c50f74c8d9a9b0a5fc9363a74e9
2016-08-10 23:50:51 +02:00
Lynix e0fa458f40 Fix compilation with GCC/Clang
Thanks to @Gawaboumga


Former-commit-id: b8cc59cab55fd7d3b286dda28e70ee0ddb753230 [formerly c734175c33bf84226eedb76953e773f5bb91f631] [formerly 01b6b7b89bffccf217e38ed8431e2b2921facc51 [formerly 03c3cd902be4a0a104db22a2831adeb675998929]]
Former-commit-id: 89ce26d806f8b750854af1704aa6af899b7779b3 [formerly 782dbee06d75ba2f555632713b44f1c25666e3ab]
Former-commit-id: 30ba1aff3bc8a8de9510fb6e4f417526fb31e125
2016-08-10 22:17:55 +02:00