com.jogamp.opencl.gl
Class CLGLImage2d<B extends Buffer>
java.lang.Object
com.jogamp.opencl.CLObject
com.jogamp.opencl.CLMemory<B>
com.jogamp.opencl.CLImage<B>
com.jogamp.opencl.CLImage2d<B>
com.jogamp.opencl.gl.CLGLImage2d<B>
- All Implemented Interfaces:
- AutoCloseable, CLResource, CLGLObject
- Direct Known Subclasses:
- CLGLTexture2d
public class CLGLImage2d<B extends Buffer>
- extends CLImage2d<B>
- implements CLGLObject
2D OpenCL image representing an OpenGL renderbuffer.
- Author:
- Michael Bien
Field Summary |
int |
GLID
The OpenGL object handle. |
Methods inherited from class com.jogamp.opencl.CLMemory |
equals, getBuffer, getCL, getCLCapacity, getCLSize, getConfig, getMapCount, getNIOCapacity, getNIOSize, getSizeImpl, hashCode, initCLCapacity, isHostPointerFlag, isReadOnly, isReadWrite, isWriteOnly, registerDestructorCallback, release, use |
GLID
public final int GLID
- The OpenGL object handle.
CLGLImage2d
protected CLGLImage2d(CLContext context,
B directBuffer,
CLImageFormat format,
CLImage.CLImageInfoAccessor accessor,
int width,
int height,
long id,
int glid,
int flags)
getGLObjectType
public CLMemory.GLObjectType getGLObjectType()
- Description copied from interface:
CLGLObject
- Returns the OpenGL buffer type of this shared object.
- Specified by:
getGLObjectType
in interface CLGLObject
getGLObjectID
public int getGLObjectID()
- Description copied from interface:
CLGLObject
- Returns the OpenGL object id of this shared object.
- Specified by:
getGLObjectID
in interface CLGLObject
getContext
public CLGLContext getContext()
- Description copied from class:
CLObject
- Returns the context for this OpenCL object.
- Specified by:
getContext
in interface CLGLObject
- Overrides:
getContext
in class CLObject
getGLContext
public GLContext getGLContext()
- Description copied from interface:
CLGLObject
- Returns the OpenGL context of this shared object.
- Specified by:
getGLContext
in interface CLGLObject
close
@Deprecated
public final void close()
- Deprecated. This method is not intended to be called from client code.
- Implementation detail, satisfying
AutoCloseable
.
Might be remove as soon we have extension methods, but shall validate with Java 1.5 specs.
- Specified by:
close
in interface AutoCloseable
- See Also:
AutoCloseable
isReleased
public boolean isReleased()
- Description copied from interface:
CLResource
- Returns true if
CLResource.release()
has been called.
- Specified by:
isReleased
in interface CLResource