OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::Bitfield< Bit > Class Template Reference

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.
 
Bitfieldoperator|= (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.
 

Detailed Description

template<typename Bit>
class oglplus::Bitfield< Bit >

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:


The documentation for this class was generated from the following file:

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).