Public Member Functions | Data Fields | Friends
AtRGBA Struct Reference

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 const AtRGBrgb () const
AI_DEVICE constexpr AtRGBA operator+ (const AtRGBA &rgba) const
AI_DEVICE AtRGBAoperator+= (const AtRGBA &rgba)
AI_DEVICE constexpr AtRGBA operator+ (float f) const
AI_DEVICE AtRGBAoperator+= (float f)
AI_DEVICE constexpr AtRGBA operator- (const AtRGBA &rgba) const
AI_DEVICE AtRGBAoperator-= (const AtRGBA &rgba)
AI_DEVICE constexpr AtRGBA operator- (float f) const
AI_DEVICE AtRGBAoperator-= (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 AtRGBAoperator= (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


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)

Detailed Description

RGB color + alpha.

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

© 2020 Autodesk, Inc. · All rights reserved ·