Template Struct Color< uint8_t >
Defined in File color.h
Inheritance Relationships
Base Type
public gpa::api_types::detail::BasicColor< uint8_t >
(Template Struct BasicColor)
Struct Documentation
-
template<>
struct Color<uint8_t> : public gpa::api_types::detail::BasicColor<uint8_t> Graphics API agnostic representation of a four channel, 32 bit color with one uint8_t for each channel.
Public Functions
-
Color() = default
Constructs an instance of Color<uint8_t>
-
Color(Color<float> const &other)
Constructs an instance of Color<uint8_t>
- Parameters
other -- [in] The Color<float> to copy and convert to floating point
-
Color<uint8_t> &operator=(Color<float> const &other)
Constructs an instance of Color<uint8_t>
- Parameters
other -- [in] The Color<float> to copy and convert to floating point
- Returns
This Color<uint8_t> after copy and conversion
-
inline BasicColor(T const &_r = {}, T const &_g = {}, T const &_b = {}, T const &_a = {})
Constructs an instance of BasicColor<>
- Parameters
[in, optional -- = { }] r This BasicColor<>'s red channel value
[in, optional -- = { }] g This BasicColor<>'s green channel value
[in, optional -- = { }] b This BasicColor<>'s blue channel value
[in, optional -- = { }] a This BasicColor<>'s alpha channel value
-
BasicColor(BasicColor<T> const &other) = default
Constructs an instance of BasicColor<>
- Parameters
other -- [in] The BasicColor<> to copy from
- Returns
This BasicColor<> after being copied to
Public Static Attributes
-
Color() = default