diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-04 17:57:48 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-04 17:57:48 +0200 |
commit | b4b810450d14fbe718bc55fe005e76d886a419bf (patch) | |
tree | d7e1513d937c87dcc0088a275feb4056a0c7e739 | |
parent | b0bf26a6ff0071a4edb43c3bfb331110d025aae4 (diff) |
a
-rw-r--r-- | tile-atlas.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tile-atlas.cpp b/tile-atlas.cpp index eb550e34..9d2f8070 100644 --- a/tile-atlas.cpp +++ b/tile-atlas.cpp @@ -39,7 +39,7 @@ std::array<Vector2, 4> tile_atlas::texcoords_for_id(std::size_t id2) const using vertex_array_type = tile_atlas::vertex_array_type; -vertex_array_type tile_atlas::floor_quad(Vector3 center, Vector2 size) +vertex_array_type tile_atlas::floor_quad(const Vector3 center, const Vector2 size) { float x = size[0]*.5f, y = size[1]*.5f; return {{ @@ -50,7 +50,7 @@ vertex_array_type tile_atlas::floor_quad(Vector3 center, Vector2 size) }}; } -vertex_array_type tile_atlas::wall_quad_N(Vector3 center, Vector3 size) +vertex_array_type tile_atlas::wall_quad_N(const Vector3 center, const Vector3 size) { float x = size[0]*.5f, y = size[1]*.5f, z = size[2]; return {{ @@ -61,7 +61,7 @@ vertex_array_type tile_atlas::wall_quad_N(Vector3 center, Vector3 size) }}; } -vertex_array_type tile_atlas::wall_quad_S(Vector3 center, Vector3 size) +vertex_array_type tile_atlas::wall_quad_E(const Vector3 center, const Vector3 size) { float x = size[0]*.5f, y = size[1]*.5f, z = size[2]; return {{ @@ -72,7 +72,7 @@ vertex_array_type tile_atlas::wall_quad_S(Vector3 center, Vector3 size) }}; } -vertex_array_type tile_atlas::wall_quad_E(Vector3 center, Vector3 size) +vertex_array_type tile_atlas::wall_quad_S(const Vector3 center, const Vector3 size) { float x = size[0]*.5f, y = size[1]*.5f, z = size[2]; return {{ @@ -83,7 +83,7 @@ vertex_array_type tile_atlas::wall_quad_E(Vector3 center, Vector3 size) }}; } -vertex_array_type tile_atlas::wall_quad_W(Vector3 center, Vector3 size) +vertex_array_type tile_atlas::wall_quad_W(const Vector3 center, const Vector3 size) { float x = size[0]*.5f, y = size[1]*.5f, z = size[2]; return {{ |