Public Member Functions | Public Attributes

a5::RGBA Struct Reference
[Color]

Stores Colors in the RGBA format. More...

#include <Color.hpp>

List of all members.

Public Member Functions

 RGBA (int r_, int g_, int b_, int a_)
 Creates an RGBA object with the specified values.
 RGBA (const Color &c)
 Creates an RGBA object from a Color object.
 operator Color () const
 Converts to a Color object.

Public Attributes

int r
 Red color component.
int g
 Green color component.
int b
 Blue color component.
int a
 Alpha (transparency) component.

Detailed Description

Stores Colors in the RGBA format.


Constructor & Destructor Documentation

a5::RGBA::RGBA ( int  r_,
int  g_,
int  b_,
int  a_ 
)

Creates an RGBA object with the specified values.

a5::RGBA::RGBA ( const Color c  ) 

Creates an RGBA object from a Color object.


Member Function Documentation

a5::RGBA::operator Color (  )  const

Converts to a Color object.


Member Data Documentation

Red color component.

Green color component.

Blue color component.

Alpha (transparency) component.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines