1#ifndef GENERATOR_UVFLIPMESH_HPP
2#define GENERATOR_UVFLIPMESH_HPP
10template<
typename mesh_t>
22 : transform_mesh_{
std::move(mesh),
26 vertex.tex_coord[0] = 1.0 - vertex.tex_coord[0];
28 vertex.tex_coord[1] = 1.0 - vertex.tex_coord[1];
37 return transform_mesh_.triangles();
44 return transform_mesh_.vertices();
48template<
typename mesh_t>
Flips texture coordinate axis directions.
typename impl_t::vertices_t vertices_t
triangles_t triangles() const noexcept
vertices_t vertices() const noexcept
typename impl_t::triangles_t triangles_t
uv_flip_mesh_t(mesh_t mesh, bool u, bool v)
uv_flip_mesh_t< mesh_t > uv_flip_mesh(mesh_t mesh)