public final class CLGLBuffer<B extends Buffer> extends CLBuffer<B> implements CLGLObject
CLMemory.GLObjectType, CLMemory.Map, CLMemory.Mem| Modifier and Type | Field and Description |
|---|---|
int |
GLID
The OpenGL object handle.
|
clCapacity, elementSize, FLAGS, size| Modifier and Type | Method and Description |
|---|---|
<T extends Buffer> |
cloneWith(T directBuffer)
Returns a new instance of CLMemory pointing to the same CLResource but using a different Buffer.
|
void |
close()
Deprecated.
This method is not intended to be called from client code.
|
CLGLContext |
getContext()
Returns the context for this OpenCL object.
|
GLContext |
getGLContext()
Returns the OpenGL context of this shared object.
|
int |
getGLObjectID()
Returns the OpenGL object id of this shared object.
|
CLMemory.GLObjectType |
getGLObjectType()
Returns the OpenGL buffer type of this shared object.
|
boolean |
isReleased()
Returns true if
CLResource.release() has been called. |
String |
toString() |
void |
updateSize()
Updates the size of this CLGLBuffer by querying OpenGL.
|
createSubBuffer, getSubBuffers, isSubBuffer, releaseequals, getBuffer, getCL, getCLCapacity, getCLSize, getConfig, getElementSize, getMapCount, getNIOCapacity, getNIOSize, getSizeImpl, hashCode, initCLCapacity, isHostPointerFlag, isReadOnly, isReadWrite, isWriteOnly, registerDestructorCallback, usegetID, getPlatformclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIDpublic void updateSize()
CLCommandQueue.putAcquireGLObject(com.jogamp.opencl.gl.CLGLObject).public int getGLObjectID()
CLGLObjectgetGLObjectID in interface CLGLObjectpublic CLMemory.GLObjectType getGLObjectType()
CLGLObjectgetGLObjectType in interface CLGLObjectpublic CLGLContext getContext()
CLObjectgetContext in interface CLGLObjectgetContext in class CLObjectpublic GLContext getGLContext()
CLGLObjectgetGLContext in interface CLGLObjectpublic <T extends Buffer> CLGLBuffer<T> cloneWith(T directBuffer)
CLMemory@Deprecated public final void close()
AutoCloseable.
Might be remove as soon we have extension methods, but shall validate with Java 1.5 specs.close in interface AutoCloseableAutoCloseablepublic boolean isReleased()
CLResourceCLResource.release() has been called.isReleased in interface CLResource