Public Member Functions | Public Attributes

glut_color_t Struct Reference

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_toperator= (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]

Definition at line 112 of file color.h.

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]

Definition at line 117 of file color.h.


Member Function Documentation

const glut_color_t& glut_color_t::operator= ( IN const glut_color_t c  )  throw () [inline]

Definition at line 120 of file color.h.

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

Definition at line 154 of file color.h.

Definition at line 155 of file color.h.

Definition at line 156 of file color.h.

Definition at line 157 of file color.h.


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