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

Color specialization storing 16-bit RGB colors. More...

#include <color.h>

Public Types

typedef uint16_t PackedType
 16-bit RGB. From high to low: RRRRR GGGGGG BBBBB.

Public Member Functions

 Color ()
 Initializes all channels to zero.
 Color (uint8_t const red, uint8_t const green, uint8_t const blue)
 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 16-bit RGB. From high to low: RRRRR GGGGGG BBBBB.
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_RGB_565 >

Color specialization storing 16-bit RGB colors.

Definition at line 132 of file color.h.


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