Package com.luciad.view.opengl.binding
Class TLcdGLNIOBufferFactory
java.lang.Object
com.luciad.view.opengl.binding.TLcdGLNIOBufferFactory
A factory that creates NIO buffers which are compatible with the
accompanying OpenGL 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.
An instance of this class can be obtained via
ALcdGLBinding.getNIOBufferFactory().- Since:
- 2019.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy(byte[] aData) copy(double[] aData) copy(float[] aData) copy(int[] aData) copy(short[] aData) final BuffercreateCompatibleBuffer(Buffer aBuffer, int aCapacity) voiddoWithTempByteBuffer(int aCapacity, Consumer<ByteBuffer> aFunc) voiddoWithTempPointerBuffer(Buffer[] aBuffers, Consumer<ILcdPointerBuffer> aFunc) makeCompatible(Buffer aBuffer) newByteBuffer(int aCapacity) final CharBuffernewCharBuffer(int aCapacity) final DoubleBuffernewDoubleBuffer(int aCapacity) final FloatBuffernewFloatBuffer(int aCapacity) final IntBuffernewIntBuffer(int aCapacity) final LongBuffernewLongBuffer(int aCapacity) newManagedByteBuffer(int aCapacity) final CharBuffernewManagedCharBuffer(int aCapacity) final DoubleBuffernewManagedDoubleBuffer(int aCapacity) final FloatBuffernewManagedFloatBuffer(int aCapacity) final IntBuffernewManagedIntBuffer(int aCapacity) final LongBuffernewManagedLongBuffer(int aCapacity) final ShortBuffernewManagedShortBuffer(int aCapacity) newPointerBuffer(int aCapacity) final ShortBuffernewShortBuffer(int aCapacity)
-
Constructor Details
-
TLcdGLNIOBufferFactory
protected TLcdGLNIOBufferFactory()
-
-
Method Details
-
newByteBuffer
-
newCharBuffer
-
newShortBuffer
-
newIntBuffer
-
newLongBuffer
-
newFloatBuffer
-
newDoubleBuffer
-
newPointerBuffer
-
newManagedByteBuffer
-
newManagedCharBuffer
-
newManagedShortBuffer
-
newManagedIntBuffer
-
newManagedLongBuffer
-
newManagedFloatBuffer
-
newManagedDoubleBuffer
-
copy
-
copy
-
copy
-
copy
-
copy
-
createCompatibleBuffer
-
makeCompatible
-
doWithTempByteBuffer
-
doWithTempPointerBuffer
-