Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

SDLmm::ColorRGBA Class Reference

A small usefull class representing an RGBA color. More...

#include <sdlmm_color.h>

Inheritance diagram for SDLmm::ColorRGBA::

SDLmm::ColorRGB List of all members.

Public Methods

 ColorRGBA ()
 Default constructor which creates an empty ColorRGBA (rgb variables set to zero). More...

 ColorRGBA (const ColorRGBA &color)
 This is the copy constructor. Simply initializes the value of an ColorRGBA to that of another ColorRGBA. More...

 ColorRGBA (Uint8 nr, Uint8 ng, Uint8 nb, Uint8 na)
 Constructor which initializes the class from integer values. More...

ColorRGBA& operator= (const ColorRGBA &color)
 Set the value of an ColorRGBA to that of an existing ColorRGBA. More...

bool operator== (const ColorRGBA &color) const
 Compare two colors for equality. More...


Public Attributes

Uint8 a

Detailed Description

A small usefull class representing an RGBA color.

Author:
Adam Gates

Definition at line 83 of file sdlmm_color.h.


Constructor & Destructor Documentation

SDLmm::ColorRGBA::ColorRGBA ( ) [inline]
 

Default constructor which creates an empty ColorRGBA (rgb variables set to zero).

Definition at line 87 of file sdlmm_color.h.

SDLmm::ColorRGBA::ColorRGBA ( const ColorRGBA & color ) [inline]
 

This is the copy constructor. Simply initializes the value of an ColorRGBA to that of another ColorRGBA.

Parameters:
color   an existing ColorRGBA object.

Definition at line 93 of file sdlmm_color.h.

SDLmm::ColorRGBA::ColorRGBA ( Uint8 nr,
Uint8 ng,
Uint8 nb,
Uint8 na ) [inline]
 

Constructor which initializes the class from integer values.

Parameters:
nr, red   component
ng, green   component
nb, blue   component
na, alpha   component

Definition at line 103 of file sdlmm_color.h.


Member Function Documentation

ColorRGBA & SDLmm::ColorRGBA::operator= ( const ColorRGBA & color ) [inline]
 

Set the value of an ColorRGBA to that of an existing ColorRGBA.

Definition at line 107 of file sdlmm_color.h.

bool SDLmm::ColorRGBA::operator== ( const ColorRGBA & color ) const [inline]
 

Compare two colors for equality.

Returns:
true if coordinates are identical in both colors.

Definition at line 120 of file sdlmm_color.h.


Member Data Documentation

Uint8 SDLmm::ColorRGBA::a
 

Definition at line 124 of file sdlmm_color.h.


The documentation for this class was generated from the following file:
Documentation automatically generated by doxygen written by Dimitri van Heesch. Project hosted at
Hosted by SourceForge