|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.ding3d.Ding3dBuffer
public class Ding3dBuffer
Java 3D wrapper class for java.nio.Buffer objects.
When used to wrap a non-null NIO buffer object, this class will
create a read-only view of the wrapped NIO buffer, and will call
rewind on the read-only view, so that elements 0
through buffer.limit()-1 will be available internally.
GeometryArray.setCoordRefBuffer(Ding3dBuffer),
GeometryArray.setColorRefBuffer(Ding3dBuffer),
GeometryArray.setNormalRefBuffer(Ding3dBuffer),
GeometryArray.setTexCoordRefBuffer(int,Ding3dBuffer),
GeometryArray.setVertexAttrRefBuffer(int,Ding3dBuffer),
GeometryArray.setInterleavedVertexBuffer(Ding3dBuffer),
CompressedGeometry.CompressedGeometry(CompressedGeometryHeader,Ding3dBuffer)| Constructor Summary | |
|---|---|
Ding3dBuffer()
Constructs a Ding3dBuffer object and initializes it with a null NIO buffer object. |
|
Ding3dBuffer(java.nio.Buffer buffer)
Constructs a Ding3dBuffer object and initializes it with the specified NIO buffer object. |
|
| Method Summary | |
|---|---|
java.nio.Buffer |
getBuffer()
Retrieves the NIO buffer object from this Ding3dBuffer. |
void |
setBuffer(java.nio.Buffer buffer)
Sets the NIO buffer object in this Ding3dBuffer to the specified object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ding3dBuffer()
java.lang.UnsupportedOperationException - if the JVM does not
support native access to direct NIO bufferspublic Ding3dBuffer(java.nio.Buffer buffer)
buffer - the NIO buffer wrapped by this Ding3dBuffer
java.lang.UnsupportedOperationException - if the JVM does not
support native access to direct NIO buffers
java.lang.IllegalArgumentException - 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.| Method Detail |
|---|
public void setBuffer(java.nio.Buffer buffer)
buffer - the NIO buffer wrapped by this Ding3dBuffer
java.lang.IllegalArgumentException - 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 java.nio.Buffer getBuffer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||