Maven module :un.engine : engine-opengl-util :
Class : un.impl.opengl.resource.IBO
Extends/Implements : un.impl.opengl.resource.AbstractTupleBufferResource un.api.geometry.TupleBuffer1D
Subclasses : -

Index Buffer Object resource.
author  Johann Sorel


Variables : -
Functions : IBO, IBO, IBO, getCapacity, setBuffer, setBuffer, getTuple, loadOnSystemMemory, loadOnGpuMemory, unloadFromGpuMemory, bind, unbind, create, setTuple, getDimension, getTuple, getTupleBoolean, getTupleByte, getTupleUByte, getTupleShort, getTupleUShort, getTupleInt, getTupleUInt, getTupleLong, getTupleFloat, getTupleDouble, copy, copy




New IBO with no data set.
public void IBO ()


New IBO from given integer buffer.
param  buffer data buffer
param  tupleSize number of value for each tuple
public void IBO (Buffer buffer, int tupleSize)


New IBO from given int array.
param  array data array
param  tupleSize number of value for each tuple
public void IBO (int[] array, int tupleSize)


Number of values in the buffer
return  number of values in the buffer
public int getCapacity ()


Set IBO datas.
param  buffer data buffer
param  tupleSize number of value for each tuple
public void setBuffer (Buffer buffer, int tupleSize)

public void setBuffer (Buffer buffer, int gpuType, int tupleSize)

public int getTuple (int index)


OpenGL constraints : GL2GL3

{@inheritDoc }
public void loadOnSystemMemory (GL gl)


{@inheritDoc }
public void loadOnGpuMemory (GL gl)


{@inheritDoc }
public void unloadFromGpuMemory (GL gl)


Bind this index buffer.
param  gl OpenGL instance
public void bind (GL gl)

public void unbind (GL gl)

public TupleBuffer create (Extent.Long dimensions, BufferFactory factory)

public void setTuple (int coordinate, Object sample)

public int getDimension ()

public Object getTuple (int coordinate, Object buffer)

public boolean[] getTupleBoolean (int coordinate, boolean[] buffer)

public byte[] getTupleByte (int coordinate, byte[] buffer)

public int[] getTupleUByte (int coordinate, int[] buffer)

public short[] getTupleShort (int coordinate, short[] buffer)

public int[] getTupleUShort (int coordinate, int[] buffer)

public int[] getTupleInt (int coordinate, int[] buffer)

public long[] getTupleUInt (int coordinate, long[] buffer)

public long[] getTupleLong (int coordinate, long[] buffer)

public float[] getTupleFloat (int coordinate, float[] buffer)

public double[] getTupleDouble (int coordinate, double[] buffer)

public IBO copy ()

public IBO copy (Buffer buffer)