Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
blowbox::GLFWManager Class Reference

#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)
 
WindowFindCorrespondingWindow (GLFWwindow *window)
 

Private Attributes

Map< GLFWwindow *, Window * > windows_
 

Friends

class BlowboxCore
 
class Window
 

Detailed Description

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.

Constructor & Destructor Documentation

blowbox::GLFWManager::GLFWManager ( )

Constructor for the GLFWManager.

Author
Riko Ophorst
blowbox::GLFWManager::~GLFWManager ( )

Destructor for the GLFWManager.

Author
Riko Ophorst

Member Function Documentation

void blowbox::GLFWManager::AddWindow ( Window window)
protected

Adds a Window to the GLFWManager.

Author
Riko Ophorst
Parameters
[in]windowThe window to be added
Window * blowbox::GLFWManager::FindCorrespondingWindow ( GLFWwindow *  window)
protected

Finds corresponding Window.

Author
Riko Ophorst
Parameters
[in]windowThe GLFW window to which we need to find the Window
void blowbox::GLFWManager::Init ( )
protected

Initializes the GLFW environment. This is to be called as one of the first steps in BlowboxCore::Run().

Author
Riko Ophorst
void blowbox::GLFWManager::RemoveWindow ( Window window)
protected

Removes a Window from the GLFWManager.

Author
Riko Ophorst
Parameters
[in]windowThe window to be removed
void blowbox::GLFWManager::Shutdown ( )
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.

Author
Riko Ophorst
void blowbox::GLFWManager::Update ( )
protected

Updates the GLFW environment. This is to be called every frame.

Author
Riko Ophorst

Member Data Documentation

Map<GLFWwindow*, Window*> blowbox::GLFWManager::windows_
private

All windows in the world.


The documentation for this class was generated from the following files: