| java.lang.Object com.sun.j3d.internal.BufferWrapper
All known Subclasses: com.sun.j3d.internal.FloatBufferWrapper, com.sun.j3d.internal.DoubleBufferWrapper, com.sun.j3d.internal.ByteBufferWrapper,
BufferWrapper | abstract public class BufferWrapper (Code) | | NIO Buffers are new in Java 1.4 but we need to run on 1.3
as well, so this class was created to hide the NIO classes
from non-1.4 Java 3D users.
NOTE: We no longer need to support JDK 1.3 as of the Java 3D 1.3.2
community source release on java.net. We should be able to get rid
of this class.
|
Field Summary | |
final public static int | TYPE_BYTE Value returned from getBufferType(), this indicates
that the BufferWrapper contains a java.nio.ByteBuffer. | final public static int | TYPE_DOUBLE Value returned from getBufferType(), this indicates
that the BufferWrapper contains a java.nio.DoubleBuffer. | final public static int | TYPE_FLOAT Value returned from getBufferType(), this indicates
that the BufferWrapper contains a java.nio.FloatBuffer. | final public static int | TYPE_NULL Value returned from getBufferType(), this indicates
that the BufferWrapper contains a null buffer. | final public static int | TYPE_UNKNOWN Value returned from getBufferType(), this indicates
that the BufferWrapper does not hold data of type
byte, float, or double. |
Constructor Summary | |
public | BufferWrapper() Never used - this class is abstract. |
TYPE_BYTE | final public static int TYPE_BYTE(Code) | | Value returned from getBufferType(), this indicates
that the BufferWrapper contains a java.nio.ByteBuffer.
|
TYPE_DOUBLE | final public static int TYPE_DOUBLE(Code) | | Value returned from getBufferType(), this indicates
that the BufferWrapper contains a java.nio.DoubleBuffer.
|
TYPE_FLOAT | final public static int TYPE_FLOAT(Code) | | Value returned from getBufferType(), this indicates
that the BufferWrapper contains a java.nio.FloatBuffer.
|
TYPE_NULL | final public static int TYPE_NULL(Code) | | Value returned from getBufferType(), this indicates
that the BufferWrapper contains a null buffer.
|
TYPE_UNKNOWN | final public static int TYPE_UNKNOWN(Code) | | Value returned from getBufferType(), this indicates
that the BufferWrapper does not hold data of type
byte, float, or double.
|
BufferWrapper | public BufferWrapper()(Code) | | Never used - this class is abstract.
|
getBuffer | abstract Buffer getBuffer()(Code) | | Must be implemented by sublasses.
|
getBufferAsObject | public Object getBufferAsObject()(Code) | | Buffer as object of type Object. |
limit | public int limit()(Code) | | This buffer's limit. |
position | public int position()(Code) | | This buffer's position. |
position | public BufferWrapper position(int newPosition)(Code) | | Sets this buffer's position.
This buffer. |
rewind | public BufferWrapper rewind()(Code) | | Resets this buffer's position to the previously marked
position.
This buffer. |
|
|