Gel2D - The free/open source game creation suite

Public Member Functions | Public Attributes
gel::GelHWColor Class Reference

Hardware RGBA color class. More...

#include <gelColor.h>

List of all members.

Public Member Functions

 GelHWColor ()
 Default constructor.
 GelHWColor (int red, int green, int blue, int alpha)
 Full color constructor.
 GelHWColor (GELCOLOR col)
 Hardware color constructor.
 GelHWColor (const GelRGBA &col)
 GelRGBA constructor.
 GelHWColor (const GelHSLA &col)
 GelHSLA constructor.
 GelHWColor (const GelColor &col)
 GelColor constructor.

Public Attributes

GELCOLOR c
 The color.

Detailed Description

Hardware RGBA color class.

This class uses a 32-bit integer to store color data.


Constructor & Destructor Documentation

gel::GelHWColor::GelHWColor ( ) [inline]

Default constructor.

gel::GelHWColor::GelHWColor ( int  red,
int  green,
int  blue,
int  alpha 
)

Full color constructor.

Parameters:
red: Red value.
green: Green value.
blue: Blue value.
alpha: Alpha value.
gel::GelHWColor::GelHWColor ( GELCOLOR  col) [inline]

Hardware color constructor.

Parameters:
col: DWORD RGBA color.
gel::GelHWColor::GelHWColor ( const GelRGBA col)

GelRGBA constructor.

Parameters:
col: Color to assign.
gel::GelHWColor::GelHWColor ( const GelHSLA col)

GelHSLA constructor.

Parameters:
col: Color to assign.
gel::GelHWColor::GelHWColor ( const GelColor col)

GelColor constructor.

Parameters:
col: Color to assign.

Member Data Documentation

The color.


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