Commit Graph

386 Commits

Author SHA1 Message Date
Lynix 3e78dd40ad Fix some GCC warnings
Former-commit-id: b3292fcfd4d029793cb70f97ab608aeb7d0579ef
2016-05-25 13:52:10 +02:00
Lynix 43895d29af Core/Algorithm: Add ReverseBits function
Former-commit-id: fa37fcf64cfe6786b9906aa7a8b410e19a3079d1
2016-05-17 17:08:14 +02:00
Lynix f7b0496d62 UnitTests: Fix errors
Former-commit-id: 7d338bd57e8a083e63c5f6387ff37c81109903ed
2016-05-05 21:27:36 +02:00
Lynix 08926cf530 Core/Posix: Add absolutly not tested File::SetSize implementation
At least the engine should compile again on posix


Former-commit-id: c2ccdb9ad939b20e288b211aee678917934f1757
2016-05-03 23:15:22 +02:00
Lynix 6c9a48d80e Utility/Formats: Fix MD5 loading
Former-commit-id: 05a4ee3745a6f5444a19c15f713fdd21d51a7804
2016-05-03 12:42:52 +02:00
Lynix 6d824109f3 Core/ParameterList: Add support for color values and updated documentation
Former-commit-id: 4cd9faf2fe035b946afa1ba15243bdcf3255716a
2016-04-30 12:44:34 +02:00
Lynix 019c1f4a36 Core/File: Add SetSize method (currently missing Posix implementation!)
Former-commit-id: c9ffb545485d90940d620e94fd25a7256d62ab58
2016-04-29 14:20:22 +02:00
Lynix 78469266fd Core/File: Add OpenMode_MustExit
Former-commit-id: 1df10e230d3c6ef71244060845b1fc02f7b5a8e9
2016-04-27 18:10:45 +02:00
Lynix 0d6727e746 Core/ByteStream: Fix SetStream pointer overloads
Former-commit-id: ca35afb6e7257df7097d6aa39e99ccc9b3c0085a
2016-04-25 18:34:00 +02:00
Lynix 6d66063b2c Core/MemoryHelper: Improve PlacementNew interface
Make it possible to deduce type from arguments


