Top Description Fields Constructors Methods
com.jogamp.opencl.gl

public Class CLGLImage2d<B extends Buffer>

extends CLImage2d<B extends Buffer>
implements CLGLObject
Class Inheritance
All Implemented Interfaces
com.jogamp.opencl.gl.CLGLObject
Known Direct Subclasses
com.jogamp.opencl.gl.CLGLTexture2d
Imports
com.jogamp.opencl.llb.CL, .CLImageBinding, com.jogamp.opencl.llb.gl.CLGL, com.jogamp.opencl.CLContext, .CLException, .CLImage2d, .CLImageFormat, com.jogamp.opencl.llb.impl.CLImageFormatImpl, java.nio.Buffer, com.jogamp.opengl.GLContext

2D OpenCL image representing an OpenGL renderbuffer.
Author
Michael Bien, et.al.

Field Summary

Modifier and TypeField and Description
public final int
GLID

The OpenGL object handle.

Constructor Summary

AccessConstructor and Description
protected
CLGLImage2d(final CLContext context, final B directBuffer, final CLImageFormat format, final CLImage.CLImageInfoAccessor accessor, final int width, final int height, final long id, final int glid, final int flags)

Method Summary

Modifier and TypeMethod and Description
pack-priv static <B extends Buffer> CLGLImage2d<B>
createFromGLRenderbuffer(final CLContext context, final B directBuffer, final int flags, final int renderbuffer)

pack-priv static <B extends Buffer> CLGLImage2d<B>
createImage(final CLContext context, final long id, final B directBuffer, final int glObject, final int flags)

public CLGLContext
getContext()

Overrides com.jogamp.opencl.CLObject.getContext.

Implements com.jogamp.opencl.gl.CLGLObject.getContext.

Returns the OpenCL context of this shared object.
public GLContext
getGLContext()

Implements com.jogamp.opencl.gl.CLGLObject.getGLContext.

Returns the OpenGL context of this shared object.
public int
getGLObjectID()

Implements com.jogamp.opencl.gl.CLGLObject.getGLObjectID.

Returns the OpenGL object id of this shared object.
public CLMemory.GLObjectType
getGLObjectType()

Implements com.jogamp.opencl.gl.CLGLObject.getGLObjectType.

Returns the OpenGL buffer type of this shared object.
Inherited from com.jogamp.opencl.CLImage2d:
cloneWithtoString

Field Detail

GLIDback to summary
public final int GLID

The OpenGL object handle.

Constructor Detail

CLGLImage2dback to summary
protected CLGLImage2d(final CLContext context, final B directBuffer, final CLImageFormat format, final CLImage.CLImageInfoAccessor accessor, final int width, final int height, final long id, final int glid, final int flags)

Method Detail

createFromGLRenderbufferback to summary
pack-priv static <B extends Buffer> CLGLImage2d<B> createFromGLRenderbuffer(final CLContext context, final B directBuffer, final int flags, final int renderbuffer)
createImageback to summary
pack-priv static <B extends Buffer> CLGLImage2d<B> createImage(final CLContext context, final long id, final B directBuffer, final int glObject, final int flags)
getContextback to summary
public CLGLContext getContext()

Overrides com.jogamp.opencl.CLObject.getContext.

Implements com.jogamp.opencl.gl.CLGLObject.getContext.

Doc from com.jogamp.opencl.gl.CLGLObject.getContext.

Returns the OpenCL context of this shared object.

Annotations
@Override
getGLContextback to summary
public GLContext getGLContext()

Implements com.jogamp.opencl.gl.CLGLObject.getGLContext.

Doc from com.jogamp.opencl.gl.CLGLObject.getGLContext.

Returns the OpenGL context of this shared object.

Annotations
@Override
getGLObjectIDback to summary
public int getGLObjectID()

Implements com.jogamp.opencl.gl.CLGLObject.getGLObjectID.

Doc from com.jogamp.opencl.gl.CLGLObject.getGLObjectID.

Returns the OpenGL object id of this shared object.

Annotations
@Override
getGLObjectTypeback to summary
public CLMemory.GLObjectType getGLObjectType()

Implements com.jogamp.opencl.gl.CLGLObject.getGLObjectType.

Doc from com.jogamp.opencl.gl.CLGLObject.getGLObjectType.

Returns the OpenGL buffer type of this shared object.

Annotations
@Override