com.jogamp.opencl.gl
Class CLGLImage2d<B extends Buffer>

java.lang.Object
  extended by com.jogamp.opencl.CLMemory<B>
      extended by com.jogamp.opencl.CLImage<B>
          extended by com.jogamp.opencl.CLImage2d<B>
              extended by com.jogamp.opencl.gl.CLGLImage2d<B>
All Implemented Interfaces:
AutoCloseable, CLResource
Direct Known Subclasses:
CLGLTexture2d

public class CLGLImage2d<B extends Buffer>
extends CLImage2d<B>

2D OpenCL image representing an OpenGL renderbuffer.

Author:
Michael Bien

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jogamp.opencl.CLImage
CLImage.CLImageInfoAccessor
 
Nested classes/interfaces inherited from class com.jogamp.opencl.CLMemory
CLMemory.GLObjectType, CLMemory.Map, CLMemory.Mem
 
Field Summary
protected  CL cl
           
protected  CLContext context
           
 int GLID
          The OpenGL object handle.
 long ID
          The OpenCL object handle.
 
Fields inherited from class com.jogamp.opencl.CLImage
format, height, width
 
Fields inherited from class com.jogamp.opencl.CLMemory
FLAGS, size
 
Constructor Summary
protected CLGLImage2d(CLContext context, B directBuffer, CLImageFormat format, CLImage.CLImageInfoAccessor accessor, int width, int height, long id, int glid, int flags)
           
 
Method Summary
 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.
 long getID()
          Returns the OpenCL object handle
 CLPlatform getPlatform()
          Returns the platform for this OpenCL object.
 
Methods inherited from class com.jogamp.opencl.CLImage2d
cloneWith, toString
 
Methods inherited from class com.jogamp.opencl.CLImage
createUninitializedImageFormat, getElementSize, getFormat, getHeight, getRowPitch, getWidth
 
Methods inherited from class com.jogamp.opencl.CLMemory
equals, getBuffer, getCL, getCLCapacity, getCLSize, getConfig, getMapCount, getNIOCapacity, getNIOSize, getSizeImpl, hashCode, isHostPointerFlag, isReadOnly, isReadWrite, isWriteOnly, registerDestructorCallback, release, sizeOfBufferElem, use
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GLID

public final int GLID
The OpenGL object handle.


ID

public final long ID
The OpenCL object handle.


context

protected CLContext context

cl

protected final CL cl
Constructor Detail

CLGLImage2d

protected CLGLImage2d(CLContext context,
                      B directBuffer,
                      CLImageFormat format,
                      CLImage.CLImageInfoAccessor accessor,
                      int width,
                      int height,
                      long id,
                      int glid,
                      int flags)
Method Detail

getGLObjectType

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


getGLObjectID

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


getContext

public CLGLContext getContext()
Returns the context for this OpenCL object.


getGLContext

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


close

@Deprecated
public final void close()
Deprecated. This method is not intended to be called from client code.

Implementation detail. TODO remove as soon we have extension methods.

Specified by:
close in interface AutoCloseable
See Also:
AutoCloseable

getPlatform

public CLPlatform getPlatform()
Returns the platform for this OpenCL object.


getID

public long getID()
Returns the OpenCL object handle