lxgui
Public Types | Public Attributes | List of all members
lxgui::gui::color32 Struct Reference

Holds a single color (byte RGBA, 32 bits) More...

#include <gui_color.hpp>

Public Types

using chanel = unsigned char
 

Public Attributes

chanel r
 
chanel g
 
chanel b
 
chanel a
 

Detailed Description

Holds a single color (byte RGBA, 32 bits)

This has far less precision than color, but is the native data type of colors rendered on the screen, and it is commonly used for storage (texture files). Therefore, it should only be used when strictly necessary, and color should be preferred when color transformations or interpolations need to be computed.

Definition at line 75 of file gui_color.hpp.

Member Typedef Documentation

◆ chanel

using lxgui::gui::color32::chanel = unsigned char

Definition at line 76 of file gui_color.hpp.

Member Data Documentation

◆ a

chanel lxgui::gui::color32::a

Definition at line 78 of file gui_color.hpp.

◆ b

chanel lxgui::gui::color32::b

Definition at line 78 of file gui_color.hpp.

◆ g

chanel lxgui::gui::color32::g

Definition at line 78 of file gui_color.hpp.

◆ r

chanel lxgui::gui::color32::r

Definition at line 78 of file gui_color.hpp.


The documentation for this struct was generated from the following file: