|
||||||||||
| 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.JoGLBuffersManager
public final class JoGLBuffersManager
| Constructor Summary | |
|---|---|
JoGLBuffersManager()
Default constructor. |
|
| Method Summary | |
|---|---|
int |
bindColorsBuffer(GL2 gl,
ElementsBuffer buffer)
Bind the given buffer as color buffer. |
int |
bindIndicesBuffer(GL2 gl,
IndicesBuffer buffer)
Bind the given buffer as indices buffer. |
int |
bindNormalsBuffer(GL2 gl,
ElementsBuffer buffer)
Bind the given buffer as normal buffer. |
int |
bindTextureCoordinatesBuffer(GL2 gl,
ElementsBuffer buffer)
Bind the given buffer as texture coordinate buffer. |
int |
bindVertexBuffer(GL2 gl,
ElementsBuffer buffer)
Bind the given buffer as vertex buffer. |
ElementsBuffer |
createElementsBuffer()
Create an elements buffer. |
IndicesBuffer |
createIndicesBuffer()
Create an indices buffer. |
void |
dispose(java.util.Collection<? extends DataBuffer> buffers)
Release all resources used by the given buffers. |
void |
dispose(DataBuffer buffer)
Release all resources used by the given buffer. |
void |
glReload()
Called when previous OpenGl context is gone. |
void |
glSynchronize(GL2 gl)
Called before rendering for synchronisation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JoGLBuffersManager()
| Method Detail |
|---|
public ElementsBuffer createElementsBuffer()
BuffersManager
createElementsBuffer in interface BuffersManagerpublic IndicesBuffer createIndicesBuffer()
BuffersManager
createIndicesBuffer in interface BuffersManagerpublic void dispose(DataBuffer buffer)
BuffersManager
dispose in interface BuffersManagerbuffer - the given buffer.public void dispose(java.util.Collection<? extends DataBuffer> buffers)
BuffersManager
dispose in interface BuffersManagerbuffers - the given buffers.public void glReload()
public void glSynchronize(GL2 gl)
gl - the OpenGl context.
public int bindVertexBuffer(GL2 gl,
ElementsBuffer buffer)
gl - the OpenGl context where the buffer is bind.buffer - the buffer to bind.
public int bindNormalsBuffer(GL2 gl,
ElementsBuffer buffer)
gl - the OpenGl context where the buffer is bind.buffer - the buffer to bind.
public int bindTextureCoordinatesBuffer(GL2 gl,
ElementsBuffer buffer)
gl - the OpenGl context where the buffer is bind.buffer - the buffer to bind.
public int bindColorsBuffer(GL2 gl,
ElementsBuffer buffer)
gl - the OpenGl context where the buffer is bind.buffer - the buffer to bind.
public int bindIndicesBuffer(GL2 gl,
IndicesBuffer buffer)
gl - the OpenGl context where the buffer is bind.buffer - the buffer to bind.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||