Voxel
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | List of all members
Color< COLOR_FORMAT_RGBA_8888 > Struct Template Reference

Color specialization storing 32-bit RGBA colors. More...

#include <color.h>

Public Types

typedef uint32_t PackedType
 32-bit RGBA. From high to low: AAAAAAAA BBBBBBBB GGGGGGGG RRRRRRRR.

Public Member Functions

 Color ()
 Initializes all channels to zero.
 Color (uint8_t const red, uint8_t const green, uint8_t const blue, uint8_t const alpha=0)
 Constructs a color from the given channel values (all 0-255).
 Color (Color const &other)
template<int t_OtherColorFormat>
 Color (Color< t_OtherColorFormat > const &other)
Color const & operator= (Color const &other)
template<int t_OtherColorFormat>
Color const & operator= (Color< t_OtherColorFormat > const &other)
PackedType Packed () const
 Returns packed 32-bit RGBA. From high to low: AAAAAAAA BBBBBBBB GGGGGGGG RRRRRRRR.
uint8_t Red () const
 Returns red channel (0-255).
uint8_t Green () const
 Returns green channel (0-255).
uint8_t Blue () const
 Returns blue channel (0-255).
uint8_t Alpha () const
 Returns alpha channel (0-255).

Detailed Description

template<>
struct Color< COLOR_FORMAT_RGBA_8888 >

Color specialization storing 32-bit RGBA colors.

Definition at line 83 of file color.h.


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