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 TypeMethodDescriptionvoid
clear()
protected Buffer
Return the data as byte buffer.int
Return the size of this buffer in byte.getData()
Return the data.protected int
Return the OpenGl bind destination.int
getSize()
Return the number of elements.void
setData
(int[] indices) Set the datavoid
Set the data.void
setData
(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:IndicesBuffer
Set the data- Specified by:
setData
in interfaceIndicesBuffer
- Parameters:
indices
- the new data.
-
setData
Description copied from interface:IndicesBuffer
Set the data- Specified by:
setData
in interfaceIndicesBuffer
- Parameters:
indices
- the new data.
-
setData
Description copied from interface:IndicesBuffer
Set the data.- Specified by:
setData
in interfaceIndicesBuffer
- Parameters:
indexBuffer
- the new data.
-
getSize
public int getSize()Description copied from interface:DataBuffer
Return the number of elements.- Specified by:
getSize
in interfaceDataBuffer
- Returns:
- the number of elements.
-
getData
Description copied from interface:DataBuffer
Return the data.- Specified by:
getData
in interfaceDataBuffer
- Specified by:
getData
in interfaceIndicesBuffer
- Returns:
- the data.
-
getByteSize
public int getByteSize()Description copied from class:JoGLDataBuffer
Return the size of this buffer in byte.- Specified by:
getByteSize
in classJoGLDataBuffer
- Returns:
- the size of this buffer in byte.
-
getByteBuffer
Description copied from class:JoGLDataBuffer
Return the data as byte buffer.- Specified by:
getByteBuffer
in classJoGLDataBuffer
- Returns:
- the data as byte buffer.
-
getGLBindDestination
protected int getGLBindDestination()Description copied from class:JoGLDataBuffer
Return the OpenGl bind destination.- Specified by:
getGLBindDestination
in classJoGLDataBuffer
- Returns:
- the OpenGl bind destination.
-
clear
public void clear()- Specified by:
clear
in interfaceDataBuffer
- Specified by:
clear
in interfaceIndicesBuffer
- Specified by:
clear
in classJoGLDataBuffer
-