Package com.ardor3d.renderer
Class ContextManager
java.lang.Object
com.ardor3d.renderer.ContextManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Map<Object, RenderContext> protected static RenderContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddContext(Object contextKey, RenderContext context) static voidaddContextCleanListener(ContextCleanListener listener) static voidfireCleanContextEvent(RenderContext renderContext) static RenderContextgetContextForKey(Object key) static RenderContextgetContextForRef(Object glref) Find the first context we manage that uses the given shared opengl context.static RenderContextstatic voidremoveContext(Object contextKey) static RenderContextswitchContext(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
-