Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
|
#include <glfw_manager.h>
Public Member Functions | |
GLFWManager () | |
~GLFWManager () | |
Protected Member Functions | |
void | Init () |
void | Update () |
void | Shutdown () |
void | AddWindow (Window *window) |
void | RemoveWindow (Window *window) |
Window * | FindCorrespondingWindow (GLFWwindow *window) |
Private Attributes | |
Map< GLFWwindow *, Window * > | windows_ |
Friends | |
class | BlowboxCore |
class | Window |
Manages all GLFW state such as global initialization / termination, event polling, etc.
This class manages all GLFW state. Normally, you would probably not need to interact with this class.
blowbox::GLFWManager::GLFWManager | ( | ) |
Constructor for the GLFWManager.
blowbox::GLFWManager::~GLFWManager | ( | ) |
Destructor for the GLFWManager.
|
protected |
Adds a Window to the GLFWManager.
[in] | window | The window to be added |
|
protected |
|
protected |
Initializes the GLFW environment. This is to be called as one of the first steps in BlowboxCore::Run().
|
protected |
Removes a Window from the GLFWManager.
[in] | window | The window to be removed |
|
protected |
Shuts down the GLFW environment. This is to be called as one of the last steps in BlowboxCore::Run() after shutdown has been initiated.
|
protected |
Updates the GLFW environment. This is to be called every frame.