A class to represent a multi-channel texture using planar hmap::Array storage.
Definition texture.hpp:37
void rot270(Texture &texture)
Rotate the texture by 270 degrees counterclockwise.
Definition texture_transform.cpp:56
void flip_ud(Texture &texture)
Flip the texture vertically (up/down).
Definition texture_transform.cpp:25
void rot90(Texture &texture)
Rotate the texture by 90 degrees counterclockwise.
Definition texture_transform.cpp:35
void rot180(Texture &texture)
Rotate the texture by 180 degrees.
Definition texture_transform.cpp:46
void scale_uv(Texture &texture, glm::vec2 uv_scale)
Scale the texture in UV space with wrapping boundary.
Definition texture_transform.cpp:67
Texture transpose(const Texture &texture)
Return the transposed texture.
Definition texture_transform.cpp:77
void flip_lr(Texture &texture)
Flip the texture horizontally (left/right).
Definition texture_transform.cpp:15