summaryrefslogtreecommitdiffhomepage
path: root/src/quads.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quads.hpp')
-rw-r--r--src/quads.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quads.hpp b/src/quads.hpp
index 57492f35..1a788bd4 100644
--- a/src/quads.hpp
+++ b/src/quads.hpp
@@ -7,11 +7,12 @@ namespace floormat::Quads {
using quad = std::array<Vector3, 4>;
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);
-std::array<UnsignedShort, 6> quad_indexes(size_t N);
+indexes quad_indexes(size_t N);
texcoords texcoords_at(Vector2ui pos, Vector2ui size, Vector2ui image_size);
} // namespace floormat::Quads