|
TachyonUI 1.1.0
High-performance UI for building tools.
|
How an image is shown, in this order: More...
#include <gui_core/graphics/gui_image.h>
Public Member Functions | |
| uint32_t | PackedFlags () const |
| The channels and the sRGB flag as the shader reads them: 3 bits a channel (red first), bit 12 sRGB-encode, bit 31 set when any of it differs from the default. | |
| bool | operator== (const ImageDisplay &) const =default |
Static Public Member Functions | |
| static ImageDisplay | Channel (ImageChannel channel) |
| One channel shown as grey, opaque: a mask, a roughness map, an image's alpha. | |
Public Attributes | |
| color4f | tint { 1.0f, 1.0f, 1.0f, 1.0f } |
| ImageChannel | red = ImageChannel::Red |
| ImageChannel | green = ImageChannel::Green |
| ImageChannel | blue = ImageChannel::Blue |
| ImageChannel | alpha = ImageChannel::Alpha |
| bool | srgbEncode = false |
How an image is shown, in this order:
The default shows the image as it is.
|
inlinestatic |
One channel shown as grey, opaque: a mask, a roughness map, an image's alpha.
|
inline |
The channels and the sRGB flag as the shader reads them: 3 bits a channel (red first), bit 12 sRGB-encode, bit 31 set when any of it differs from the default.
|
default |
| color4f tachyon::ImageDisplay::tint { 1.0f, 1.0f, 1.0f, 1.0f } |
| ImageChannel tachyon::ImageDisplay::red = ImageChannel::Red |
| ImageChannel tachyon::ImageDisplay::green = ImageChannel::Green |
| ImageChannel tachyon::ImageDisplay::blue = ImageChannel::Blue |
| ImageChannel tachyon::ImageDisplay::alpha = ImageChannel::Alpha |
| bool tachyon::ImageDisplay::srgbEncode = false |