Template Struct Color< float >
Defined in File color.h
Inheritance Relationships
Base Type
public gpa::api_types::detail::BasicColor< float >
(Template Struct BasicColor)
Struct Documentation
-
template<>
struct Color<float> : public gpa::api_types::detail::BasicColor<float> Graphics API agnostic representation of a four channel color with one float for each channel.
Public Functions
-
Color() = default
Constructs an instance of Color<float>
-
Color(Color<uint8_t> const &other)
Constructs an instance of Color<float>
- Parameters
other -- [in] The Color<uint8_t> to copy and convert to floating point
-
Color<float> &operator=(Color<uint8_t> const &other)
Constructs an instance of Color<float>
- Parameters
other -- [in] The Color<uint8_t> to copy and convert from
- Returns
This Color<float> 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