| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | dispose()
Redeclares com. Disposes this IndexDatat and all its associated OpenGL resources. |
| public ShortBuffer | Returns: the underlying short buffer.
Deprecated
use
getBuffer(boolean) instead
Returns the underlying ShortBuffer. |
| public ShortBuffer | Returns: the underlying short buffer.when true, the underlying buffer will be uploaded on the next call to forWriting)bind(). If you need
immediate uploading use setIndices(short[], int, int).Returns the underlying ShortBuffer for reading or writing. |
| public int | |
| public int | |
| public void | |
| public void | setIndices(short[]
the index data indices, int the offset to start copying the data from offset, int the number of shorts to copy count)Sets the indices of this IndexBufferObject, discarding the old indices. |
| public void | setIndices(ShortBuffer
the index data to copy indices)Copies the specified indices to the indices of this IndexBufferObject, discarding the old indices. |
| public void | |
| public void | updateIndices(int
offset in indices buffer targetOffset, short[] the index data indices, int the offset to start copying the data from offset, int the number of shorts to copy count)Update (a portion of) the indices. |
| bind | back to summary |
|---|---|
| public void bind() Binds this IndexBufferObject for rendering with glDrawElements. | |
| dispose | back to summary |
|---|---|
| public void dispose() Redeclares com. Disposes this IndexDatat and all its associated OpenGL resources. | |
| getBuffer | back to summary |
|---|---|
| public ShortBuffer getBuffer()
Deprecated use
Returns the underlying ShortBuffer. If you modify the buffer contents they will be uploaded on the next call to
| |
| getBuffer | back to summary |
|---|---|
| public ShortBuffer getBuffer(boolean forWriting) Returns the underlying ShortBuffer for reading or writing.
| |
| getNumIndices | back to summary |
|---|---|
public int getNumIndices()
| |
| getNumMaxIndices | back to summary |
|---|---|
public int getNumMaxIndices()
| |
| invalidate | back to summary |
|---|---|
| public void invalidate() Invalidates the IndexBufferObject so a new OpenGL buffer handle is created. Use this in case of a context loss. | |
| setIndices | back to summary |
|---|---|
| public void setIndices(short[] indices, int offset, int count) Sets the indices of this IndexBufferObject, discarding the old indices. The count must equal the number of indices to be copied to this IndexBufferObject.
This can be called in between calls to
| |
| setIndices | back to summary |
|---|---|
| public void setIndices(ShortBuffer indices) Copies the specified indices to the indices of this IndexBufferObject, discarding the old indices. Copying start at the
current
| |
| unbind | back to summary |
|---|---|
| public void unbind() Unbinds this IndexBufferObject. | |
| updateIndices | back to summary |
|---|---|
| public void updateIndices(int targetOffset, short[] indices, int offset, int count) Update (a portion of) the indices.
| |