diff options
author | Marc <marc.gilleron@gmail.com> | 2021-01-31 20:06:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 20:06:56 +0000 |
commit | b400dba87534640eeddbcdb6b319335a6a7639d8 (patch) | |
tree | 286a8e2e25c18fe11f346835b3021afae2e9b77f /include/core/Transform2D.hpp | |
parent | fb71edd45b2473bf0ac502c777a1850fb564087e (diff) | |
parent | 05ba977cc60653952b73dc03498ebc7a93cef120 (diff) | |
download | redot-cpp-b400dba87534640eeddbcdb6b319335a6a7639d8.tar.gz |
Merge branch 'master' into container_leaks
Diffstat (limited to 'include/core/Transform2D.hpp')
-rw-r--r-- | include/core/Transform2D.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/Transform2D.hpp b/include/core/Transform2D.hpp index ae01b7f..6a5010f 100644 --- a/include/core/Transform2D.hpp +++ b/include/core/Transform2D.hpp @@ -10,6 +10,10 @@ typedef Vector2 Size2; struct Rect2; struct Transform2D { + static const Transform2D IDENTITY; + static const Transform2D FLIP_X; + static const Transform2D FLIP_Y; + // Warning #1: basis of Transform2D is stored differently from Basis. In terms of elements array, the basis matrix looks like "on paper": // M = (elements[0][0] elements[1][0]) // (elements[0][1] elements[1][1]) |