HighMap library (C++)
Loading...
Searching...
No Matches
texture_transform.cpp File Reference

Namespaces

namespace  hmap

Functions

void hmap::flip_lr (Texture &texture)
 Flip the texture horizontally (left/right).
void hmap::flip_ud (Texture &texture)
 Flip the texture vertically (up/down).
void hmap::rot90 (Texture &texture)
 Rotate the texture by 90 degrees counterclockwise.
void hmap::rot180 (Texture &texture)
 Rotate the texture by 180 degrees.
void hmap::rot270 (Texture &texture)
 Rotate the texture by 270 degrees counterclockwise.
void hmap::scale_uv (Texture &texture, glm::vec2 uv_scale)
 Scale the texture in UV space with wrapping boundary.
Texture hmap::transpose (const Texture &texture)
 Return the transposed texture.