com.jogamp.opencl.gl
Class CLGLTexture2d<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>
com.jogamp.opencl.gl.CLGLTexture2d<B>
- All Implemented Interfaces:
- AutoCloseable, CLResource, CLGLObject
public class CLGLTexture2d<B extends Buffer>
- extends CLGLImage2d<B>
2D OpenCL image representing an 2D OpenGL texture.
- Author:
- Michael Bien
Constructor Summary |
CLGLTexture2d(CLContext context,
B directBuffer,
CLImageFormat format,
CLImage.CLImageInfoAccessor accessor,
int target,
int mipLevel,
int width,
int height,
long id,
int glid,
int flags)
|
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 |
target
public final int target
mipMapLevel
public final int mipMapLevel
CLGLTexture2d
public CLGLTexture2d(CLContext context,
B directBuffer,
CLImageFormat format,
CLImage.CLImageInfoAccessor accessor,
int target,
int mipLevel,
int width,
int height,
long id,
int glid,
int flags)
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
- Overrides:
getGLObjectType
in class CLGLImage2d<B extends Buffer>
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