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

public Class CLGLTexture2d<B extends Buffer>

extends CLGLImage2d<B extends Buffer>
implements CLGLTexture
Class Inheritance
All Implemented Interfaces
com.jogamp.opencl.gl.CLGLTexture, com.jogamp.opencl.gl.CLGLObject
Imports
com.jogamp.opencl.llb.CL, .CLImageBinding, com.jogamp.opencl.CLContext, .CLException, .CLImageFormat, com.jogamp.opencl.llb.impl.CLImageFormatImpl, com.jogamp.opencl.llb.gl.CLGL, java.nio.Buffer

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

Field Summary

Modifier and TypeField and Description
public final int
public final int
Inherited from com.jogamp.opencl.gl.CLGLImage2d:
GLID

Constructor Summary

AccessConstructor and Description
public
CLGLTexture2d(final CLContext context, final B directBuffer, final CLImageFormat format, final CLImage.CLImageInfoAccessor accessor, final int target, final int mipLevel, 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> CLGLTexture2d<B>
createFromGLTexture2d(final CLContext context, final B directBuffer, final int target, final int texture, final int mipLevel, final int flags)

public CLMemory.GLObjectType
getGLObjectType()

Overrides com.jogamp.opencl.gl.CLGLImage2d.getGLObjectType.

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

Returns the OpenGL buffer type of this shared object.
public int
getMipMapLevel()

Implements com.jogamp.opencl.gl.CLGLTexture.getMipMapLevel.

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

Implements com.jogamp.opencl.gl.CLGLTexture.getTextureTarget.

Returns the OpenGL texture target of this texture.
Inherited from com.jogamp.opencl.gl.CLGLImage2d:
createFromGLRenderbuffercreateImagegetContextgetGLContextgetGLObjectID

Field Detail

mipMapLevelback to summary
public final int mipMapLevel
targetback to summary
public final int target

Constructor Detail

CLGLTexture2dback to summary
public CLGLTexture2d(final CLContext context, final B directBuffer, final CLImageFormat format, final CLImage.CLImageInfoAccessor accessor, final int target, final int mipLevel, final int width, final int height, final long id, final int glid, final int flags)

Method Detail

createFromGLTexture2dback to summary
pack-priv static <B extends Buffer> CLGLTexture2d<B> createFromGLTexture2d(final CLContext context, final B directBuffer, final int target, final int texture, final int mipLevel, final int flags)
getGLObjectTypeback to summary
public CLMemory.GLObjectType getGLObjectType()

Overrides com.jogamp.opencl.gl.CLGLImage2d.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
getMipMapLevelback to summary
public int getMipMapLevel()

Implements com.jogamp.opencl.gl.CLGLTexture.getMipMapLevel.

Doc from com.jogamp.opencl.gl.CLGLTexture.getMipMapLevel.

Returns the OpenGL mipmap level of this texture.

Annotations
@Override
getTextureTargetback to summary
public int getTextureTarget()

Implements com.jogamp.opencl.gl.CLGLTexture.getTextureTarget.

Doc from com.jogamp.opencl.gl.CLGLTexture.getTextureTarget.

Returns the OpenGL texture target of this texture.

Annotations
@Override