Public Member Functions | Public Attributes

a5::RGBA_Float Struct Reference
[Color]

Stores Colors as floating point in the RGBA format. More...

#include <Color.hpp>

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

Stores Colors as floating point in the RGBA format.


Constructor & Destructor Documentation

a5::RGBA_Float::RGBA_Float ( float  r_,
float  g_,
float  b_,
float  a_ 
)

Creates an RGBA object with the specified values.

a5::RGBA_Float::RGBA_Float ( const Color c  ) 

Creates an RGBA object from a Color object.


Member Function Documentation

a5::RGBA_Float::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