public class J3DBuffer extends Object
rewind
on the read-only view, so that elements 0
through buffer.limit()-1
will be available internally.GeometryArray.setCoordRefBuffer(J3DBuffer)
,
GeometryArray.setColorRefBuffer(J3DBuffer)
,
GeometryArray.setNormalRefBuffer(J3DBuffer)
,
GeometryArray.setTexCoordRefBuffer(int,J3DBuffer)
,
GeometryArray.setVertexAttrRefBuffer(int,J3DBuffer)
,
GeometryArray.setInterleavedVertexBuffer(J3DBuffer)
,
CompressedGeometry(CompressedGeometryHeader,J3DBuffer)
Constructor and Description |
---|
J3DBuffer()
Constructs a J3DBuffer object and initializes it with
a null NIO buffer object.
|
J3DBuffer(Buffer buffer)
Constructs a J3DBuffer object and initializes it with
the specified NIO buffer object.
|
Modifier and Type | Method and Description |
---|---|
Buffer |
getBuffer()
Retrieves the NIO buffer object from this J3DBuffer.
|
void |
setBuffer(Buffer buffer)
Sets the NIO buffer object in this J3DBuffer to
the specified object.
|
public J3DBuffer()
UnsupportedOperationException
- if the JVM does not
support native access to direct NIO bufferspublic J3DBuffer(Buffer buffer)
buffer
- the NIO buffer wrapped by this J3DBufferUnsupportedOperationException
- if the JVM does not
support native access to direct NIO buffersIllegalArgumentException
- if the specified buffer is
not a direct buffer, or if the byte order of the specified
buffer does not match the native byte order of the underlying
platform.public void setBuffer(Buffer buffer)
buffer
- the NIO buffer wrapped by this J3DBufferIllegalArgumentException
- if the specified buffer is
not a direct buffer, or if the byte order of the specified
buffer does not match the native byte order of the underlying
platform.public Buffer getBuffer()
Copyright © 2016–2022 SciJava. All rights reserved.