Class ALcdGLBinding

java.lang.Object
com.luciad.view.opengl.binding.ALcdGLBinding
All Implemented Interfaces:
com.luciad.internal.view.bindings.ILcdBinding

public abstract class ALcdGLBinding extends Object implements com.luciad.internal.view.bindings.ILcdBinding
Provides access to an OpenGL binding.
  • Constructor Details

    • ALcdGLBinding

      protected ALcdGLBinding()
  • Method Details

    • getInstance

      public static ALcdGLBinding getInstance()
      Obtains an instance of "com.luciad.internal.view.opengl.binding.lwjgl.TLinLWJGLBinding"

      After the first time an instance has been requested, this method will always return the same instance.

      Returns:
      a new instance of ALcdGLBinding
      Throws:
      TLcdGLNoBindingError - when no OpenGL binding is available
    • getGLDrawableFactory

      public abstract ILcdGLDrawableFactory getGLDrawableFactory()
      Returns a GLDrawable factory for this OpenGL binding.
      Returns:
      a GLDrawable factory for this OpenGL binding
    • getBufferFactory

      public abstract ILcdGLBufferFactory getBufferFactory()
      Deprecated.
      Please use OpenGL API entry points that accept NIO buffers or primitive arrays as input
      Returns a buffer factory that is compatible with this OpenGL binding.
      Returns:
      a buffer factory instance
    • getName

      public abstract String getName()
      Returns a human readable name of the OpenGL binding.
      Specified by:
      getName in interface com.luciad.internal.view.bindings.ILcdBinding
      Returns:
      a human readable name of the OpenGL binding
    • isAvailable

      public abstract boolean isAvailable()
      Determines whether this OpenGL binding can be used on this system. Typically this method will check for the availability of native libraries, required classes, etc..
      Specified by:
      isAvailable in interface com.luciad.internal.view.bindings.ILcdBinding
      Returns:
      true if this binding can be used; false otherwise
    • getNIOBufferFactory

      public TLcdGLNIOBufferFactory getNIOBufferFactory()
      Returns a factory object that creates NIO buffers which are compatible with this binding. Clients should use this factory to allocate all buffers that are provided as parameters to OpenGL calls. This ensures that the buffers meet any requirements imposed by a particular OpenGL binding with regards to heap vs. direct buffers or byte ordering.
      Returns:
      a factory for NIO buffers
      Since:
      2018.1