org.scilab.forge.scirenderer.implementation.jogl.buffers
Class JoGLIndicesBuffer

java.lang.Object
  extended by org.scilab.forge.scirenderer.implementation.jogl.buffers.JoGLDataBuffer
      extended by org.scilab.forge.scirenderer.implementation.jogl.buffers.JoGLIndicesBuffer
All Implemented Interfaces:
DataBuffer, IndicesBuffer

public class JoGLIndicesBuffer
extends JoGLDataBuffer
implements IndicesBuffer

Author:
Pierre Lando

Method Summary
protected  java.nio.Buffer getByteBuffer()
          Return the data as byte buffer.
 int getByteSize()
          Return the size of this buffer in byte.
 java.nio.IntBuffer getData()
          Return the data.
protected  int getGLBindDestination()
          Return the OpenGl bind destination.
 int getSize()
          Return the number of elements.
 void setData(java.util.Collection<java.lang.Integer> indices)
          Set the data
 void setData(int[] indices)
          Set the data
 void setData(java.nio.IntBuffer indexBuffer)
          Set the data.
 
Methods inherited from class org.scilab.forge.scirenderer.implementation.jogl.buffers.JoGLDataBuffer
dispose, getGlName, isDataUploaded, reload, setDataUploaded, synchronize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setData

public void setData(int[] indices)
Description copied from interface: IndicesBuffer
Set the data

Specified by:
setData in interface IndicesBuffer
Parameters:
indices - the new data.

setData

public void setData(java.util.Collection<java.lang.Integer> indices)
Description copied from interface: IndicesBuffer
Set the data

Specified by:
setData in interface IndicesBuffer
Parameters:
indices - the new data.

setData

public void setData(java.nio.IntBuffer indexBuffer)
Description copied from interface: IndicesBuffer
Set the data.

Specified by:
setData in interface IndicesBuffer
Parameters:
indexBuffer - the new data.

getSize

public int getSize()
Description copied from interface: DataBuffer
Return the number of elements.

Specified by:
getSize in interface DataBuffer
Returns:
the number of elements.

getData

public java.nio.IntBuffer getData()
Description copied from interface: DataBuffer
Return the data.

Specified by:
getData in interface DataBuffer
Specified by:
getData in interface IndicesBuffer
Returns:
the data.

getByteSize

public int getByteSize()
Description copied from class: JoGLDataBuffer
Return the size of this buffer in byte.

Specified by:
getByteSize in class JoGLDataBuffer
Returns:
the size of this buffer in byte.

getByteBuffer

protected java.nio.Buffer getByteBuffer()
Description copied from class: JoGLDataBuffer
Return the data as byte buffer.

Specified by:
getByteBuffer in class JoGLDataBuffer
Returns:
the data as byte buffer.

getGLBindDestination

protected int getGLBindDestination()
Description copied from class: JoGLDataBuffer
Return the OpenGl bind destination.

Specified by:
getGLBindDestination in class JoGLDataBuffer
Returns:
the OpenGl bind destination.