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 (float r, float g, float b, float a=1.0) throw ()
 see caveats about the setter
 glut_color_t (const glut_color_t &c) throw ()
const glut_color_toperator= (const glut_color_t &c) throw ()
void set (float r, float g, float b, 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 (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 ( float  r,
float  g,
float  b,
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 ( 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= ( const glut_color_t c  )  throw () [inline]

Definition at line 120 of file color.h.

void glut_color_t::set ( float  r,
float  g,
float  b,
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 ( 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: