colors used for GLUT (OpenGL utility library). 0-127 max component values
More...
#include <color.h>
List of all members.
Public Member Functions |
| glut_color_t (void) throw () |
| glut_color_t (IN float r, IN float g, IN float b, IN float a=1.0) throw () |
| see caveats about the setter
|
| glut_color_t (IN const glut_color_t &c) throw () |
const glut_color_t & | operator= (IN const glut_color_t &c) throw () |
void | set (IN float r, IN float g, IN float b, IN float a=1.0) throw () |
| could be inefficient! If you are calling this a lot, consider setting the byte values directly and doing your own validation.
|
void | clear (void) throw () |
| this will set the color to solid (opaque) black
|
void | dump (IN const char *title) const throw () |
| for debugging
|
Public Attributes |
float | red |
float | green |
float | blue |
float | alpha |
Detailed Description
colors used for GLUT (OpenGL utility library). 0-127 max component values
Definition at line 110 of file color.h.
Constructor & Destructor Documentation
glut_color_t::glut_color_t |
( |
void |
|
) |
throw () [inline] |
glut_color_t::glut_color_t |
( |
IN float |
r, |
|
|
IN float |
g, |
|
|
IN float |
b, |
|
|
IN float |
a = 1.0 | |
|
) |
| | throw () [inline] |
see caveats about the setter
Definition at line 115 of file color.h.
glut_color_t::glut_color_t |
( |
IN const glut_color_t & |
c |
) |
throw () [inline] |
Member Function Documentation
void glut_color_t::set |
( |
IN float |
r, |
|
|
IN float |
g, |
|
|
IN float |
b, |
|
|
IN float |
a = 1.0 | |
|
) |
| | throw () [inline] |
could be inefficient! If you are calling this a lot, consider setting the byte values directly and doing your own validation.
Definition at line 130 of file color.h.
void glut_color_t::clear |
( |
void |
|
) |
throw () [inline] |
this will set the color to solid (opaque) black
Definition at line 142 of file color.h.
void glut_color_t::dump |
( |
IN const char * |
title |
) |
const throw () [inline] |
for debugging
Definition at line 148 of file color.h.
Member Data Documentation
The documentation for this struct was generated from the following file: