High Dynamic Range bitmaps make use of this class to store color information using floating point values.
More...
#include <maxcolors.h>
|
float | r |
| Storage for the floating point color information.
|
|
float | g |
|
float | b |
|
float | a |
|
High Dynamic Range bitmaps make use of this class to store color information using floating point values.
- See also
- Class Bitmap, Class BitmapStorage, Class BitmapManager, Working with Bitmaps.
◆ BMM_Color_fl()
constexpr BMM_Color_fl |
( |
float |
vr = 0.0f , |
|
|
float |
vg = 0.0f , |
|
|
float |
vb = 0.0f , |
|
|
float |
va = 0.0f |
|
) |
| |
|
inlineconstexpr |
124 {
125 }
float r
Storage for the floating point color information.
Definition: maxcolors.h:128
float a
Definition: maxcolors.h:128
float b
Definition: maxcolors.h:128
float g
Definition: maxcolors.h:128
◆ operator float *()
◆ operator const float *()
operator const float * |
( |
| ) |
const |
|
inline |
◆ clipColor()
static uint16_t clipColor |
( |
float |
c | ) |
|
|
inlinestatic |
143 {
144 return c <= 0.0f ? 0 : c >= 1.0f ? 65535 : static_cast<uint16_t>(c * 65535.0);
145 }
Storage for the floating point color information.