public class CLGLTexture2d<B extends Buffer> extends CLGLImage2d<B>
CLImage.CLImageInfoAccessor
CLMemory.GLObjectType, CLMemory.Map, CLMemory.Mem
Modifier and Type | Field and Description |
---|---|
int |
mipMapLevel |
int |
target |
GLID
clCapacity, elementSize, FLAGS, size
Constructor and Description |
---|
CLGLTexture2d(CLContext context,
B directBuffer,
CLImageFormat format,
CLImage.CLImageInfoAccessor accessor,
int target,
int mipLevel,
int width,
int height,
long id,
int glid,
int flags) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
This method is not intended to be called from client code.
|
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. |
getContext, getGLContext, getGLObjectID
createUninitializedImageFormat, getElementSize, getFormat, getHeight, getRowPitch, getWidth
equals, getBuffer, getCL, getCLCapacity, getCLSize, getConfig, getMapCount, getNIOCapacity, getNIOSize, getSizeImpl, hashCode, initCLCapacity, isHostPointerFlag, isReadOnly, isReadWrite, isWriteOnly, registerDestructorCallback, release, use
getID, getPlatform
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getContext, getGLContext, getGLObjectID, getID
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)
public int getTextureTarget()
public int getMipMapLevel()
public CLMemory.GLObjectType getGLObjectType()
CLGLObject
getGLObjectType
in interface CLGLObject
getGLObjectType
in class CLGLImage2d<B extends Buffer>
@Deprecated public final void close()
AutoCloseable
.
Might be remove as soon we have extension methods, but shall validate with Java 1.5 specs.close
in interface AutoCloseable
AutoCloseable
public boolean isReleased()
CLResource
CLResource.release()
has been called.isReleased
in interface CLResource