OpenPolygon
1.0.0
OpenPolygon is a Rendering Engine
|
The DisplayManager controlled the GLFW Display. More...
#include <displaymanager.h>
Public Member Functions | |
void | initialize (DisplayConfig *config) |
initialize More... | |
void | finish (void) |
GLFWDisplay * | getDisplay (const std::string &display_name) |
GLFWDisplay * | createDisplay (DisplayConfig *config) throw ( std::runtime_error ) |
createMainDisplay More... | |
GLFWDisplay * | createDisplay (int width, int height, const char *window_title, GLFWwindow *share=NULL) throw ( std::runtime_error ) |
createDisplay More... | |
void | makeContext (GLFWDisplay *display) throw ( std::runtime_error ) |
createHideDisplay More... | |
void | BindCallbacksTo (GLFWDisplay *display) throw ( std::runtime_error ) |
BindCallbacksTo. More... | |
DisplayList | getDisplayList (void) |
getDisplayList More... | |
void | registerDisplay (GLFWDisplay *display) |
registerDisplay More... | |
void | unregister (GLFWDisplay *display) |
unregister More... | |
void | destroy (GLFWDisplay *display) |
destroy More... | |
Static Public Member Functions | |
static void | ResizeCallback (GLFWwindow *window, int width, int height) |
static void | KeyboardCallback (GLFWwindow *window, int key, int scancode, int action, int mods) |
static void | MouseClickCallback (GLFWwindow *window, int button, int action, int mods) |
static void | CursorCallback (GLFWwindow *window, double x, double y) |
static void | WheelCallback (GLFWwindow *window, double x, double y) |
static DisplayManager * | getSingletonPtr (void) |
getSingletonPtr More... | |
The DisplayManager controlled the GLFW Display.
void DisplayManager::BindCallbacksTo | ( | GLFWDisplay * | display | ) | |
throw | ( | std::runtime_error | |||
) |
BindCallbacksTo.
Bind all Callbacks to Display
display |
GLFWDisplay * DisplayManager::createDisplay | ( | DisplayConfig * | config | ) | |
throw | ( | std::runtime_error | |||
) |
GLFWDisplay * DisplayManager::createDisplay | ( | int | width, |
int | height, | ||
const char * | window_title, | ||
GLFWwindow * | share = NULL |
||
) | |||
throw | ( | std::runtime_error | |
) |
createDisplay
Create GLFW Display
width | |
height | |
window_title |
void DisplayManager::destroy | ( | GLFWDisplay * | display | ) |
destroy
Destroy a Display
display |
DisplayList DisplayManager::getDisplayList | ( | void | ) |
getDisplayList
Return all register displays
|
static |
void DisplayManager::initialize | ( | DisplayConfig * | config | ) |
initialize
Initialize GLFW
main_display |
void DisplayManager::makeContext | ( | GLFWDisplay * | display | ) | |
throw | ( | std::runtime_error | |||
) |
createHideDisplay
Create Hide GLFW Display
GLFW - Make Context
makeContext
display |
void DisplayManager::registerDisplay | ( | GLFWDisplay * | display | ) |
registerDisplay
register a display for more overview
display |
void DisplayManager::unregister | ( | GLFWDisplay * | display | ) |
unregister
remove a display from the display list
display |