Plasma Engine  2.0
Loading...
Searching...
No Matches
plColorBaseUB Class Reference

A 8bit per channel color storage format with undefined encoding. It is up to the user to reinterpret as a gamma or linear space color. More...

#include <Color8UNorm.h>

Inheritance diagram for plColorBaseUB:

Public Member Functions

 PL_DECLARE_POD_TYPE ()
 
 plColorBaseUB ()=default
 Default-constructed color is uninitialized (for speed)
 
 plColorBaseUB (plUInt8 r, plUInt8 g, plUInt8 b, plUInt8 a=255)
 Initializes the color with r, g, b, a.
 
const plUInt8 * GetData () const
 Conversion to const plUInt8*.
 
plUInt8 * GetData ()
 Conversion to plUInt8*.
 
plUInt32 ToRGBA8 () const
 Packs the 4 color values into a single uint32 with A in the least significant bits and R in the most significant ones.
 
plUInt32 ToABGR8 () const
 Packs the 4 color values into a single uint32 with R in the least significant bits and A in the most significant ones.
 

Public Attributes

plUInt8 r
 
plUInt8 g
 
plUInt8 b
 
plUInt8 a
 

Detailed Description

A 8bit per channel color storage format with undefined encoding. It is up to the user to reinterpret as a gamma or linear space color.

See also
plColorLinearUB
plColorGammaUB

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