1#ifndef NNGN_GRAPHICS_OPENGL_HANDLE_H
2#define NNGN_GRAPHICS_OPENGL_HANDLE_H
12template<
typename T>
class OpenGLHandle {
19 { this->m_h = std::exchange(lhs.m_h, {}); }
22 { this->m_h = std::exchange(lhs.m_h, {}); }
OpenGLHandle & operator=(const OpenGLHandle &)=delete
OpenGLHandle(const OpenGLHandle &)=delete
u32 & id()
Definition: handle.h:25
u32 m_h
Definition: handle.h:13
OpenGLHandle & operator=(OpenGLHandle &&lhs) noexcept
Definition: handle.h:21
constexpr OpenGLHandle(u32 h) noexcept
Definition: handle.h:16
OpenGLHandle(OpenGLHandle &&lhs) noexcept
Definition: handle.h:18
u32 id() const
Definition: handle.h:24
constexpr OpenGLHandle()=default
~OpenGLHandle()
Definition: handle.h:23
std::uint32_t u32
Definition: def.h:14