![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
A GL handle. More...
#include <gf/GraphicsHandle.h>
Public Member Functions | |
| GraphicsHandle () | |
| Constructor. More... | |
| constexpr | GraphicsHandle (NoneType) noexcept |
| Constructor. More... | |
| ~GraphicsHandle () noexcept | |
| Destructor. More... | |
| GraphicsHandle (const GraphicsHandle &)=delete | |
| Deleted copy constructor. More... | |
| GraphicsHandle & | operator= (const GraphicsHandle &)=delete |
| Deleted copy assignment. More... | |
| GraphicsHandle (GraphicsHandle &&other) noexcept | |
| Move constructor. More... | |
| GraphicsHandle & | operator= (GraphicsHandle &&other) noexcept |
| Move assignment. More... | |
| bool | isValid () const noexcept |
| Check if the handle is valid. More... | |
| unsigned | getName () const noexcept |
| Get the underlying name of the handle. More... | |
| operator unsigned () const noexcept | |
| Conversion operator to the underlying name. More... | |
A GL handle.
This class is a RAII class around an OpenGL name.
|
inline |
Constructor.
Generate a valid handle.
|
inlineconstexprnoexcept |
Constructor.
Generate an invalid handle.
|
inlinenoexcept |
Destructor.
|
delete |
Deleted copy constructor.
|
inlinenoexcept |
Move constructor.
| other | Another handle |
|
inlinenoexcept |
Get the underlying name of the handle.
|
inlinenoexcept |
Check if the handle is valid.
|
inlinenoexcept |
Conversion operator to the underlying name.
|
delete |
Deleted copy assignment.
|
inlinenoexcept |
Move assignment.
| other | Another handle |