RGB color. More...
#include <ai_color.h>
Public Member Functions | |
AI_DEVICE constexpr | AtRGB (float c) |
AI_DEVICE constexpr | AtRGB (float r, float g, float b) |
AI_DEVICE constexpr | AtRGB (const AtRGBA &rgba) |
AI_DEVICE const AtRGB & | operator= (const AtRGB &rhs) |
AI_DEVICE constexpr AtRGB | operator+ (const AtRGB &rgb) const |
AI_DEVICE AtRGB & | operator+= (const AtRGB &rgb) |
AI_DEVICE constexpr AtRGB | operator+ (float f) const |
AI_DEVICE AtRGB & | operator+= (float f) |
AI_DEVICE constexpr AtRGB | operator- (const AtRGB &rgb) const |
AI_DEVICE AtRGB & | operator-= (const AtRGB &rgb) |
AI_DEVICE constexpr AtRGB | operator- (float f) const |
AI_DEVICE AtRGB & | operator-= (float f) |
AI_DEVICE constexpr AtRGB | operator- () const |
AI_DEVICE constexpr AtRGB | operator* (const AtRGB &rgb) const |
AI_DEVICE AtRGB | operator*= (const AtRGB &rgb) |
AI_DEVICE constexpr AtRGB | operator* (float f) const |
AI_DEVICE AtRGB | operator*= (float f) |
AI_DEVICE constexpr AtRGB | operator/ (const AtRGB &rgb) const |
AI_DEVICE AtRGB | operator/= (const AtRGB &rgb) |
AI_DEVICE AtRGB | operator/ (float f) const |
AI_DEVICE AtRGB | operator/= (float f) |
AI_DEVICE constexpr bool | operator== (const AtRGB &rgb) const |
AI_DEVICE constexpr bool | operator!= (const AtRGB &rgb) const |
AI_DEVICE AtRGB & | 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 |
Friends | |
AI_DEVICE friend constexpr AtRGB | operator* (float f, const AtRGB &rgb) |
AI_DEVICE friend constexpr AtRGB | operator+ (float f, const AtRGB &rgb) |
AI_DEVICE friend constexpr AtRGB | operator- (float f, const AtRGB &rgb) |
RGB color.