AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Controls background texture cropping by exact UV coordinates. Useful for texture atlases. More...
Controls background texture cropping by exact UV coordinates. Useful for texture atlases.
Public Member Functions | |
BackgroundCropping (const BackgroundCropping &) noexcept=default | |
BackgroundCropping (const glm::vec2 &offset, const unset_wrap< glm::vec2 > &size) noexcept | |
Signals and public fields | |
unset_wrap< glm::vec2 > | offset |
unset_wrap< glm::vec2 > | size |
Static Public Attributes | |
static const BackgroundCropping | H4_1 = { glm::vec2{0.f / 4.f, 0.f}, glm::vec2{1.f / 4.f, 1.f} } |
static const BackgroundCropping | H4_2 = { glm::vec2{1.f / 4.f, 0.f}, glm::vec2{1.f / 4.f, 1.f} } |
static const BackgroundCropping | H4_3 = { glm::vec2{2.f / 4.f, 0.f}, glm::vec2{1.f / 4.f, 1.f} } |
static const BackgroundCropping | H4_4 = { glm::vec2{3.f / 4.f, 0.f}, glm::vec2{1.f / 4.f, 1.f} } |
#include <AUI/ASS/Property/BackgroundCropping.h>