OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Colorf Struct Reference

#include <Colorf.h>

Public Member Functions

constexpr Colorf ()=default
 
template<class R , class G , class B , class A = float>
requires std::is_floating_point_v<R> && std::is_floating_point_v<G> && std::is_floating_point_v<B> && std::is_floating_point_v<A>
constexpr Colorf (R r, G g, B b, A a=1.0f)
 
constexpr Color toColor () const
 
HsvColorf toHsv () const
 

Public Attributes

float r = 0
 
float g = 0
 
float b = 0
 
float a = 0
 

Constructor & Destructor Documentation

◆ Colorf() [1/2]

constexpr Colorf::Colorf ( )
constexprdefault

◆ Colorf() [2/2]

template<class R , class G , class B , class A = float>
requires std::is_floating_point_v<R> && std::is_floating_point_v<G> && std::is_floating_point_v<B> && std::is_floating_point_v<A>
constexpr Colorf::Colorf ( r,
g,
b,
a = 1.0f 
)
inlineconstexpr

Member Function Documentation

◆ toColor()

constexpr Color Colorf::toColor ( ) const
inlineconstexpr

◆ toHsv()

HsvColorf Colorf::toHsv ( ) const
Original binary offset:
0x0048A7AA
Returns
This color, converted to HSV.

Member Data Documentation

◆ a

float Colorf::a = 0

◆ b

float Colorf::b = 0

◆ g

float Colorf::g = 0

◆ r

float Colorf::r = 0

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