This template serves as a wrapper for OpenGL bitfields. More...
#include </home/chochlik/devel/oglplus/include/oglplus/bitfield.hpp>
Public Member Functions | |
| Bitfield (void) | |
| Constructs an empty bitfield. | |
| Bitfield (BF bits) | |
| Construct a bitfield from the underlying type. | |
| Bitfield (Bit _bit) | |
| Construct a bitfield from a single strongly-typed enumeration value. | |
| template<typename Iter > | |
| Bitfield (Iter pos, Iter end) | |
| Construction from a pair of iterators through Bit(s) | |
| Bitfield (const std::initializer_list< Bit > &bits) | |
| Construct a bitfield from an initializer list of enumeration values. | |
| Bitfield & | operator|= (Bit b) |
| Bitwise or operator for combining enumeration values into a bitfield. | |
| bool | Test (Bit b) const |
| Test if a specified bit is set. | |
Friends | |
| Bitfield | operator| (Bitfield bf, Bit b) |
| Bitwise or operator for combining enumeration values into a bitfield. | |
This template serves as a wrapper for OpenGL bitfields.
Applications rarely need to use this class directly. Instantiations of this template are used as types for parameters in functions taking bitfields based on strongly-type enumerations. When constructing a bitfield the application simply passes the enumerated value or a combination of enumerated values using the bitwise-or operator or initializer list. For example: