diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-09 05:16:16 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-09 05:16:16 +0100 |
commit | 6dcc095ee5a7a26060e6650afa0a754f404584ea (patch) | |
tree | c90475e34b7646e4e16b79da0d5082330d5f8c8c | |
parent | 9041dfd60ae8a8056df1a5e7e85609a231406d3d (diff) |
w
-rw-r--r-- | src/quads.cpp | 22 | ||||
-rw-r--r-- | src/quads.hpp | 2 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/quads.cpp b/src/quads.cpp index 801c0448..d39ae9da 100644 --- a/src/quads.cpp +++ b/src/quads.cpp @@ -22,28 +22,6 @@ quad floor_quad(const Vector3 center, const Vector2 size) }}; } -quad wall_quad_W(const Vector3 center, const Vector3 size) -{ - float x = size.x()*.5f, y = size.y()*.5f, z = size.z(); - return {{ - {-x + center.x(), -y + center.y(), z + center.z() }, - {-x + center.x(), -y + center.y(), center.z() }, - {-x + center.x(), y + center.y(), z + center.z() }, - {-x + center.x(), y + center.y(), center.z() }, - }}; -} - -quad wall_quad_N(const Vector3 center, const Vector3 size) -{ - float x = size.x()*.5f, y = size.y()*.5f, z = size.z(); - return {{ - { x + center.x(), -y + center.y(), z + center.z() }, - { x + center.x(), -y + center.y(), center.z() }, - {-x + center.x(), -y + center.y(), z + center.z() }, - {-x + center.x(), -y + center.y(), center.z() }, - }}; -} - texcoords texcoords_at(Vector2ui pos_, Vector2ui size_, Vector2ui image_size_) { auto pos = Vector2(pos_), size = Vector2(size_), image_size = Vector2(image_size_); diff --git a/src/quads.hpp b/src/quads.hpp index 1a788bd4..a15ca972 100644 --- a/src/quads.hpp +++ b/src/quads.hpp @@ -10,8 +10,6 @@ using texcoords = std::array<Vector2, 4>; using indexes = std::array<UnsignedShort, 6>; quad floor_quad(Vector3 center, Vector2 size); -quad wall_quad_N(Vector3 center, Vector3 size); -quad wall_quad_W(Vector3 center, Vector3 size); indexes quad_indexes(size_t N); texcoords texcoords_at(Vector2ui pos, Vector2ui size, Vector2ui image_size); |