Class JoGLIndicesBuffer
java.lang.Object
org.scilab.forge.scirenderer.implementation.jogl.buffers.JoGLDataBuffer
org.scilab.forge.scirenderer.implementation.jogl.buffers.JoGLIndicesBuffer
- All Implemented Interfaces:
DataBuffer,IndicesBuffer
- Author:
- Pierre Lando
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()protected BufferReturn the data as byte buffer.intReturn the size of this buffer in byte.getData()Return the data.protected intReturn the OpenGl bind destination.intgetSize()Return the number of elements.voidsetData(int[] indices) Set the datavoidSet the data.voidsetData(Collection<Integer> indices) Set the dataMethods inherited from class org.scilab.forge.scirenderer.implementation.jogl.buffers.JoGLDataBuffer
dispose, disposeWithoutDelete, getGlName, isDataUploaded, reload, setDataUploaded, synchronize
-
Method Details
-
setData
public void setData(int[] indices) Description copied from interface:IndicesBufferSet the data- Specified by:
setDatain interfaceIndicesBuffer- Parameters:
indices- the new data.
-
setData
Description copied from interface:IndicesBufferSet the data- Specified by:
setDatain interfaceIndicesBuffer- Parameters:
indices- the new data.
-
setData
Description copied from interface:IndicesBufferSet the data.- Specified by:
setDatain interfaceIndicesBuffer- Parameters:
indexBuffer- the new data.
-
getSize
public int getSize()Description copied from interface:DataBufferReturn the number of elements.- Specified by:
getSizein interfaceDataBuffer- Returns:
- the number of elements.
-
getData
Description copied from interface:DataBufferReturn the data.- Specified by:
getDatain interfaceDataBuffer- Specified by:
getDatain interfaceIndicesBuffer- Returns:
- the data.
-
getByteSize
public int getByteSize()Description copied from class:JoGLDataBufferReturn the size of this buffer in byte.- Specified by:
getByteSizein classJoGLDataBuffer- Returns:
- the size of this buffer in byte.
-
getByteBuffer
Description copied from class:JoGLDataBufferReturn the data as byte buffer.- Specified by:
getByteBufferin classJoGLDataBuffer- Returns:
- the data as byte buffer.
-
getGLBindDestination
protected int getGLBindDestination()Description copied from class:JoGLDataBufferReturn the OpenGl bind destination.- Specified by:
getGLBindDestinationin classJoGLDataBuffer- Returns:
- the OpenGl bind destination.
-
clear
public void clear()- Specified by:
clearin interfaceDataBuffer- Specified by:
clearin interfaceIndicesBuffer- Specified by:
clearin classJoGLDataBuffer
-