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 : -

Abstract texture.
TODO better merge of Image and Texture API.
author  Johann Sorel


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)


{@inheritDoc }
public void reformat (GL gl, TextureModel info)


{@inheritDoc }
public Extent.Long getExtent ()


{@inheritDoc }
public void resize (GL gl, Extent size)


{@inheritDoc }
public int getTextureType ()


{@inheritDoc }
public TextureModel getInfo ()


{@inheritDoc }
public boolean isDirty ()


{@inheritDoc }
public Image getImage ()


{@inheritDoc }
public void setImage (Image image)


{@inheritDoc }
public int getGpuID ()


{@inheritDoc }
public boolean isOnSystemMemory ()


{@inheritDoc }
public boolean isOnGpuMemory ()


{@inheritDoc }
public void unloadFromSystemMemory (GL gl)


{@inheritDoc }
public void unloadFromGpuMemory (GL gl)


{@inheritDoc }
public void bind (GL gl)


{@inheritDoc }
public void unbind (GL gl)



public Buffer getDataBuffer ()

public ColorModel getColorModel ()

public RawModel getRawModel ()

public Dictionary getModels ()

public Dictionary getMetadatas ()