Mondschein Engine
0.3.0
|
This static provides general control and communications. More...
#include <types.h>
Static Public Member Functions | |
static void | init (display::Visual_p _v) |
Internally initialize a visual. More... | |
static void | init (renderer::Context_p _c) |
Internally initialize a context. More... | |
static void | make_current (display::Visual_p _v, renderer::Context_p _c) |
(Re-)define the current rendering visual and context More... | |
static bool | is_current (display::Visual_p _v) |
Check for current visual. More... | |
static bool | is_current (renderer::Context_p _c) |
Check for current context. More... | |
This static provides general control and communications.
The Engine class is a static class (it cannot be instantiated) providing functionality for the Mondschein Engine to communicate with itself.
|
static |
Internally initialize a visual.
_v | the rendering visual DEVELOPER FUNCTION |
This function should not be used explicitely. It registers a rendering visual as current after initialization.
Definition at line 32 of file engine.cpp.
|
static |
Internally initialize a context.
_c | the rendering context DEVELOPER FUNCTION |
This function should not be used explicitely. It registers a rendering context as current after initialization.
Definition at line 38 of file engine.cpp.
|
static |
Check for current visual.
_v | the rendering visual |
This function checks whether or not _v is the current rendering visual and retrns the result.
Checking for current visual is often done automatically by the Mondschein Engine to avoid memory leaks and undefined behaviour but the Mondschein never makes a visual current explicitely.
Definition at line 53 of file engine.cpp.
|
static |
Check for current context.
_c | the rendering context |
This function checks whether or not _v is the current rendering context and retrns the result.
Checking for current context is often done automatically by the Mondschein Engine to avoid memory leaks and undefined behaviour but the Mondschein never makes a context current explicitely.
Definition at line 59 of file engine.cpp.
|
static |
(Re-)define the current rendering visual and context
_v | the rendering visual |
_c | the rendering context |
This function make _v and _c current, that means all subsequent rendering operations go into _v and _c.
Definition at line 44 of file engine.cpp.