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

java.lang.Object
  extended by com.jogamp.opencl.CLObject
      extended by com.jogamp.opencl.CLMemory<B>
          extended by com.jogamp.opencl.CLImage<B>
              extended by com.jogamp.opencl.CLImage3d<B>
                  extended by com.jogamp.opencl.gl.CLGLTexture3d<B>
All Implemented Interfaces:
AutoCloseable, CLResource, CLGLObject

public class CLGLTexture3d<B extends Buffer>
extends CLImage3d<B>
implements CLGLObject

3D OpenCL image representing an 3D OpenGL texture.

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
 int GLID
          The OpenGL object handle.
 int mipMapLevel
           
 int target
           
 
Fields inherited from class com.jogamp.opencl.CLImage3d
depth
 
Fields inherited from class com.jogamp.opencl.CLImage
format, height, width
 
Fields inherited from class com.jogamp.opencl.CLMemory
clCapacity, elementSize, FLAGS, size
 
Fields inherited from class com.jogamp.opencl.CLObject
context, ID
 
Method Summary
 void close()
          Deprecated. This method is not intended to be called from client code.
 CLGLContext getContext()
          Returns the shared CLGLContext.
 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.
 int getMipMapLevel()
          Returns the OpenGL mipmap level of this texture.
 int getTextureTarget()
          Returns the OpenGL texture target of this texture.
 boolean isReleased()
          Returns true if CLResource.release() has been called.
 
Methods inherited from class com.jogamp.opencl.CLImage3d
cloneWith, getDepth, getSlicePitch, 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, initCLCapacity, isHostPointerFlag, isReadOnly, isReadWrite, isWriteOnly, registerDestructorCallback, release, use
 
Methods inherited from class com.jogamp.opencl.CLObject
getID, getPlatform
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jogamp.opencl.gl.CLGLObject
getID
 

Field Detail

GLID

public final int GLID
The OpenGL object handle.


target

public final int target

mipMapLevel

public final int mipMapLevel
Method Detail

getGLObjectID

public int getGLObjectID()
Description copied from interface: CLGLObject
Returns the OpenGL object id of this shared object.

Specified by:
getGLObjectID in interface CLGLObject

getTextureTarget

public int getTextureTarget()
Returns the OpenGL texture target of this texture.


getMipMapLevel

public int getMipMapLevel()
Returns the OpenGL mipmap level of this texture.


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

getContext

public CLGLContext getContext()
Returns the shared CLGLContext.

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