summaryrefslogtreecommitdiffhomepage
path: root/atlas.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-06-11 23:21:04 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-06-11 23:21:04 +0200
commitda042f527536ba2ba82e5aa823e4fd132afebe1e (patch)
tree8ee1a9ecbc915b2b6a29882ca32272c91ee91190 /atlas.hpp
parent565570f905be11faa17c1c95c7ac207c641c395d (diff)
a
Diffstat (limited to 'atlas.hpp')
-rw-r--r--atlas.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/atlas.hpp b/atlas.hpp
index 671679bb..e54a5efd 100644
--- a/atlas.hpp
+++ b/atlas.hpp
@@ -12,10 +12,10 @@ struct atlas_texture final
atlas_texture(const ImageView2D& img, Vector2i dims);
std::array<Vector2, 4> texcoords_for_id(int id) const;
static vertex_array_type floor_quad(Vector3 center, Vector2 size);
- static vertex_array_type wall_quad_W(Vector3 center, Vector3 size);
static vertex_array_type wall_quad_S(Vector3 center, Vector3 size);
static vertex_array_type wall_quad_E(Vector3 center, Vector3 size);
static vertex_array_type wall_quad_N(Vector3 center, Vector3 size);
+ static vertex_array_type wall_quad_W(Vector3 center, Vector3 size);
static std::array<UnsignedShort, 6> indices(int N);
GL::Texture2D& texture() { return tex_; }
constexpr int size() const { return dims_.product(); }