Package com.luciad.view.opengl.binding
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ILcdGLBufferFactory
Deprecated.Please use OpenGL API entry points that accept NIO buffers or primitive arrays as inputabstract ILcdGLDrawableFactory
Returns a GLDrawable factory for this OpenGL binding.static ALcdGLBinding
Obtains an instance of "com.luciad.internal.view.opengl.binding.lwjgl.TLinLWJGLBinding"abstract String
getName()
Returns a human readable name of the OpenGL binding.Returns a factory object that creates NIO buffers which are compatible with this binding.abstract boolean
Determines whether this OpenGL binding can be used on this system.
-
Constructor Details
-
ALcdGLBinding
protected ALcdGLBinding()
-
-
Method Details
-
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
Returns a GLDrawable factory for this OpenGL binding.- Returns:
- a GLDrawable factory for this OpenGL binding
-
getBufferFactory
Deprecated.Please use OpenGL API entry points that accept NIO buffers or primitive arrays as inputReturns a buffer factory that is compatible with this OpenGL binding.- Returns:
- a buffer factory instance
-
getName
Returns a human readable name of the OpenGL binding.- Specified by:
getName
in interfacecom.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 interfacecom.luciad.internal.view.bindings.ILcdBinding
- Returns:
- true if this binding can be used; false otherwise
-
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
-