Package com.jme3.scene.mesh
Class IndexIntBuffer
java.lang.Object
com.jme3.scene.mesh.IndexBuffer
com.jme3.scene.mesh.IndexIntBuffer
IndexBuffer implementation for 
IntBuffers.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintget()Returns the vertex index for the current position.intget(int i) Returns the vertex index for the given index in the index buffer.Returns the underlying data-type specificBuffer.Returns the format of the data stored in this buffer.put(int value) Relative put method.put(int i, int value) Absolute put method.intsize()Returns the size of the index buffer.Methods inherited from class com.jme3.scene.mesh.IndexBuffercreateIndexBuffer, remaining, rewind, wrapIndexBuffer
- 
Constructor Details- 
IndexIntBuffer
 
- 
- 
Method Details- 
getpublic int get()Description copied from class:IndexBufferReturns the vertex index for the current position.- Specified by:
- getin class- IndexBuffer
- Returns:
- the index
 
- 
getpublic int get(int i) Description copied from class:IndexBufferReturns the vertex index for the given index in the index buffer.- Specified by:
- getin class- IndexBuffer
- Parameters:
- i- The index inside the index buffer
- Returns:
- the index
 
- 
putDescription copied from class:IndexBufferAbsolute put method.Puts the vertex index at the index buffer's index. Implementations may throw an UnsupportedOperationExceptionif modifying the IndexBuffer is not supported (e.g. virtual index buffers).- Specified by:
- putin class- IndexBuffer
- Parameters:
- i- The buffer index
- value- The vertex index
- Returns:
- This buffer
 
- 
putDescription copied from class:IndexBufferRelative put method.Puts the vertex index at the current position, then increments the position. Implementations may throw an UnsupportedOperationExceptionif modifying the IndexBuffer is not supported (e.g. virtual index buffers).- Specified by:
- putin class- IndexBuffer
- Parameters:
- value- The vertex index
- Returns:
- This buffer
 
- 
sizepublic int size()Description copied from class:IndexBufferReturns the size of the index buffer.- Specified by:
- sizein class- IndexBuffer
- Returns:
- the size of the index buffer.
 
- 
getBufferDescription copied from class:IndexBufferReturns the underlying data-type specificBuffer. Implementations may return null if there's no underlying buffer.- Specified by:
- getBufferin class- IndexBuffer
- Returns:
- the underlying Buffer.
 
- 
getFormatDescription copied from class:IndexBufferReturns the format of the data stored in this buffer.This method can be used to set an IndexBufferto aMesh:mesh.setBuffer(Type.Index, 3, indexBuffer.getFormat(), indexBuffer);- Specified by:
- getFormatin class- IndexBuffer
- Returns:
- an enum value
 
 
-