Class ContextManager

java.lang.Object
com.ardor3d.renderer.ContextManager

public class ContextManager extends Object
  • Field Details

  • Constructor Details

    • ContextManager

      public ContextManager()
  • Method Details

    • getCurrentContext

      public static RenderContext getCurrentContext()
      Returns:
      a RenderContext object representing the current OpenGL context.
    • switchContext

      public static RenderContext switchContext(Object contextKey)
    • removeContext

      public static void removeContext(Object contextKey)
    • addContext

      public static void addContext(Object contextKey, RenderContext context)
    • getContextForKey

      public static RenderContext getContextForKey(Object key)
    • getContextForRef

      public static RenderContext getContextForRef(Object glref)
      Find the first context we manage that uses the given shared opengl context.
      Parameters:
      glref - the GL context
      Returns:
      the render context
    • fireCleanContextEvent

      public static void fireCleanContextEvent(RenderContext renderContext)
    • addContextCleanListener

      public static void addContextCleanListener(ContextCleanListener listener)