Former-commit-id: ed25b667fcacefcc39fddcb941ea11c40e6ce22b
2016-04-24 19:48:12 +02:00
Lynix 104e393d65 Core/LockGuard: Improve LockGuard
Former-commit-id: e9313d81c8cd9cb2cefef64a7c54713062ad9d6a
2016-04-16 18:38:52 +02:00
Lynix 1ec8c8c5e0 Core/Error: Remove Directory include in Error.hpp
Former-commit-id: 61ed7168229dde265159fa5acde0c57c315b85fe
2016-04-11 13:01:17 +02:00
Lynix a31a969409 Replace useless reinterpret_cast by static_cast
Former-commit-id: f61d644d968d4fe9523a5cd122e11525a9c2765d
2016-04-07 04:20:18 +02:00
Gawaboumga 91f2bee487 Bug fix -> String with one char + Directory and File on linux
Former-commit-id: 7f9b6c44197c3cc67145eb0a2d421a2e1de45a84
2016-04-04 10:36:13 +02:00
Lynix cc9aec3a52 Core/HardwareInfo: Fix comments
Former-commit-id: 48afaf7a2bb258e65fdd4569601edef2031a241f
2016-03-30 17:50:26 +02:00
Lynix 5465951f87 Core/ResourceLoader: Fix assert
Former-commit-id: 391a0ec4de1a1c5ed97ea82aee0d3d69fbbc00df
2016-03-30 17:49:27 +02:00
Lynix 1a95c314ff Core/ParameterList: Make errors silent by default
Former-commit-id: 38d1613681a65194cb7392903c9bc20f912561a3
2016-03-08 13:58:09 +01:00
Lynix b524d9395a Core/String: Fix documentation comments
Former-commit-id: 02fd62caaafce0376b387d9c8365b3ca89e32a78
2016-03-08 13:12:02 +01:00
Lynix 1c4135fc09 Improve documentation
Former-commit-id: 08d70f6a53a7f12d2748d145d1fe139595a1b39e
2016-03-01 15:37:05 +01:00
Lynix f9a95ce054 Core: Made Mutex and ConditionVariable moveable
Former-commit-id: 891fbb35d050f3df572cbbecd0191b75f556e59d
2016-03-01 13:59:17 +01:00
Gawaboumga 2a28d8863c Documentation for the rest
Former-commit-id: b6f401370127679db397da0039cb5e98477e90db
2016-02-21 14:42:38 +01:00
Gawaboumga 0a4381a95b Documentation for Core
Former-commit-id: d0d4a575149b9f3e70e07b3a815e669d6a79065f
2016-02-21 14:41:17 +01:00
Gawaboumga ff51b90748 Documentation for Error
Former-commit-id: 9158cb014b813739b09b0bea7c375dc549815aef
2016-02-21 14:39:05 +01:00
Gawaboumga 99370683b3 Documentation for DynLib & PluginManager
Former-commit-id: 3602bd9a6f24ed4adb38879097ea5679b55e3b99
2016-02-21 14:38:35 +01:00
Gawaboumga 5a5f25a950 Documentation for Documentation & File
Former-commit-id: 8a69e6dca76fba4a23b36c563b52c4ccbbec7309
2016-02-21 14:37:37 +01:00
Gawaboumga a82c33c314 Documentation for Stream
Former-commit-id: 0e77be8d238879c114c5e7b166ae646254fac9eb
2016-02-21 14:36:49 +01:00
Gawaboumga fd627c671f Documentation for Synchronisation primitives
Former-commit-id: 39f86b2f9cd1f44a6b8e52101458f090183707e4
2016-02-21 14:36:03 +01:00
Gawaboumga 07547bdd9f Documentation for Logger
Former-commit-id: b09dda8a542782667070ea8bf912b552dd6b478a
2016-02-21 14:34:59 +01:00
Gawaboumga d340553023 Documentation for ByteArray and ByteStream
Former-commit-id: 4d2d0de93562077e030b4304b57f6c95b32185b5
2016-02-21 14:32:59 +01:00
Gawaboumga f540029825 Documentation for String
Former-commit-id: caf1b5889604d7c2248ec88bde99a6bce0d7680f
2016-02-21 14:32:17 +01:00
Gawaboumga c163d65da7 Documentation for Thread
Former-commit-id: b33bbdf473792ddcde8ffbe310722d83a1a12bcf
2016-02-21 14:29:03 +01:00
Gawaboumga 44ec6caf5d Documentation for Memory
Former-commit-id: 85e41e916df2c2e2bffa31f5540643144223a322
2016-02-21 14:28:17 +01:00
Gawaboumga f16857fc6a Documentation for Resource
Former-commit-id: 7da8bc4261566c89030eb0226a29b1a70183e68a
2016-02-21 14:27:29 +01:00
Gawaboumga 1d5518b0d3 Documentation for RefCounted
Former-commit-id: 45bd646d027ba91fc3d399631fc0518ba172385d
2016-02-21 14:25:26 +01:00
Gawaboumga 1eebeceeea Documentation for Primitive
Former-commit-id: 8f4e15d4e9131836545f8b112049a001638f411c
2016-02-21 14:24:37 +01:00
Gawaboumga 01d5f18d27 Documentation for ParameterList
Former-commit-id: 5b8752a1d20eb894e17b271a019c379d867a4eb5
2016-02-21 14:23:46 +01:00
Gawaboumga 0934c21967 Documentation for AbstractHash
Former-commit-id: 467b96c5d8b9ed9a3fddd7cf6f09803977b53caf
2016-02-21 14:19:40 +01:00
Lynix e367ec456d Core: Rework Serialization
Former-commit-id: d97eedbd3efc92235e3880ad061a5216fa77ebd7
2016-02-03 18:42:19 +01:00
Lynix d6827163cd Core/MemoryStream: Fix Writing
Former-commit-id: 05a1b8a3baf79642af50ee34aea53195eff25df2
2016-01-19 12:21:20 +01:00
Lynix c9a63bc72c Core: Bring back MemoryStream class (It's not perfect but necessary until a better replacement comes out)
Former-commit-id: e3106b98c9825e313525298a8d46ff9c40bf5027
2016-01-15 02:24:34 +01:00
Lynix f273c0229c Core/String: Fix Clear(true)
Former-commit-id: 8c3a60660de5fb435de83f6f5b164c6ee9f7c00b
2016-01-06 13:55:44 +01:00
Gawaboumga 3247435e08 Fix for Linux
Former-commit-id: 8cddb6d53f658144f8659adbd7ecab67eb5a41a2
2015-12-30 15:59:08 +01:00
Lynix 3cdf6a9f44 Core/String: Replace Resize argument by flags, it is now capable of handling UTF-8 sequences
Former-commit-id: 472e3504de06166049fcf1b850c38e5646a2d872
2015-12-11 13:35:44 +01:00
Lynix ee2257810c Core/Directory: Fix crash at the end of program with MinGW
Former-commit-id: 822d053793e0efc4e3dbb69fbfca556667c303f6
2015-12-07 22:49:40 +01:00
Lynix 9f9705ccfa Core: Rewrite Log system
Former-commit-id: 42bc22a2172507d1dbbdffe570f36067366a67e3
2015-12-07 18:18:14 +01:00
Lynix 0f889a0140 Core/Clock: Add documentation
Former-commit-id: e55e7dff873349eb0cc26e6c364b0d5967c3149a
2015-12-01 13:40:48 +01:00
Lynix 6fcf7dcf23 Merge branch 'NDK' of https://github.com/DigitalPulseSoftware/NazaraEngine into NDK
Former-commit-id: d6270f2f36e4b83124f8d6525954db304e0bb32a
2015-11-30 12:51:01 +01:00
Lynix 5e8f8549af Core/Posix: Fix file opening in ReadWrite mode
Former-commit-id: 7c4a5d3e31e9449fa3c23cfad58523ed54b7834a
2015-11-30 12:50:56 +01:00
Lynix 9b0e903e31 Core/Win32: Fix file opening in ReadWrite mode
Former-commit-id: 58feae9f282529b8067fae52e81d29bdada154f9
2015-11-30 12:50:55 +01:00
Lynix 6bc285cb00 Fix compilation for GCC
Former-commit-id: 7c51c59904fa86f952b704d175b09b32640d9395
2015-11-28 02:07:56 +01:00
Lynix 5d3e4d7aeb Core/GuillotineBinPack: Fix search error
Former-commit-id: 8b7428f59b0a1258c8096df2f784910523dee79d
2015-11-26 23:57:48 +01:00
Lynix 72a6148d1b Core/MemoryView: Fix OpenMode
Former-commit-id: 71c88a9583981236650551b8bc0884abc04aeec5
2015-11-25 18:20:17 +01:00
Lynix bbe8a776e8 Fix a shitloads of warnings on VS
Former-commit-id: fca61118f4e0530ed2eaaf9ff96de29806aa5aa8
2015-11-25 18:19:26 +01:00
Lynix 4721bf80c3 Network/TcpClient: Make TcpClient a Stream
Former-commit-id: 2176748166ae84b609d5a336495e6ff3550a765d
2015-11-23 18:22:12 +01:00
Lynix 6829863d81 Core/Enum: Rename OpenMode_Current to NotOpen
Former-commit-id: f4395871d68d8f6da5ca6dbcda2177ad6aae2fc8
2015-11-23 14:15:29 +01:00
Lynix c93e4e901e Core: Add Serializer/Unserializer
Former-commit-id: 50fdf56da4fef46ec78995cb8fc277cbc9a11ebc
2015-11-20 14:23:10 +01:00
Lynix ed961f5ba8 Core: Merge InputStream and OutputStream to Stream
Remove serialization support from Stream


Former-commit-id: 7a761e4fcd07cab561f13e4709c4492ed18da88a
2015-11-20 13:52:49 +01:00
Lynix a47e5633d4 Core/String: Fix (Un)Serialize not checking string read/write
Former-commit-id: 8d6f907fcaf20374b713851a102dfc4b0003a39d
2015-11-19 14:04:00 +01:00
Lynix 11f85ab9bb Core/MemoryStream: Add default constructor and getters
Former-commit-id: dde0bbc7e697512d94275a807e18299eb271197e
2015-11-19 13:57:39 +01:00
Lynix 1c8a09f90c Core: Replace serialization arguments by context structures
Also fixed some endianness errors


Former-commit-id: 450849e681a9b002c3d501a856a8481470d08dea
2015-11-19 13:25:07 +01:00
Lynix bc4eb96af2 Core/File: Fix StreamOption_Text staying if reopened
Former-commit-id: b5d73fb753b8c38aa088ed793791efbbdbb404b5
2015-11-19 12:30:30 +01:00
Lynix 6eada337b8 Core/File: Fix compilation
Former-commit-id: 69d173fe734dde3d0ca0f008826addce0d5d50bf
2015-11-19 12:18:27 +01:00
Lynix 3fb9e57360 Core/Serialization: Add correct endianness handling
Core/File: Remove endianness handling


Former-commit-id: 6f7bba52057f36c507a024f7a7ea873658a3cfd3
2015-11-18 18:49:38 +01:00
Lynix be01b6f3b4 Core: Add serialization interface
Former-commit-id: cfa749dba1b6f23ef8f38519e0bc9ad9492e3db3
2015-11-18 18:29:20 +01:00
Lynix 167f3e4a27 Core: Switch Hashable struct to HashAppend function
Former-commit-id: 2a20eca0e75bf4067d390f4f5e446de78f26799c
2015-11-18 18:28:56 +01:00
Lynix 00423c4211 Core/File: Remove useless SetOpenMode method (equivalent to Open)
Former-commit-id: e02f4f758adfd2c0870920997acac71a47d51c3f
2015-11-18 18:27:01 +01:00
Lynix ddc343a630 Core: Rename MemoryStream to MemoryView, add MemoryStream
Former-commit-id: c180d5f34fa7c477f35c4b70ebf7b64e3f35fe3d
2015-11-17 14:06:57 +01:00
Lynix a1bb104255 Core/File: Fix crash
Former-commit-id: ee797ea7ba228fa814f2c87250c6dd6c32a9982f
2015-11-17 14:05:46 +01:00
Lynix 8371ce068f Core: Update Stream interface
Add Open Mode to Stream level, Add IsReadable() and IsWritable()


Former-commit-id: 0da5fa798c0f3bd3bf1545cb57f6bc923b222de8
2015-11-17 13:19:44 +01:00
Lynix fb920f0016 Core: Add OutputStream class
Former-commit-id: a6b8f642e263833c75a338cc23266c94edbced6f
2015-11-17 12:47:13 +01:00
Lynix 21f223f1c7 Core: Reworked hashes
-Removed HashDigest class (replaced by ByteArray)
-Removed Hashable/Hash classes (replaced by ComputeHash function and
Hashable template struct)
-Fixed ByteArray operator<<
-Renamed File::GetHash to File::ComputeHash


Former-commit-id: cc5eaf2d4c88a556878190b8205e66713512e2d2
2015-11-16 14:04:39 +01:00
Lynix 6a3eb68225 Core/String: Fix heap corruption
Former-commit-id: cf3f1172a43b7ddb9b8e8e9521e3dc1258fa6c21
2015-11-14 11:43:06 +01:00
Lynix 5d6e6b2d45 Fix errors and warnings
Former-commit-id: a3ba309633f198f82c1d0277d750d867cad4ba44
2015-11-12 00:29:10 +01:00
Lynix fe680c038b Core/String: Fix crash
Former-commit-id: dc3199cfe9fb299000a5c07b26bd6ac611130459
2015-11-03 22:34:09 +01:00
Youri Hubaut 37586e7283 Switch from Nz prefix to namespace Nz for linux
Former-commit-id: 64eeaf3c633254b04910ebd4576fd9e910002be0
2015-09-27 15:58:49 +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 c214251ecf Update copy/move constructors/operators
Former-commit-id: b1faeeae9211a6c0ca29261d46929dc8c66ea0c4
2015-09-24 12:51:52 +02:00
Lynix 2fd3872099 Core: Remove NonCopyable
Former-commit-id: f8c6d10ad0b1abb4a32e3c867b7f24fd4bde68a4
2015-09-24 00:37:21 +02:00
Lynix b16abf0d09 Merge branch 'master' into NDK
Conflicts:
	build/scripts/module/renderer.lua
	build/scripts/module/utility.lua
	include/Nazara/Renderer/OpenGL.hpp
	src/Nazara/Core/String.cpp

Former-commit-id: 0a8054be56f01b12c604c88b829cb10b490a9d6f
2015-09-20 23:41:21 +02:00
Youri Hubaut 438e45c08e Test fixes for linux
Former-commit-id: 9d58eba0f30eb968161b212541f2411263162293
2015-09-19 17:11:31 +02:00
Lynix 466720abec Core/String: Fix IsNull() method (thanks to Unit tests)
Former-commit-id: dd4828c3c0e2d3423094cf018e70fd74deac0740
2015-09-18 14:10:15 +02:00
Lynix 9f1c190985 Core/String: Replace manual memory management/COW by smart pointers
Former-commit-id: 27cab7f0642619ab47d53ed59c737992534f2979
2015-09-13 12:07:31 +02:00
Lynix 44e99bce3d Core/HashDigest: Cleanup code
Former-commit-id: 869c880df6822e7cccf4b847bbba9a5390100a5d
2015-09-13 12:06:38 +02:00
Lynix 505f1dbb03 Merge branch 'master' into NDK
Conflicts:
	include/Nazara/Core/Algorithm.inl
	include/Nazara/Core/ByteArray.hpp
	include/Nazara/Math/Algorithm.inl
	src/Nazara/Graphics/SkyboxBackground.cpp

Former-commit-id: 42f52f71989fa805f69527fd07edb8405df06566
2015-08-21 18:55:58 +02:00
Lynix dea48a289d Merge branch 'master' into NDK
Conflicts:
	include/Nazara/Core/ConditionVariable.hpp

Former-commit-id: 84320f0a55ae9d8f80ff5211d30d99184c7b4213
2015-08-21 12:49:05 +02:00
Gawaboumga 376df6a3b7 Indentations
Former-commit-id: 0d82a4464cb9369bc4ca5cf2d7780c921eff953d
2015-08-21 11:32:29 +02:00
Gawaboumga 0b390e45a1 ByteArray rewritten
Now works internally with std::vector


Former-commit-id: 643f1d88b2959aed324743dbf91f831130a9198e
2015-08-21 11:28:04 +02:00
Gawaboumga 3dbcb25384 Transfert enumeration from file to enums
Former-commit-id: 0d9e191373affda50d0eb6c2376c7a23720e591b
2015-08-21 11:22:35 +02:00
Lynix 9c1441cc82 Core/MemoryManager: Implement allocation filling
Former-commit-id: 12e6c293e6d51663971e3da4c160b12a6710430e
2015-06-28 16:03:31 +02:00
Lynix 8bdb1c5206 Core/TaskSchedulerImpl: Fix compilation under POSIX
Former-commit-id: a5cedcad78a02283984bcb56be2d5a58e11cd504
2015-06-26 11:46:21 +02:00
Lynix 80d4acfe32 Core/MemoryManager: Add delete checks
Now able to detect double-delete and dangling pointer delete


Former-commit-id: 7ac9ab7034b8b790333d5655aa0c82a49bb9309e
2015-06-21 13:20:10 +02:00
Lynix 251e21f006 More VS fixes
Former-commit-id: 356effb816b9527ff9e89ee3b99074c468455b08
2015-06-13 19:42:07 +02:00
Lynix 504eb96b93 Fix compilation under VS2015
Former-commit-id: fb7b3f377e34ea0c44a7fc65efbdb059581d772b
2015-06-13 17:14:19 +02:00
Lynix a069b105e6 Fully replace listener system by signals
Former-commit-id: 032dfddd12cc3a792c71426148c758ffac3621f9
2015-06-07 20:42:41 +02:00
Lynix f8682d227b More Cppcheck fixes
Former-commit-id: 62ab1caa04543da1a169812bb92a450d44f3aec1
2015-06-07 00:21:53 +02:00
Lynix fc65b30f84 Improved code based on CppCheck results
None of this should change the engine's behavior, but the code is better
this way.


Former-commit-id: 0127769848fc1f7fc8006ee607985cfc0ead2965
2015-06-05 13:25:17 +02:00
Lynix 90e4a1ca52 Core/HardwareInfo: Added GetTotalMemory
Former-commit-id: 71289723115161dd253ccb65c1c91af65344c678
2015-05-19 14:13:48 +02:00
Lynix c3e5a7defc Core/HardwareInfo: Improve accuracy under Windows
(I don't think this will change a thing but let's follow the spec
anyway)


Former-commit-id: 882225b4caf46cc0a34643d6a55d5f818f7f36b5
2015-05-19 13:52:44 +02:00
Youri Hubaut 2cb6fca127 Seems more correct
Former-commit-id: fa83f37d65c97bd5bfb7840865fab0e838804c30
2015-05-16 13:28:28 +02:00
Youri Hubaut 2cb669a558 TaskSchedulerImpl for POSIX and compilation fixes
Former-commit-id: a402d40ac90cacf444b5832c49cfbdaf61f7f747
2015-05-16 13:10:54 +02:00