Package com.ardor3d.renderer
Class ContextManager
java.lang.Object
com.ardor3d.renderer.ContextManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Map
<Object, RenderContext> protected static RenderContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addContext
(Object contextKey, RenderContext context) static void
addContextCleanListener
(ContextCleanListener listener) static void
fireCleanContextEvent
(RenderContext renderContext) static RenderContext
getContextForKey
(Object key) static RenderContext
getContextForRef
(Object glref) Find the first context we manage that uses the given shared opengl context.static RenderContext
static void
removeContext
(Object contextKey) static RenderContext
switchContext
(Object contextKey)
-
Field Details
-
currentContext
-
contextStore
-
-
Constructor Details
-
ContextManager
public ContextManager()
-
-
Method Details
-
getCurrentContext
- Returns:
- a RenderContext object representing the current OpenGL context.
-
switchContext
-
removeContext
-
addContext
-
getContextForKey
-
getContextForRef
Find the first context we manage that uses the given shared opengl context.- Parameters:
glref
- the GL context- Returns:
- the render context
-
fireCleanContextEvent
-
addContextCleanListener
-