EGLplus
(0.52.0)
a C++ wrapper for
EGL
Tweet
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
include
eglplus
bitfield.hpp
Go to the documentation of this file.
1
12
#pragma once
13
#ifndef EGLPLUS_BITFIELD_1107121519_HPP
14
#define EGLPLUS_BITFIELD_1107121519_HPP
15
16
#include <
eglplus/config.hpp
>
17
#include <
oglplus/bitfield.hpp
>
18
19
20
namespace
eglplus {
21
23
25
using ::oglplus::Bitfield;
26
27
// helper macro used to define bitfield-related functions
28
#define EGLPLUS_MAKE_BITFIELD(BITS) \
29
} namespace oglplus { \
30
namespace enums { \
31
template <> struct EnumBaseType<eglplus::BITS> { typedef EGLenum Type; }; \
32
template <> struct IsBitfieldBit<eglplus::BITS> { typedef std::true_type Type; }; \
33
} } namespace eglplus { \
34
inline eglplus::Bitfield<BITS> operator | (BITS b1, BITS b2) \
35
{ \
36
return Bitfield<BITS>(b1, b2); \
37
}
38
39
40
}
// namespace eglplus
41
42
#endif // include guard
bitfield.hpp
config.hpp
Compile-time configuration options.
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).