Maven module :un.engine : engine-opengl-util :
Class :
un.impl.opengl.resource.AbstractTexture
Extends/Implements :
un.impl.opengl.resource.AbstractResource
un.impl.opengl.resource.Texture
Subclasses : -
Variables :
info,
size,
image,
texId,
dirty
Functions :
AbstractTexture,
AbstractTexture,
reformat,
getExtent,
resize,
getTextureType,
getInfo,
isDirty,
getImage,
setImage,
getGpuID,
isOnSystemMemory,
isOnGpuMemory,
unloadFromSystemMemory,
unloadFromGpuMemory,
bind,
unbind,
getDataBuffer,
getColorModel,
getRawModel,
getModels,
getMetadatas
protected TextureModel
info
protected Extent.Long
size
protected Image
image
protected int
texId
protected boolean
dirty
public void
AbstractTexture (Image image, TextureModel info)
public void
AbstractTexture (Extent.Long size, TextureModel info)
public void
reformat (GL gl, TextureModel info)
public Extent.Long
getExtent ()
public void
resize (GL gl, Extent size)
public int
getTextureType ()
public TextureModel
getInfo ()
public boolean
isDirty ()
public Image
getImage ()
public void
setImage (Image image)
public int
getGpuID ()
public boolean
isOnSystemMemory ()
public boolean
isOnGpuMemory ()
public void
unloadFromSystemMemory (GL gl)
public void
unloadFromGpuMemory (GL gl)
public void
bind (GL gl)
public void
unbind (GL gl)
public Buffer
getDataBuffer ()
public ColorModel
getColorModel ()
public RawModel
getRawModel ()
public Dictionary
getModels ()
public Dictionary
getMetadatas ()
TODO better merge of Image and Texture API.
author Johann Sorel