World of Rigid Bodies (WoRB)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
WoRB::GLUT_Renderer::Colorf Struct Reference

Represents a color defined red, green, blue and alpha channels. More...

#include <Utilities.h>

Public Member Functions

 Colorf ()
 Default constructor; black opaque color.
 Colorf (float red, float green, float blue, float alpha=1.0f)
 Constructs color from the given components.
 Colorf (const Quaternion &q)
 Conctructs color from the elements of quaternion.

Data Fields

float R
 Holds red color component.
float G
 Holds green color component.
float B
 Holds blue color component.
float A
 Holds aplpha (transparency) channel.

Detailed Description

Represents a color defined red, green, blue and alpha channels.

Definition at line 123 of file Utilities.h.


Constructor & Destructor Documentation

Default constructor; black opaque color.

Definition at line 132 of file Utilities.h.

                : R( 0.0f ), G( 0.0f ), B( 0.0f ), A( 1.0f )
            {
            }
WoRB::GLUT_Renderer::Colorf::Colorf ( float  red,
float  green,
float  blue,
float  alpha = 1.0f 
) [inline]

Constructs color from the given components.

Definition at line 139 of file Utilities.h.

                : R( red ), G( green ), B( blue ), A( alpha )
            {
            }

Conctructs color from the elements of quaternion.

Definition at line 146 of file Utilities.h.

                : R( float(q.x) ), G( float(q.y) ), B( float(q.z) ), A( float(q.w) )
            {
            }

Field Documentation

Holds aplpha (transparency) channel.

Definition at line 128 of file Utilities.h.

Referenced by WoRB_TestBed::ReconfigureTestBed(), WoRB::Ball::Render(), and WoRB::Box::Render().

Holds blue color component.

Definition at line 127 of file Utilities.h.

Referenced by WoRB::Ball::Render(), and WoRB::Box::Render().

Holds green color component.

Definition at line 126 of file Utilities.h.

Referenced by WoRB::Ball::Render(), and WoRB::Box::Render().

Holds red color component.

Definition at line 125 of file Utilities.h.

Referenced by WoRB::Ball::Render(), and WoRB::Box::Render().


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