Nebula
Loading...
Searching...
No Matches
Im3d::Color Struct Reference

#include <im3d.h>

Public Member Functions

constexpr Color ()
 
constexpr Color (U32 _rgba)
 
 Color (const Vec4 &_rgba)
 
 Color (const Vec3 &_rgb, float _alpha)
 
 Color (float _r, float _g, float _b, float _a=1.0f)
 
 operator U32 () const
 
void set (int _i, float _val)
 
void setR (float _val)
 
void setG (float _val)
 
void setB (float _val)
 
void setA (float _val)
 
float get (int _i) const
 
float getR () const
 
float getG () const
 
float getB () const
 
float getA () const
 
U32 getABGR () const
 

Public Attributes

U32 v
 

Constructor & Destructor Documentation

◆ Color() [1/5]

Im3d::Color::Color ( )
inlineconstexpr

◆ Color() [2/5]

Im3d::Color::Color ( U32 _rgba)
inlineconstexpr

◆ Color() [3/5]

Color::Color ( const Vec4 & _rgba)

◆ Color() [4/5]

Color::Color ( const Vec3 & _rgb,
float _alpha )

◆ Color() [5/5]

Color::Color ( float _r,
float _g,
float _b,
float _a = 1.0f )

Member Function Documentation

◆ get()

float Im3d::Color::get ( int _i) const
inline

◆ getA()

float Im3d::Color::getA ( ) const
inline

◆ getABGR()

U32 Im3d::Color::getABGR ( ) const
inline

◆ getB()

float Im3d::Color::getB ( ) const
inline

◆ getG()

float Im3d::Color::getG ( ) const
inline

◆ getR()

float Im3d::Color::getR ( ) const
inline

◆ operator U32()

Im3d::Color::operator U32 ( ) const
inline

◆ set()

void Im3d::Color::set ( int _i,
float _val )
inline

◆ setA()

void Im3d::Color::setA ( float _val)
inline

◆ setB()

void Im3d::Color::setB ( float _val)
inline

◆ setG()

void Im3d::Color::setG ( float _val)
inline

◆ setR()

void Im3d::Color::setR ( float _val)
inline

Member Data Documentation

◆ v

U32 Im3d::Color::v

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