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

#include <BLI_color.hh>

Public Member Functions

 Color4b ()=default
 
 Color4b (uint8_t r, uint8_t g, uint8_t b, uint8_t a)
 
 Color4b (Color4f other)
 
 operator Color4f () const
 
 operator uint8_t * ()
 
 operator const uint8_t * () const
 
uint64_t hash () const
 

Public Attributes

uint8_t r
 
uint8_t g
 
uint8_t b
 
uint8_t a
 

Friends

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

Detailed Description

Definition at line 74 of file BLI_color.hh.

Constructor & Destructor Documentation

◆ Color4b() [1/3]

blender::Color4b::Color4b ( )
default

◆ Color4b() [2/3]

blender::Color4b::Color4b ( uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  a 
)
inline

Definition at line 79 of file BLI_color.hh.

◆ Color4b() [3/3]

blender::Color4b::Color4b ( Color4f  other)
inline

Definition at line 83 of file BLI_color.hh.

References rgba_float_to_uchar().

Member Function Documentation

◆ hash()

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

Definition at line 121 of file BLI_color.hh.

References a, b, g, and r.

◆ operator Color4f()

blender::Color4b::operator Color4f ( ) const
inline

Definition at line 88 of file BLI_color.hh.

References result, and rgba_uchar_to_float().

◆ operator const uint8_t *()

blender::Color4b::operator const uint8_t * ( ) const
inline

Definition at line 100 of file BLI_color.hh.

References r.

◆ operator uint8_t *()

blender::Color4b::operator uint8_t * ( )
inline

Definition at line 95 of file BLI_color.hh.

References r.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 116 of file BLI_color.hh.

◆ operator<<

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

Definition at line 105 of file BLI_color.hh.

◆ operator==

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

Definition at line 111 of file BLI_color.hh.

Member Data Documentation

◆ a

uint8_t blender::Color4b::a

Definition at line 75 of file BLI_color.hh.

Referenced by hash().

◆ b

uint8_t blender::Color4b::b

Definition at line 75 of file BLI_color.hh.

Referenced by hash().

◆ g

uint8_t blender::Color4b::g

Definition at line 75 of file BLI_color.hh.

Referenced by hash().

◆ r

uint8_t blender::Color4b::r

Definition at line 75 of file BLI_color.hh.

Referenced by hash(), operator const uint8_t *(), and operator uint8_t *().


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