#include <sglStatelet.hpp>
Inheritance diagram for sglColorMask::

Public Methods | |
| sglColorMask (bool red=true, bool green=true, bool blue=true, bool alpha=true) | |
| virtual | ~sglColorMask () | 
| void | setMask (bool red, bool green, bool blue, bool alpha) | 
| void | getMask (bool &red, bool &green, bool &blue, bool &alpha) const | 
| void | apply (sglCurrState *curr_state) const | 
| virtual void | printInfo (ostream &ostrm, const char *indent_string) const | 
Example:
sglColorMask *cmask = new sglColorMask; // all enabled by default cmask->setMask(true, false, false, false); // only enable red components
Definition at line 696 of file sglStatelet.hpp.
      
  | 
  
| 
 Constructor (also the default constructor). All component masks are set to true (enabled) by default. 
 Definition at line 706 of file sglStatelet.hpp.  | 
  
      
  | 
  
| 
 virtual destructor. 
 Definition at line 710 of file sglStatelet.hpp.  | 
  
      
  | 
  
| 
 Set all the color component masks. 
 Referenced by sglColorMask().  | 
  
      
  | 
  
| 
 Query all the color component masks. 
  | 
  
      
  | 
  
| 
 Apply this state change to the current rendering state. 
 Reimplemented from sglStatelet.  | 
  
      
  | 
  
| 
 Output the state of this node to the specified ostream. 
 Reimplemented from sglStatelet.  | 
  
1.2.6 written by Dimitri van Heesch,
 © 1997-2001