|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jocl.cloth.VBOFloatBufferHandle
class VBOFloatBufferHandle
A ResourceHandle that obtains the FloatBuffer
by mapping an OpenGL VBO using a renderer.
| Constructor Summary | |
|---|---|
VBOFloatBufferHandle(de.javagl.simplerenderer.SimpleRenderer renderer,
int vbo)
Creates a new float buffer source that provides the buffer that may be obtained from the given renderer by mapping the specified VBO. |
|
| Method Summary | |
|---|---|
void |
acquire()
Has to be called before the resource may be obtained |
java.nio.FloatBuffer |
get()
Returns the resource from this handle. |
void |
release()
Has to be called as soon as the resource is not used any more |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
VBOFloatBufferHandle(de.javagl.simplerenderer.SimpleRenderer renderer,
int vbo)
renderer - The renderervbo - The VBO identifier| Method Detail |
|---|
public java.nio.FloatBuffer get()
ResourceHandleResourceHandle.acquire() and
ResourceHandle.release(). Clients should preferably not store the
returned object, but always access the resource by calling
this method. This method may return null if the
resource has not properly been acquired.
get in interface ResourceHandle<java.nio.FloatBuffer>public void acquire()
ResourceHandle
acquire in interface ResourceHandle<java.nio.FloatBuffer>public void release()
ResourceHandle
release in interface ResourceHandle<java.nio.FloatBuffer>public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||