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

#include <cs237-color.hxx>

Public Member Functions

 color4ub ()
 
 color4ub (color4ub const &c)
 
 color4ub (color3ub const &c)
 
 color4ub (color3ub const &c, unsigned char alpha)
 
 color4ub (color4f const &c)
 
 color4ub (unsigned char grey)
 
 color4ub (unsigned char rr, unsigned char gg, unsigned char bb)
 
 color4ub (unsigned char rr, unsigned char gg, unsigned char bb, unsigned char aa)
 
unsigned char & operator[] (unsigned int const &i)
 
unsigned char const & operator[] (unsigned int const &i) const
 
color4uboperator= (color4f const &c)
 

Public Attributes

unsigned char r
 
unsigned char g
 
unsigned char b
 
unsigned char a
 

Constructor & Destructor Documentation

cs237::color4ub::color4ub ( )
inline
cs237::color4ub::color4ub ( color4ub const &  c)
inline
cs237::color4ub::color4ub ( color3ub const &  c)
inlineexplicit
cs237::color4ub::color4ub ( color3ub const &  c,
unsigned char  alpha 
)
inlineexplicit
cs237::color4ub::color4ub ( color4f const &  c)
inlineexplicit
cs237::color4ub::color4ub ( unsigned char  grey)
inlineexplicit
cs237::color4ub::color4ub ( unsigned char  rr,
unsigned char  gg,
unsigned char  bb 
)
inlineexplicit
cs237::color4ub::color4ub ( unsigned char  rr,
unsigned char  gg,
unsigned char  bb,
unsigned char  aa 
)
inline

Member Function Documentation

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

Member Data Documentation

unsigned char cs237::color4ub::a
unsigned char cs237::color4ub::b
unsigned char cs237::color4ub::g
unsigned char cs237::color4ub::r

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