public static class BufferWrapper.DoubleBufferWrapper extends BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
BufferWrapper.AbstractBufferWrapper<T extends Buffer>, BufferWrapper.ByteBufferWrapper, BufferWrapper.DoubleBufferWrapper, BufferWrapper.EmptyBufferWrapper, BufferWrapper.FloatBufferWrapper, BufferWrapper.IntBufferWrapper, BufferWrapper.ShortBufferWrapper
buffer
EMPTY_BUFFER_WRAPPER
Constructor and Description |
---|
DoubleBufferWrapper(DoubleBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
BufferWrapper |
copyOf(int newSize)
Returns a copy of this buffer with the specified new size.
|
protected void |
doGetByte(byte[] array,
int offset,
int length) |
protected void |
doGetDouble(double[] array,
int offset,
int length) |
protected void |
doGetFloat(float[] array,
int offset,
int length) |
protected void |
doGetInt(int[] array,
int offset,
int length) |
protected void |
doGetShort(short[] array,
int offset,
int length) |
protected BufferWrapper |
doGetSubBuffer() |
protected void |
doPutByte(byte[] array,
int offset,
int length) |
protected void |
doPutDouble(double[] array,
int offset,
int length) |
protected void |
doPutFloat(float[] array,
int offset,
int length) |
protected void |
doPutInt(int[] array,
int offset,
int length) |
protected void |
doPutShort(short[] array,
int offset,
int length) |
protected boolean |
doPutSubBuffer(int index,
BufferWrapper buffer,
int offset,
int length) |
DoubleBuffer |
getBackingDoubleBuffer() |
byte |
getByte(int index)
Returns the value at the specified index, cast to a byte.
|
double |
getDouble(int index)
Returns the value at the specified index, cast to a double.
|
float |
getFloat(int index)
Returns the value at the specified index, cast to a float.
|
int |
getGLDataType()
Returns the OpenGL data type corresponding to the buffer's underlying data type (e.g.
|
int |
getInt(int index)
Returns the value at the specified index, cast to an int.
|
short |
getShort(int index)
Returns the value at the specified index, cast to a short.
|
long |
getSizeInBytes()
Returns the size of this buffer, in bytes.
|
void |
putByte(int index,
byte value)
Sets the value at the specified index as a byte.
|
void |
putDouble(int index,
double value)
Sets the value at the specified index as a double.
|
void |
putFloat(int index,
float value)
Sets the value at the specified index as a float.
|
void |
putInt(int index,
int value)
Sets the value at the specified index as an int.
|
void |
putShort(int index,
short value)
Sets the value at the specified index as a short.
|
getBackingBuffer, getByte, getDouble, getFloat, getInt, getShort, getSubBuffer, length, putByte, putDouble, putFloat, putInt, putShort, putSubBuffer, putSubBuffer
emptyBufferWrapper, wrap, wrap, wrap
public DoubleBufferWrapper(DoubleBuffer buffer)
public BufferWrapper copyOf(int newSize)
BufferWrapper
copyOf
in class BufferWrapper
newSize
- the new buffer's size.protected void doGetByte(byte[] array, int offset, int length)
doGetByte
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected void doGetDouble(double[] array, int offset, int length)
doGetDouble
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected void doGetFloat(float[] array, int offset, int length)
doGetFloat
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected void doGetInt(int[] array, int offset, int length)
doGetInt
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected void doGetShort(short[] array, int offset, int length)
doGetShort
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected BufferWrapper doGetSubBuffer()
doGetSubBuffer
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected void doPutByte(byte[] array, int offset, int length)
doPutByte
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected void doPutDouble(double[] array, int offset, int length)
doPutDouble
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected void doPutFloat(float[] array, int offset, int length)
doPutFloat
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected void doPutInt(int[] array, int offset, int length)
doPutInt
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected void doPutShort(short[] array, int offset, int length)
doPutShort
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
protected boolean doPutSubBuffer(int index, BufferWrapper buffer, int offset, int length)
doPutSubBuffer
in class BufferWrapper.AbstractBufferWrapper<DoubleBuffer>
public DoubleBuffer getBackingDoubleBuffer()
public byte getByte(int index)
BufferWrapper
getByte
in class BufferWrapper
index
- the index of the value to be returned.public double getDouble(int index)
BufferWrapper
getDouble
in class BufferWrapper
index
- the index of the value to be returned.public float getFloat(int index)
BufferWrapper
getFloat
in class BufferWrapper
index
- the index of the value to be returned.public int getGLDataType()
BufferWrapper
getGLDataType
in class BufferWrapper
public int getInt(int index)
BufferWrapper
getInt
in class BufferWrapper
index
- the index of the value to be returned.public short getShort(int index)
BufferWrapper
getShort
in class BufferWrapper
index
- the index of the value to be returned.public long getSizeInBytes()
BufferWrapper
getSizeInBytes
in class BufferWrapper
public void putByte(int index, byte value)
BufferWrapper
putByte
in class BufferWrapper
index
- the index of the value to be returned.value
- the byte value to be set.public void putDouble(int index, double value)
BufferWrapper
putDouble
in class BufferWrapper
index
- the index of the value to be returned.value
- the double value to be set.public void putFloat(int index, float value)
BufferWrapper
putFloat
in class BufferWrapper
index
- the index of the value to be returned.value
- the float value to be set.public void putInt(int index, int value)
BufferWrapper
putInt
in class BufferWrapper
index
- the index of the value to be returned.value
- the int value to be set.public void putShort(int index, short value)
BufferWrapper
putShort
in class BufferWrapper
index
- the index of the value to be returned.value
- the short value to be set.