|
| | Rgba8 (const Rgba8 &)=default |
| | Default copy constructor.
|
| | Rgba8 (Rgba8 &&)=default |
| | Default move constructor.
|
| Rgba8 & | operator= (Rgba8 &&)=default |
| | Default move assignment operator.
|
| Rgba8 & | operator= (const Rgba8 &)=default |
| | Default copy assignment operator.
|
| __hostdev__ | Rgba8 () |
| | Default ctor initializes all channels to zero.
|
| __hostdev__ | Rgba8 (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255u) |
| | integer r,g,b,a ctor where alpha channel defaults to opaque
|
| __hostdev__ | Rgba8 (uint8_t v) |
| | ctor where all channels are initialized to the same value
|
| __hostdev__ | Rgba8 (float r, float g, float b, float a=1.0f) |
| | floating-point r,g,b,a ctor where alpha channel defaults to opaque
|
| __hostdev__ | Rgba8 (const Vec3< float > &rgb) |
| | Vec3f r,g,b ctor (alpha channel it set to 1)
|
| __hostdev__ | Rgba8 (const Vec4< float > &rgba) |
| | Vec4f r,g,b,a ctor.
|
| __hostdev__ bool | operator< (const Rgba8 &rhs) const |
| __hostdev__ bool | operator== (const Rgba8 &rhs) const |
| __hostdev__ float | lengthSqr () const |
| __hostdev__ float | length () const |
| __hostdev__ float | asFloat (int n) const |
| | return n'th color channel as a float in the range 0 to 1
|
| __hostdev__ const uint8_t & | operator[] (int n) const |
| __hostdev__ uint8_t & | operator[] (int n) |
| __hostdev__ const uint32_t & | packed () const |
| __hostdev__ uint32_t & | packed () |
| __hostdev__ const uint8_t & | r () const |
| __hostdev__ const uint8_t & | g () const |
| __hostdev__ const uint8_t & | b () const |
| __hostdev__ const uint8_t & | a () const |
| __hostdev__ uint8_t & | r () |
| __hostdev__ uint8_t & | g () |
| __hostdev__ uint8_t & | b () |
| __hostdev__ uint8_t & | a () |
| __hostdev__ | operator Vec3< float > () const |
| __hostdev__ | operator Vec4< float > () const |
8-bit red, green, blue, alpha packed into 32 bit unsigned int