AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ass::BackgroundCropping Struct Reference

Controls background texture cropping by exact UV coordinates. Useful for texture atlases. More...

#include <AUI/ASS/Property/BackgroundCropping.h>

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} }
 

Detailed Description

Controls background texture cropping by exact UV coordinates. Useful for texture atlases.


The documentation for this struct was generated from the following file:
Collaboration diagram for ass::BackgroundCropping: