RGB color + alpha. More...
#include <ai_color.h>
Public Member Functions | |
| AI_DEVICE constexpr | AtRGBA (float r, float g, float b, float a) |
| AI_DEVICE constexpr | AtRGBA (const AtRGB &rgb, float a=1) |
| AI_DEVICE AtRGB & | rgb () |
| AI_DEVICE const AtRGB & | rgb () const |
| AI_DEVICE constexpr AtRGBA | operator+ (const AtRGBA &rgba) const |
| AI_DEVICE AtRGBA & | operator+= (const AtRGBA &rgba) |
| AI_DEVICE constexpr AtRGBA | operator+ (float f) const |
| AI_DEVICE AtRGBA & | operator+= (float f) |
| AI_DEVICE constexpr AtRGBA | operator- (const AtRGBA &rgba) const |
| AI_DEVICE AtRGBA & | operator-= (const AtRGBA &rgba) |
| AI_DEVICE constexpr AtRGBA | operator- (float f) const |
| AI_DEVICE AtRGBA & | operator-= (float f) |
| AI_DEVICE constexpr AtRGBA | operator- () const |
| AI_DEVICE constexpr AtRGBA | operator* (const AtRGBA &rgba) const |
| AI_DEVICE AtRGBA | operator*= (const AtRGBA &rgba) |
| AI_DEVICE constexpr AtRGBA | operator* (float f) const |
| AI_DEVICE AtRGBA | operator*= (float f) |
| AI_DEVICE constexpr AtRGBA | operator/ (const AtRGBA &rgba) const |
| AI_DEVICE AtRGBA | operator/= (const AtRGBA &rgba) |
| AI_DEVICE AtRGBA | operator/ (float f) const |
| AI_DEVICE AtRGBA | operator/= (float f) |
| AI_DEVICE constexpr bool | operator== (const AtRGBA &rgba) const |
| AI_DEVICE constexpr bool | operator!= (const AtRGBA &rgba) const |
| AI_DEVICE AtRGBA & | operator= (float f) |
| AI_DEVICE float & | operator[] (unsigned int i) |
| AI_DEVICE constexpr const float & | operator[] (unsigned int i) const |
Data Fields | |
| float | r |
| float | g |
| float | b |
| float | a |
Friends | |
| AI_DEVICE friend constexpr AtRGBA | operator* (float f, const AtRGBA &rgba) |
| AI_DEVICE friend constexpr AtRGBA | operator+ (float f, const AtRGBA &rgba) |
| AI_DEVICE friend constexpr AtRGBA | operator- (float f, const AtRGBA &rgba) |
RGB color + alpha.