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

Color Struct Reference

#include <color.hxx>

List of all members.

Public Member Functions

 Color (int i)
 Color (float r, float g, float b, float a=1.0f)
unsigned int get_rgb ()

Public Attributes

float r
float g
float b
float a


Constructor & Destructor Documentation

Color::Color int    i [inline]
 

Definition at line 31 of file color.hxx.

Color::Color float    r,
float    g,
float    b,
float    a = 1.0f
[inline]
 

Definition at line 38 of file color.hxx.


Member Function Documentation

unsigned int Color::get_rgb   [inline]
 

Convert the color into 0xRRGGBB format

Definition at line 42 of file color.hxx.


Member Data Documentation

float Color::a
 

Definition at line 29 of file color.hxx.

Referenced by GlutDisplay::draw_circle(), GlutDisplay::draw_fill_circle(), GlutDisplay::draw_fill_rect(), GlutDisplay::draw_line(), GlutDisplay::draw_rect(), and GlutDisplay::draw_string().

float Color::b
 

Definition at line 28 of file color.hxx.

Referenced by GlutDisplay::draw_circle(), GlutDisplay::draw_fill_circle(), GlutDisplay::draw_fill_rect(), GlutDisplay::draw_line(), GlutDisplay::draw_rect(), GlutDisplay::draw_string(), and X11Display::get_color_value().

float Color::g
 

Definition at line 27 of file color.hxx.

Referenced by GlutDisplay::draw_circle(), GlutDisplay::draw_fill_circle(), GlutDisplay::draw_fill_rect(), GlutDisplay::draw_line(), GlutDisplay::draw_rect(), GlutDisplay::draw_string(), and X11Display::get_color_value().

float Color::r
 

Definition at line 26 of file color.hxx.

Referenced by GlutDisplay::draw_circle(), GlutDisplay::draw_fill_circle(), GlutDisplay::draw_fill_rect(), GlutDisplay::draw_line(), GlutDisplay::draw_rect(), GlutDisplay::draw_string(), and X11Display::get_color_value().


The documentation for this struct was generated from the following file:
Generated on Thu Jul 24 10:25:14 2003 for Construo by doxygen1.3-rc3