Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | List of all members
smlt::PackedColour4444 Class Reference

Public Member Functions

 PackedColour4444 (const Colour &c)
 
PackedColour4444operator= (const PackedColour4444 &)=default
 
PackedColour4444operator= (const Colour &rhs)
 
bool operator== (const PackedColour4444 &rhs) const
 
bool operator== (const Colour &rhs) const
 
bool operator!= (const Colour &rhs) const
 
 operator Colour ()
 
void set_alpha (NormalizedFloat a)
 
uint8_t r8 () const
 
uint8_t g8 () const
 
uint8_t b8 () const
 
uint8_t a8 () const
 
float rf () const
 
float gf () const
 
float bf () const
 
float af () const
 

Member Function Documentation

◆ af()

float smlt::PackedColour4444::af ( ) const

Returns the alpha channel as a value between 0.0f and 1.0f

◆ bf()

float smlt::PackedColour4444::bf ( ) const

Returns the blue channel as a value between 0.0f and 1.0f

◆ gf()

float smlt::PackedColour4444::gf ( ) const

Returns the green channel as a value between 0.0f and 1.0f

◆ rf()

float smlt::PackedColour4444::rf ( ) const

Returns the red channel as a value between 0.0f and 1.0f


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