21 #ifndef GF_GRAPHICS_HANDLE_H 22 #define GF_GRAPHICS_HANDLE_H 26 #include "Portability.h" 30 #ifndef DOXYGEN_SHOULD_SKIP_THIS 40 template<GraphicsTag Tag>
49 template<GraphicsTag Tag>
74 : m_name(std::exchange(other.m_name, 0))
79 std::swap(m_name, other.m_name);
91 operator unsigned () const noexcept {
99 #ifndef DOXYGEN_SHOULD_SKIP_THIS 104 #endif // GF_GRAPHICS_HANDLE_H
GraphicsHandle(GraphicsHandle &&other) noexcept
Definition: GraphicsHandle.h:73
Semantic type to represent "none".
Definition: Types.h:37
Definition: GraphicsHandle.h:41
A GL handle.
Definition: GraphicsHandle.h:50
constexpr GraphicsHandle(NoneType) noexcept
Definition: GraphicsHandle.h:58
bool isValid() const noexcept
Definition: GraphicsHandle.h:83
GraphicsHandle()
Definition: GraphicsHandle.h:52
GraphicsTag
Definition: GraphicsHandle.h:34
The namespace for gf classes.
Definition: Action.h:35
GraphicsHandle & operator=(GraphicsHandle &&other) noexcept
Definition: GraphicsHandle.h:78
unsigned getName() const noexcept
Definition: GraphicsHandle.h:87
~GraphicsHandle() noexcept
Definition: GraphicsHandle.h:63