Glfwx  0.1.0
C++ wrapper for GLFW
Public Member Functions | List of all members
Glfwx::Instance Class Reference

RAII for Glfwx. More...

#include <Glfwx/Glfwx.h>

Public Member Functions

 Instance ()
 Constructor.
 
 ~Instance ()
 Destructor.
 
bool ok () const
 Returns the state of GLFW. More...
 

Detailed Description

RAII for Glfwx.

Instantiation of an Instance will initialize GLFW and Glfwx. Destruction will terminate them.

Warning
Glfwx::Instance should only be instantiated once, and only if Glfwx::init() and glfwInit() are not called.
See also
Glfwx::init()

Member Function Documentation

◆ ok()

bool Glfwx::Instance::ok ( ) const

Returns the state of GLFW.

Returns
true, if GLFW is initialized