Blender  V2.93
Public Member Functions | Public Attributes | Friends | List of all members
blender::Color4f Struct Reference

#include <BLI_color.hh>

Public Member Functions

 Color4f ()=default
 
 Color4f (const float *rgba)
 
 Color4f (float r, float g, float b, float a)
 
 operator float * ()
 
 operator const float * () const
 
uint64_t hash () const
 

Public Attributes

float r
 
float g
 
float b
 
float a
 

Friends

std::ostream & operator<< (std::ostream &stream, Color4f c)
 
bool operator== (const Color4f &a, const Color4f &b)
 
bool operator!= (const Color4f &a, const Color4f &b)
 

Detailed Description

Definition at line 25 of file BLI_color.hh.

Constructor & Destructor Documentation

◆ Color4f() [1/3]

blender::Color4f::Color4f ( )
default

◆ Color4f() [2/3]

blender::Color4f::Color4f ( const float rgba)
inline

Definition at line 30 of file BLI_color.hh.

◆ Color4f() [3/3]

blender::Color4f::Color4f ( float  r,
float  g,
float  b,
float  a 
)
inline

Definition at line 34 of file BLI_color.hh.

Member Function Documentation

◆ hash()

uint64_t blender::Color4f::hash ( ) const
inline

Definition at line 64 of file BLI_color.hh.

References a, b, g, r, and x2.

◆ operator const float *()

blender::Color4f::operator const float * ( ) const
inline

Definition at line 43 of file BLI_color.hh.

References r.

◆ operator float *()

blender::Color4f::operator float * ( )
inline

Definition at line 38 of file BLI_color.hh.

References r.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const Color4f a,
const Color4f b 
)
friend

Definition at line 59 of file BLI_color.hh.

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
Color4f  c 
)
friend

Definition at line 48 of file BLI_color.hh.

◆ operator==

bool operator== ( const Color4f a,
const Color4f b 
)
friend

Definition at line 54 of file BLI_color.hh.

Member Data Documentation

◆ a

float blender::Color4f::a

◆ b

float blender::Color4f::b

◆ g

float blender::Color4f::g

◆ r

float blender::Color4f::r

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