|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scilab.forge.scirenderer.implementation.jogl.buffers.JoGLDataBuffer
org.scilab.forge.scirenderer.implementation.jogl.buffers.JoGLElementsBuffer
public class JoGLElementsBuffer
| Field Summary | |
|---|---|
static int |
ELEMENT_SIZE
The current size of one element. |
| Method Summary | |
|---|---|
int |
bindAsColorsBuffer(GL2 gl)
|
int |
bindAsNormalsBuffer(GL2 gl)
|
int |
bindAsTextureCoordinatesBuffer(GL2 gl)
|
int |
bindAsVertexBuffer(GL2 gl)
|
protected java.nio.Buffer |
getByteBuffer()
Return the data as byte buffer. |
int |
getByteSize()
Return the size of this buffer in byte. |
java.nio.FloatBuffer |
getData()
Return the data. |
int |
getElementsSize()
Return the number of coordinate for one element. |
protected int |
getGLBindDestination()
Return the OpenGl bind destination. |
int |
getSize()
Return the number of elements. |
void |
setData(float[] newData,
int elementSize)
Set the data. |
void |
setData(java.lang.Float[] newData,
int elementSize)
Set the data. |
void |
setData(java.nio.FloatBuffer newData,
int elementsSize)
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 |
| Field Detail |
|---|
public static final int ELEMENT_SIZE
| Method Detail |
|---|
public void setData(float[] newData,
int elementSize)
ElementsBuffer
setData in interface ElementsBuffernewData - the new data.elementSize - the size of data elements.
public void setData(java.lang.Float[] newData,
int elementSize)
ElementsBuffer
setData in interface ElementsBuffernewData - the new data.elementSize - the size of data elements.
public void setData(java.nio.FloatBuffer newData,
int elementsSize)
ElementsBuffer
setData in interface ElementsBuffernewData - the new data.elementsSize - the size of data elements.public int getSize()
DataBuffer
getSize in interface DataBufferpublic java.nio.FloatBuffer getData()
DataBuffer
getData in interface DataBuffergetData in interface ElementsBufferpublic int getElementsSize()
ElementsBuffer
getElementsSize in interface ElementsBufferpublic int getByteSize()
JoGLDataBuffer
getByteSize in class JoGLDataBufferprotected java.nio.Buffer getByteBuffer()
JoGLDataBuffer
getByteBuffer in class JoGLDataBufferprotected int getGLBindDestination()
JoGLDataBuffer
getGLBindDestination in class JoGLDataBufferpublic int bindAsVertexBuffer(GL2 gl)
public int bindAsNormalsBuffer(GL2 gl)
public int bindAsColorsBuffer(GL2 gl)
public int bindAsTextureCoordinatesBuffer(GL2 gl)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||