Commit Graph

321 Commits

Author SHA1 Message Date
Jérôme Leclercq 1114bb0fdd Fix some other oopsies 2018-09-05 16:24:10 +02:00
Jérôme Leclercq 500ad417a7 Math/Angle: Fix compilation under Linux 2018-09-05 15:59:00 +02:00
Jérôme Leclercq 4c8e40bb6c Math/Angle: Rename parameters to prevent name clash 2018-09-05 15:18:35 +02:00
Jérôme Leclercq f0e215f8f5 Math/Angle: Optimize SinCos on Linux 2018-09-05 15:15:02 +02:00
Jérôme Leclercq 9e0b61f30d Math/Angle: Add sine, cosine, tangent methods 2018-09-05 15:14:31 +02:00
Jérôme Leclercq 3cc70daf3e Fix missing file 2018-09-05 15:13:39 +02:00
Lynix f59810b68e Math: Add Angle class 2018-09-02 22:06:03 +02:00
Jérôme Leclercq e4b67019cb Math/Vector[2|3]: Removed Distancef and made Distance templated 2018-07-02 18:13:14 +02:00
Jérôme Leclercq 2f2b1f101b Core/Quaternion: Fix Inverse method 2018-04-12 12:45:19 +02:00
Lynix 271565d1b9 And fix compilation again 2018-03-20 22:11:42 +01:00
Lynix bca94e0955 Fix compilation 2018-03-20 21:59:27 +01:00
Lynix 8926f09511 Revert "Try to fix compilation"
This reverts commit a32408a4d7.
2018-03-20 21:57:28 +01:00
Lynix a32408a4d7 Try to fix compilation 2018-03-20 21:50:16 +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 0063ca9950 Math/VectorI: Remove array constructor 2018-02-18 18:57:30 +01:00
germinolegrand 1e55c4d9e9 Prerequisites instead of Prerequesites (typo) #152 (#153) 2018-01-16 12:23:01 +01:00
Jérôme Leclercq 4b6d7d2e47 Math/Algorithm: Fix typo 2018-01-05 15:39:56 +01:00
Lynix 99c974c141 Fix compilation 2017-12-15 00:19:45 +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 0a5cbe656f Math/VectorI: Make array/pointer constructor explicit 2017-11-23 13:21:51 +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
Gawaboumga 41a1b5d493 Physics2D tests (#129)
* Quaternion: Fix singularity on Z axis when converting to euler angles

* CollisionComponent2D: Add method to retrieve AABB

* Collider2D: Fix constructor for Box with Vector2

* Physics2D: Fix rotation (Chipmunk works with radian and Nazara degrees) and copy constructor of RigidBody2D

* Colider2D: Add New for convex and tests for the new classes
2017-08-20 21:47:23 +02:00
Jérôme Leclercq 4f1d52b395 Fix [Box|Rect]::Contains including outer border points 2017-06-01 17:24:28 +02:00
Lynix 883d7b02a7 Math/Algorithm: Optimize NumberEquals unsigned and float cases 2017-04-22 15:08:43 +02:00
Lynix 06038a4d81 Cleanup pass 2017-04-22 15:08:05 +02:00
Jérôme Leclercq 7b4f438065 Math/Algorithm: Fix NumberEquals for signed integers 2017-04-14 16:53:03 +02:00
DrLynix f383eca19a Update copyright year 2017-01-20 12:58:35 +01:00
Lynix 937fdef953 Math/Sphere: Fix ExtendTo method 2016-12-15 19:27:05 +01:00
Lynix d015d6e85e Math/Sphere: Fix compilation 2016-12-15 19:10:44 +01:00
Lynix f5f6c859d7 Math/Sphere: Remove SquaredDistance method 2016-12-15 18:32:58 +01:00
Lynix 165b73acb3 Math/Sphere: Fix SquaredDistance weirdness..
Fixes light selection
2016-12-15 14:37:58 +01:00
Lynix 7c5bf0f83e Math/Quaternion: Fix compilation of static method Lerp 2016-11-18 21:25:02 +01:00
Lynix 964d16f907 Math/Algorithm: CountBits now returns a std::size_t instead of a T 2016-11-18 01:14:33 +01:00
Lynix 43f93141ac Utility/Algorithm: Fix GenerateBox plane rotation (Fix #114) 2016-11-14 00:02:01 +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 9328a8124d Math/Quaternion: Fix compilation of operator* with double instance 2016-10-27 10:47:36 +02:00
Lynix e59bd4ba35 Matrix4: Fix GetColumn and GetRow code 2016-10-27 10:47:17 +02:00
Lynix 5d5c7b4284 PR-82: Fix indent 2016-10-13 04:48:19 +02:00
S6066 5ea3eab8fc Oops, added an indent 2016-10-12 18:24:51 +02:00
S6066 e5300da933 Same 2016-10-12 18:23:28 +02:00
S6066 c5c4ef2c09 Fix + indent, again 2016-10-12 18:22:57 +02:00
S6066 255b1cce07 Fix + indent 2016-10-12 18:22:53 +02:00
S6066 e1d948c348 Fixing an oopsie (2) 2016-10-12 18:11:56 +02:00
S6066 d69166991a Fixing an oopsie (1) 2016-10-12 18:11:51 +02:00
S6066 59b2e55ed5 Added hash for Vectors 2016-10-12 17:56:46 +02:00
Gawaboumga 24d7861380 Fix documentation
Former-commit-id: bdaff1e4efaaad685df60baa0d11af3e7951dc4d [formerly 409b51215b894006fbcae285c8dfd67c97c9ae11] [formerly 58a176f2944bc3d347ccba58360cbdee3bb1b8d3 [formerly e6bd6b34212946c04eeec6896954c3969d1baf5f]]
Former-commit-id: 944b2ddd24acdcb0b6a5db07cfc75c13f407737a [formerly 7ed2f044fe8e50bf99a1c432e6079f7a445af573]
Former-commit-id: a1bfe55ac944ea530578a0cc813dd253cc708b69
2016-08-21 13:49:24 +02:00
Gawaboumga 96dc8c001e Various fixes
Former-commit-id: 26dfbdb3388c845a6e3039f816f19ffbb462d7b8 [formerly a6437e0b6e48dbd630440f8d2629b32e4756b48e]
Former-commit-id: 8a1855fc1d4d7c343b7e1fdcd3c6a31f3134a59a
2016-07-28 19:22:41 +02:00
Lynix 9a6de9f7ac Math/Vector4: Fix w value when converting from Vector3
Former-commit-id: 0ad39219de839bb1de859baac059441e36c04444 [formerly d2516303dd597418bd2939f737617f0fad1f0da4]
Former-commit-id: 7d5223e4e34b50dbb4ec9e0d22c7801470099d2a
2016-07-07 09:01:08 +02:00
Jérôme Leclercq 5970682035 Noise: First pass of refactoring
Former-commit-id: 77de49ee01fea466cb97b22771e4c625389fd95c [formerly edce9427bc009c8ea6a6df35d9ce134a83ab985c]
Former-commit-id: 76227519c8be75a45f6f65250a0870c2eb866953
2016-06-18 12:36:20 +02:00
Lynix 116699a313 Math/Algorithm: Fix IntegralLog2Pot case with sizeof(T) > 4 and %32 bits
Former-commit-id: c354e6edf2bd2c69926ff7c2503ec65862eb70ca [formerly 0363386806402faccdfe600341d5d9de5afc26f3]
Former-commit-id: 294c14ea78a84558ecbbeeb3276117a411b3d9e5
2016-06-11 13:13:53 +02:00
Gawaboumga 96b958d655 Documentation for module: Graphics
Former-commit-id: 5e3ee3c61779fbdd1a083117f537a45e1bad820b
2016-05-30 14:21:36 +02:00
Lynix 43c1243b75 Fix merge problems
Former-commit-id: 899b541adea1719f558c52abfab51458249b6aaf
2016-04-17 20:22:29 +02:00
Lynix 37aa00b2e7 Merge branch 'master' into NDK-ShadowMapping
Former-commit-id: e2be28b65207dfbb81efe58f31ca31548afecee7
2016-04-17 19:57:15 +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
Gawaboumga 265e1c0fbd Fix compilation for gcc/clang + tests for serialization
Former-commit-id: db9c93a1db3c57f268fc17e411402e071fc8675a
2016-04-04 10:17:05 +02:00
Lynix 2b9dcb47c0 Math/BoundingVolume: Fix compilation
Former-commit-id: 6717a9d8d92f05ba3e4ae3b088aef79f0a637736
2016-03-26 01:38:03 +01:00
Lynix b28ab414c9 Math/BoundingVolume: Add ExtendTo method
Former-commit-id: 5cfd681d5cd7adcc2bcf16184a2da821bf4eb477
2016-03-25 23:07:59 +01:00
Lynix 300dc82806 Math: Fix missing includes
Former-commit-id: 21ff7a6db4beb9fc7968e9bf1ba7478ca2f55e21
2016-03-06 14:54:56 +01:00
Lynix e9d126b3a4 Math: Add serialization specialization for all types
Former-commit-id: 7e45c50d3b4eabfc581736f290fc208592d3d46c
2016-03-06 01:54:13 +01:00
Lynix 192fccc634 Fix compilation
Former-commit-id: d5ac6bb73615f7c9b068c1de2037dfeddc5c1b45
2016-03-02 16:53:20 +01:00
Lynix 1c4135fc09 Improve documentation
Former-commit-id: 08d70f6a53a7f12d2748d145d1fe139595a1b39e
2016-03-01 15:37:05 +01:00
Lynix 2cace84c90 Math/Matrix4: Fix computations.
Sometimes some values can be really small (and very close to zero) without being null.


Former-commit-id: 932160043e4eb4094c7234f8cf4eb7c212966678
2016-01-15 01:04:29 +01:00
Lynix 856df11d5c Math/Algorithm: Fix compilation (C++14 constexpr is not supported by all major compilers)
Former-commit-id: 83c2d98885763160cedcf03cfb08aa44571703f4
2016-01-01 16:34:49 +01:00
Gawaboumga 139c495966 Documentation for Vector4 + static DotProduct & Normalize
Former-commit-id: 4a190589292f299d266e20f7b9723594f2c32468
2015-12-30 15:36:38 +01:00
Gawaboumga 95400fdfab Documentation for Vector3
Former-commit-id: 15f770065aa66e03928d7086403c697be334cb3a
2015-12-30 15:36:12 +01:00
Gawaboumga 844e31fb38 Documentation for Vector2 + static DotProduct & Normalize
Former-commit-id: 6f0aa15cd725f9dfaa7f6f99b10c6d2dde4e94a1
2015-12-30 15:35:37 +01:00
Gawaboumga cec0567fdd Documentation for Sphere + new Unit sphere
Former-commit-id: 8f7dd89c3669f0a791b76ef7cb89d998ce6b336a
2015-12-30 15:34:59 +01:00
Gawaboumga d733a9c5d1 Documentation for Rect
Former-commit-id: 4cb6ff983f7f01611847d29699dab5ca06e17d4a
2015-12-30 15:34:36 +01:00
Gawaboumga 137bc33770 Documentation for Ray + New method intersection Ray-Triangle
Former-commit-id: 29989ec859e609582fdb60a67a7fb353a03091a0
2015-12-30 15:33:55 +01:00
Gawaboumga 9efce81eac Documentation for Quaternion
Former-commit-id: b19bd792823e1f49ff088fc95be26f0db185a8a6
2015-12-30 15:33:26 +01:00
Gawaboumga 40d3d6b235 Documentation for OrientedBox
Former-commit-id: 77f7c82d7ca16348774ccdf1d4e98432710a585a
2015-12-30 15:32:59 +01:00
Gawaboumga 53f4bacab6 Documentation for Plane + add MakeXY methods
Former-commit-id: 688a65089e6e332e3a2ffbed7966e4f9185b79cc
2015-12-30 15:32:41 +01:00
Gawaboumga f131fd2121 Documentation for Matrix4 + Check for affine
Former-commit-id: 9ddb4e85f860b12d06afaa2d32139bea4053eb66
2015-12-30 15:32:09 +01:00
Gawaboumga fa48b750ae Documentation for Frustum
Former-commit-id: 38c09bfa36e663a77ebeb19f5b2c16f60f99ea14
2015-12-30 15:31:27 +01:00
Gawaboumga 5d0624f03f Documentation for EulerAngles + change Return of Set
Former-commit-id: 7e269b89e880156d66d92cff202095c4e30f344d
2015-12-30 15:30:13 +01:00
Gawaboumga e2213cac61 Documentation for BoundingVolume & Box
Former-commit-id: 0fc14422dc32677f329f95dc7a554127f1b8ba0a
2015-12-30 15:29:07 +01:00
Gawaboumga 007b40b1b3 Documentation for Algorithm + constexpr
Former-commit-id: d77905d0ee9a2dde655f548bd175042aa3f5d22d
2015-12-30 15:28:13 +01:00
Lynix 9cf5e4b68c Merge branch 'master' into NDK-ShadowMapping
Former-commit-id: 83435ab51753299b30a102871fbcd5558d2ac4f1
2015-12-09 00:59:07 +01:00
Lynix 6bc285cb00 Fix compilation for GCC
Former-commit-id: 7c51c59904fa86f952b704d175b09b32640d9395
2015-11-28 02:07:56 +01:00
Lynix bbe8a776e8 Fix a shitloads of warnings on VS
Former-commit-id: fca61118f4e0530ed2eaaf9ff96de29806aa5aa8
2015-11-25 18:19:26 +01:00
Lynix eaf1bb3601 Merge branch 'NDK-Refactor' into NDK
Conflicts:
	examples/HardwareInfo/main.cpp
	include/Nazara/Renderer/Enums.hpp
	include/Nazara/Renderer/GpuQuery.hpp
	include/Nazara/Renderer/OpenGL.hpp
	include/Nazara/Renderer/RenderBuffer.hpp
	include/Nazara/Renderer/RenderTexture.hpp
	include/Nazara/Renderer/Texture.hpp
	src/Nazara/Graphics/AbstractRenderTechnique.cpp
	src/Nazara/Graphics/DeferredRenderTechnique.cpp
	src/Nazara/Graphics/Material.cpp
	src/Nazara/Graphics/SkyboxBackground.cpp
	src/Nazara/Renderer/GpuQuery.cpp
	src/Nazara/Renderer/OpenGL.cpp
	src/Nazara/Renderer/RenderBuffer.cpp
	src/Nazara/Renderer/RenderTexture.cpp
	src/Nazara/Renderer/Renderer.cpp
	src/Nazara/Renderer/Shader.cpp
	src/Nazara/Renderer/ShaderStage.cpp
	src/Nazara/Renderer/Texture.cpp

Former-commit-id: 2f1c7e9f9766f59ab83d9405856a1898ac4ab48f
2015-09-25 23:16:58 +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 aa303f9028 Merge branch 'NDK' into NDK-ShadowMapping
Conflicts:
	include/Nazara/Math/Matrix4.inl

Former-commit-id: e4b7d178a7acba17c03de2b585af86324b8d75a6
2015-09-13 12:10:30 +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 89e0f631d6 No problems
No problems found in Rect, Sphere, Vector2, Vector3 and Vector4


Former-commit-id: 6688608a2beaa9cf5328daf7e5108b6cfebd843d
2015-08-21 12:05:46 +02:00
Gawaboumga cb8ab90300 Quaternion bug fix: missing 'x'
And indentation


Former-commit-id: 87e7cc0f69604f3c4593395b15068b9ded59ba1a
2015-08-21 12:04:46 +02:00
Gawaboumga 19e1cb05bb OrientedBox no problem
Former-commit-id: ad1256baf4bf6d832cb376fe62b1b52f25479e67
2015-08-21 12:03:37 +02:00
Gawaboumga 9d7dc63574 Wrong place
Former-commit-id: 909750e9bca284c2a0096a51c782c1083b258cef
2015-08-21 12:02:55 +02:00
Gawaboumga 282bdf9864 Consequences of the plane change + change perspective
The perspective matrix now as in glm (because the near frustum plane was
wrong). So there is a factor "2" on the component w and the skybox must
be changed in consequence.


Former-commit-id: 09dd049c177532b9ace34a5a60b1b96014652297
2015-08-21 12:01:52 +02:00
Gawaboumga 077584ec49 EulerAngles simplification
Former-commit-id: 775b07a51077e6f17b9fe05773dc5c277c49919d
2015-08-21 11:53:16 +02:00
Gawaboumga b4f926d3ca Test box
No problem except indentation


Former-commit-id: 58d711b48164363fd672c51c005e16eb5ce55e9e
2015-08-21 11:52:44 +02:00
Gawaboumga f0660d5da8 Fix operator== with infinite BoundingVolume
Former-commit-id: 47cee9fb8d8d2b8188d3918527aeebab56b03992
2015-08-21 11:52:05 +02:00
Gawaboumga c2161f2a8b Fix NumberEquals with unsigned
Former-commit-id: 30b573278e84991a9d76604a359bd3110f13d87c
2015-08-21 11:49:37 +02:00
Gawaboumga 2d07922478 Add Unit for vector2
Former-commit-id: 4a143363f24e08d0be12a5ef6bfb46c71b11be4a
2015-08-21 11:34:08 +02:00
Gawaboumga 376df6a3b7 Indentations
Former-commit-id: 0d82a4464cb9369bc4ca5cf2d7780c921eff953d
2015-08-21 11:32:29 +02:00
Lynix 34e8271d24 Fix warnings
Former-commit-id: 42f2d38f7bf5143d91da6a0fa7dc7d3b88ce56ea
2015-06-30 20:44:37 +02:00
Lynix 7dd4965f9a Math/Matrix4: Fix cotangent in projection matrix
Former-commit-id: 57ccfc4fd2a1a8245272328204afa6590a5cb3fb
2015-06-26 14:05:50 +02:00
Lynix 35066a3451 Math/Sphere: Fix (Squared)Distance
Former-commit-id: d91c0d6e8a193e47c3ed45babaf3b83bf1cbe7ee
2015-06-17 23:35:06 +02:00