The part of an image to draw, in UV: 0,0 is its top-left corner and 1,1 its bottom-right.
More...
#include <gui_core/graphics/gui_image.h>
|
| static UVRect | FromPixels (IntRect pixels, uint2 imageSize) |
| | The part of an image imageSize pixels big covered by pixels, as for a cell of an atlas.
|
The part of an image to draw, in UV: 0,0 is its top-left corner and 1,1 its bottom-right.
The default is the whole image; a min past max flips it.
◆ FromPixels()
The part of an image imageSize pixels big covered by pixels, as for a cell of an atlas.
◆ operator==()
| bool tachyon::UVRect::operator== |
( |
const UVRect & | | ) |
const |
|
default |
◆ min
| float2 tachyon::UVRect::min { 0.0f, 0.0f } |
◆ max
| float2 tachyon::UVRect::max { 1.0f, 1.0f } |
The documentation for this struct was generated from the following file: