Public Member Functions | Data Fields | Friends
AtRGB Struct Reference

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 AtRGBoperator= (const AtRGB &rhs)
 
AI_DEVICE constexpr AtRGB operator+ (const AtRGB &rgb) const
 
AI_DEVICE AtRGBoperator+= (const AtRGB &rgb)
 
AI_DEVICE constexpr AtRGB operator+ (float f) const
 
AI_DEVICE AtRGBoperator+= (float f)
 
AI_DEVICE constexpr AtRGB operator- (const AtRGB &rgb) const
 
AI_DEVICE AtRGBoperator-= (const AtRGB &rgb)
 
AI_DEVICE constexpr AtRGB operator- (float f) const
 
AI_DEVICE AtRGBoperator-= (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 AtRGBoperator= (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)
 

Detailed Description

RGB color.


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

© 2009-2018 Solid Angle SL · all rights reserved · www.solidangle.com