AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
ass::BackgroundCropping Struct Reference

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

Detailed Description

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>


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