summaryrefslogtreecommitdiffhomepage
path: root/atlas.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-02-23 13:25:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-02-23 13:25:39 +0100
commiteeedd2061bee36f49ea20e898e8edf3676bd15b5 (patch)
tree4e22a3d50d6f97992aa3b46d00b276ddac928e6a /atlas.hpp
parent920aa82a3a05402cc0489a8d9e0b9b2f4a4e3117 (diff)
flush
Diffstat (limited to 'atlas.hpp')
-rw-r--r--atlas.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/atlas.hpp b/atlas.hpp
index ee94d5d0..43c858de 100644
--- a/atlas.hpp
+++ b/atlas.hpp
@@ -12,6 +12,7 @@ struct atlas_texture final
atlas_texture(const Trade::ImageData2D& img, Vector2i dims);
std::array<Vector2, 4> texcoords_for_id(int id) const;
static std::array<Vector3, 4> floor_quad(Vector3 center, Vector2 size);
+ static std::array<Vector3, 4> wall_quad(Vector3 center, Vector3 size);
static std::array<UnsignedShort, 6> indices(int N);
GL::Texture2D& texture() { return tex_; }
constexpr int size() const { return dims_.product(); }