GLFWRAIIGuard Class
A RAII Guard for GLFW. More...
Declaration
Public Constructors Index
| GLFWRAIIGuard () | |
|
Initializes the glfw library by calling `glfwInit()`. More... | |
| GLFWRAIIGuard (const GLFWRAIIGuard &)=delete | |
|
No copy or move. More... | |
| GLFWRAIIGuard (const GLFWRAIIGuard &&)=delete | |
Public Destructor Index
| ~GLFWRAIIGuard () | |
|
Terminates the glfw library by calling `glfwTerminate()`. More... | |
Public Operators Index
| GLFWRAIIGuard & | operator= (const GLFWRAIIGuard &)=delete |
| GLFWRAIIGuard & | operator= (const GLFWRAIIGuard &&)=delete |
Description
A RAII Guard for GLFW.
This class makes sure that GLFW is properly initialized when an instance is created and terminated when this instance is destroyed.
Definition at line 22 of file GLFWRAIIGuard.ixx.
Public Constructors
GLFWRAIIGuard()
| inline |
Initializes the glfw library by calling `glfwInit()`.
- Exceptions
-
std::runtime_error if initialization fails
Definition at line 32 of file GLFWRAIIGuard.ixx.
Referenced by GLFWRAIIGuard, GLFWRAIIGuard, operator= and operator=.
GLFWRAIIGuard()
| delete |
GLFWRAIIGuard()
| delete |
Definition at line 53 of file GLFWRAIIGuard.ixx.
Reference GLFWRAIIGuard.
Public Destructor
~GLFWRAIIGuard()
| inline |
Terminates the glfw library by calling `glfwTerminate()`.
Definition at line 44 of file GLFWRAIIGuard.ixx.
Public Operators
operator=()
| delete |
Definition at line 52 of file GLFWRAIIGuard.ixx.
Reference GLFWRAIIGuard.
operator=()
| delete |
Definition at line 54 of file GLFWRAIIGuard.ixx.
Reference GLFWRAIIGuard.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.