public interface JCGLTexturesCubeType
| Modifier and Type | Method and Description |
|---|---|
JCGLTextureCubeType |
textureCubeAllocate(JCGLTextureUnitType unit,
long size,
JCGLTextureFormat format,
JCGLTextureWrapR wrap_r,
JCGLTextureWrapS wrap_s,
JCGLTextureWrapT wrap_t,
JCGLTextureFilterMinification min_filter,
JCGLTextureFilterMagnification mag_filter)
Allocate a cube texture of width
size and height size of
format format, binding it to unit. |
void |
textureCubeBind(JCGLTextureUnitType unit,
JCGLTextureCubeUsableType texture)
Bind the texture
texture to the texture unit unit. |
void |
textureCubeDelete(JCGLTextureCubeType texture)
Deletes the texture referenced by
texture. |
ByteBuffer |
textureCubeGetImageLH(JCGLTextureUnitType unit,
JCGLCubeMapFaceLH face,
JCGLTextureCubeUsableType texture)
Fetch image data for the given face of the given texture.
|
default ByteBuffer |
textureCubeGetImageRH(JCGLTextureUnitType unit,
JCGLCubeMapFaceRH face,
JCGLTextureCubeUsableType texture)
Fetch image data for the given face of the given texture.
|
boolean |
textureCubeIsBound(JCGLTextureUnitType unit,
JCGLTextureCubeUsableType texture) |
boolean |
textureCubeIsBoundAnywhere(JCGLTextureCubeUsableType texture) |
void |
textureCubeUpdateLH(JCGLTextureUnitType unit,
JCGLCubeMapFaceLH face,
JCGLTextureCubeUpdateType data)
Replace the contents (or part of the contents) of the face
face
of the cube map texture data.getTexture() with data,
assuming a cube map that uses a left-handed coordinate system (the OpenGL
default). |
default void |
textureCubeUpdateRH(JCGLTextureUnitType unit,
JCGLCubeMapFaceRH face,
JCGLTextureCubeUpdateType data)
Replace the contents (or part of the contents) of the face
face
of the cube map texture data.getTexture() with data,
assuming a cube map that uses a right-handed coordinate system. |
void textureCubeBind(JCGLTextureUnitType unit, JCGLTextureCubeUsableType texture) throws JCGLException
texture to the texture unit unit. Any
existing bound texture (of any type) is unbound.unit - The texture unittexture - The textureJCGLException - Iff an OpenGL error occursJCGLTexturesType.textureUnitUnbind(JCGLTextureUnitType)void textureCubeDelete(JCGLTextureCubeType texture) throws JCGLException
texture.texture - The textureJCGLException - Iff an OpenGL error occursboolean textureCubeIsBound(JCGLTextureUnitType unit, JCGLTextureCubeUsableType texture) throws JCGLException
unit - The texture unittexture - The texturetrue iff the texture texture is bound to the
texture unit unit.JCGLException - Iff an OpenGL error occursboolean textureCubeIsBoundAnywhere(JCGLTextureCubeUsableType texture) throws JCGLException
texture - The texturetrue iff the texture texture is bound to any
texture unit.JCGLException - Iff an OpenGL error occursvoid textureCubeUpdateLH(JCGLTextureUnitType unit, JCGLCubeMapFaceLH face, JCGLTextureCubeUpdateType data) throws JCGLException
Replace the contents (or part of the contents) of the face face
of the cube map texture data.getTexture() with data,
assuming a cube map that uses a left-handed coordinate system (the OpenGL
default).
If the texture has minification filters that require mipmaps, mipmaps will be generated during the update.
unit - The texture unit that will be used to perform the updateface - The cube face to modifydata - The data to uploadJCGLException - Iff an OpenGL error occursdefault void textureCubeUpdateRH(JCGLTextureUnitType unit, JCGLCubeMapFaceRH face, JCGLTextureCubeUpdateType data) throws JCGLException
Replace the contents (or part of the contents) of the face face
of the cube map texture data.getTexture() with data,
assuming a cube map that uses a right-handed coordinate system.
If the texture has minification filters that require mipmaps, mipmaps will be generated during the update.
unit - The texture unit that will be used to perform the updateface - The cube face to modifydata - The data to uploadJCGLException - Iff an OpenGL error occursJCGLTextureCubeType textureCubeAllocate(JCGLTextureUnitType unit, long size, JCGLTextureFormat format, JCGLTextureWrapR wrap_r, JCGLTextureWrapS wrap_s, JCGLTextureWrapT wrap_t, JCGLTextureFilterMinification min_filter, JCGLTextureFilterMagnification mag_filter) throws JCGLException
Allocate a cube texture of width size and height size of
format format, binding it to unit.
The texture is wrapped around the r axis using the wrapping mode
wrap_r, with the OpenGL default being TEXTURE_WRAP_REPEAT.
The texture is wrapped around the s axis using the wrapping mode
wrap_s, with the OpenGL default being TEXTURE_WRAP_REPEAT.
The texture is wrapped around the t axis using the wrapping mode
wrap_t, with the OpenGL default being TEXTURE_WRAP_REPEAT.
The texture is scaled down using the minification filter min_filter, with the OpenGL default being TEXURE_FILTER_LINEAR.
The texture is scaled up using the magnification filter mag_filter, with the OpenGL default being TEXTURE_FILTER_LINEAR.
unit - The texture unit to which the texture will be initially
boundsize - The width and height in pixelsformat - The texture formatwrap_r - The method with which to wrap textures around the r axiswrap_s - The method with which to wrap textures around the s axiswrap_t - The method with which to wrap textures around the t axismin_filter - The minification filtermag_filter - The magnification filterJCGLException - Iff an OpenGL error occursByteBuffer textureCubeGetImageLH(JCGLTextureUnitType unit, JCGLCubeMapFaceLH face, JCGLTextureCubeUsableType texture) throws JCGLException
Fetch image data for the given face of the given texture.
Fetching texture data requires binding and unbinding textures, and the
given unit will be used to perform the retrieval, breaking any
associated bindings for that unit. The texture will remain bound to unit when the function returns.
unit - The texture unit that will be used to fetch the dataface - The cube map face that will be fetchedtexture - The texturetextureJCGLException - Iff an OpenGL error occursdefault ByteBuffer textureCubeGetImageRH(JCGLTextureUnitType unit, JCGLCubeMapFaceRH face, JCGLTextureCubeUsableType texture) throws JCGLException
Fetch image data for the given face of the given texture.
Fetching texture data requires binding and unbinding textures, and the
given unit will be used to perform the retrieval, breaking any
associated bindings for that unit. The texture will remain bound to unit when the function returns.
unit - The texture unit that will be used to fetch the dataface - The cube map face that will be fetchedtexture - The texturetextureJCGLException - Iff an OpenGL error occursCopyright © 2015 <code@io7m.com> http://io7m.com