CMSC23700 Common Code Library
Support code for CS23700 programming projects
cs237::color3ub Struct Reference

#include <cs237-color.hxx>

Public Member Functions

 color3ub ()
 
 color3ub (color3ub const &c)
 
 color3ub (color3f const &c)
 
 color3ub (unsigned char grey)
 
 color3ub (unsigned char rr, unsigned char gg, unsigned char bb)
 
unsigned char & operator[] (unsigned int const &i)
 
unsigned char const & operator[] (unsigned int const &i) const
 
color3uboperator= (color3f const &c)
 

Public Attributes

unsigned char r
 
unsigned char g
 
unsigned char b
 

Constructor & Destructor Documentation

cs237::color3ub::color3ub ( )
inline
cs237::color3ub::color3ub ( color3ub const &  c)
inline
cs237::color3ub::color3ub ( color3f const &  c)
inlineexplicit
cs237::color3ub::color3ub ( unsigned char  grey)
inlineexplicit
cs237::color3ub::color3ub ( unsigned char  rr,
unsigned char  gg,
unsigned char  bb 
)
inline

Member Function Documentation

color3ub & cs237::color3ub::operator= ( color3f const &  c)
inline
unsigned char & cs237::color3ub::operator[] ( unsigned int const &  i)
inline
unsigned char const & cs237::color3ub::operator[] ( unsigned int const &  i) const
inline

Member Data Documentation

unsigned char cs237::color3ub::b
unsigned char cs237::color3ub::g
unsigned char cs237::color3ub::r

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