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
-
Method Summary
Modifier and TypeMethodDescriptioncopy
(byte[] aData) copy
(double[] aData) copy
(float[] aData) copy
(int[] aData) copy
(short[] aData) final Buffer
createCompatibleBuffer
(Buffer aBuffer, int aCapacity) void
doWithTempByteBuffer
(int aCapacity, Consumer<ByteBuffer> aFunc) void
doWithTempPointerBuffer
(Buffer[] aBuffers, Consumer<ILcdPointerBuffer> aFunc) makeCompatible
(Buffer aBuffer) newByteBuffer
(int aCapacity) final CharBuffer
newCharBuffer
(int aCapacity) final DoubleBuffer
newDoubleBuffer
(int aCapacity) final FloatBuffer
newFloatBuffer
(int aCapacity) final IntBuffer
newIntBuffer
(int aCapacity) final LongBuffer
newLongBuffer
(int aCapacity) newManagedByteBuffer
(int aCapacity) final CharBuffer
newManagedCharBuffer
(int aCapacity) final DoubleBuffer
newManagedDoubleBuffer
(int aCapacity) final FloatBuffer
newManagedFloatBuffer
(int aCapacity) final IntBuffer
newManagedIntBuffer
(int aCapacity) final LongBuffer
newManagedLongBuffer
(int aCapacity) final ShortBuffer
newManagedShortBuffer
(int aCapacity) newPointerBuffer
(int aCapacity) final ShortBuffer
newShortBuffer
(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
-