XII Release 0.1.0
Loading...
Searching...
No Matches
xiiColorBaseUB Class Reference

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <Color8UNorm.h>

Inheritance diagram for xiiColorBaseUB:
[legend]

Public Member Functions

 XII_DECLARE_POD_TYPE ()
 xiiColorBaseUB ()=default
 Default-constructed color is uninitialized (for speed).
 xiiColorBaseUB (xiiUInt8 r, xiiUInt8 g, xiiUInt8 b, xiiUInt8 a=255)
 Initializes the color with r, g, b, a.
const xiiUInt8 * GetData () const
 Conversion to const xiiUInt8*.
xiiUInt8 * GetData ()
 Conversion to xiiUInt8*.
xiiUInt32 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.
xiiUInt32 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

xiiUInt8 r
xiiUInt8 g
xiiUInt8 b
xiiUInt8 a

Detailed Description

Copyright (c) Theophilus Eriata. All Rights Reserved.

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
xiiColorLinearUB
xiiColorGammaUB

Constructor & Destructor Documentation

◆ xiiColorBaseUB()

XII_ALWAYS_INLINE xiiColorBaseUB::xiiColorBaseUB ( xiiUInt8 r,
xiiUInt8 g,
xiiUInt8 b,
xiiUInt8 a = 255 )

Initializes the color with r, g, b, a.

Copyright (c) Theophilus Eriata. All Rights Reserved.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Math/Color8UNorm.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Math/Implementation/Color8UNorm_inl.h