| Modifier | Constructor and Description |
|---|---|
|
LibgdxTexture(com.badlogic.gdx.files.FileHandle file) |
|
LibgdxTexture(com.badlogic.gdx.files.FileHandle file,
boolean useMipMaps) |
|
LibgdxTexture(com.badlogic.gdx.files.FileHandle file,
com.badlogic.gdx.graphics.Pixmap.Format format,
boolean useMipMaps) |
|
LibgdxTexture(int width,
int height,
com.badlogic.gdx.graphics.Pixmap.Format format) |
protected |
LibgdxTexture(int glTarget,
int glHandle,
com.badlogic.gdx.graphics.TextureData data) |
|
LibgdxTexture(com.badlogic.gdx.graphics.Pixmap pixmap) |
|
LibgdxTexture(com.badlogic.gdx.graphics.Pixmap pixmap,
boolean useMipMaps) |
|
LibgdxTexture(com.badlogic.gdx.graphics.Pixmap pixmap,
com.badlogic.gdx.graphics.Pixmap.Format format,
boolean useMipMaps) |
|
LibgdxTexture(java.lang.String internalPath) |
|
LibgdxTexture(com.badlogic.gdx.graphics.TextureData data) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Pixmap pixmap,
int x,
int y)
Draws the given
Pixmap to the texture at position x, y. |
TextureFilter |
getMagTextureFilter() |
TextureFilter |
getMinTextureFilter() |
TextureAddressMode |
getUAddressMode()
Returns the U addressing mode for this texture.
|
TextureAddressMode |
getVAddressMode()
Returns the V addressing mode for this texture.
|
void |
setAddressMode(TextureAddressMode u,
TextureAddressMode v)
Sets the texture addressing mode for this texture
|
void |
setTextureFilter(TextureFilter minFilter,
TextureFilter magFilter) |
void |
setUAddressMode(TextureAddressMode mode)
Sets the U addressing mode for this texture.
|
void |
setVAddressMode(TextureAddressMode mode)
Sets the V addressing mode for this texture.
|
clearAllTextures, dispose, draw, getDepth, getHeight, getManagedStatus, getNumManagedTextures, getTextureData, getWidth, invalidateAllTextures, isManaged, load, reload, setAssetManagerbind, bind, delete, getMagFilter, getMinFilter, getTextureObjectHandle, getUWrap, getVWrap, setFilter, setWrap, unsafeSetFilter, unsafeSetFilter, unsafeSetWrap, unsafeSetWrap, uploadImageData, uploadImageDatapublic LibgdxTexture(java.lang.String internalPath)
public LibgdxTexture(com.badlogic.gdx.files.FileHandle file)
public LibgdxTexture(com.badlogic.gdx.files.FileHandle file,
boolean useMipMaps)
public LibgdxTexture(com.badlogic.gdx.files.FileHandle file,
com.badlogic.gdx.graphics.Pixmap.Format format,
boolean useMipMaps)
public LibgdxTexture(com.badlogic.gdx.graphics.Pixmap pixmap)
public LibgdxTexture(com.badlogic.gdx.graphics.Pixmap pixmap,
boolean useMipMaps)
public LibgdxTexture(com.badlogic.gdx.graphics.Pixmap pixmap,
com.badlogic.gdx.graphics.Pixmap.Format format,
boolean useMipMaps)
public LibgdxTexture(int width,
int height,
com.badlogic.gdx.graphics.Pixmap.Format format)
public LibgdxTexture(com.badlogic.gdx.graphics.TextureData data)
protected LibgdxTexture(int glTarget,
int glHandle,
com.badlogic.gdx.graphics.TextureData data)
public void draw(Pixmap pixmap, int x, int y)
TexturePixmap to the texture at position x, y. No clipping is performed so you have to make sure that you
draw only inside the texture region. Note that this will only draw to mipmap level 0!public TextureAddressMode getUAddressMode()
TexturegetUAddressMode in interface Texturepublic void setUAddressMode(TextureAddressMode mode)
TexturesetUAddressMode in interface Texturemode - the new U addressing mode for this texturepublic TextureAddressMode getVAddressMode()
TexturegetVAddressMode in interface Texturepublic void setVAddressMode(TextureAddressMode mode)
TexturesetVAddressMode in interface Texturemode - the new V addressing mode for this texturepublic void setAddressMode(TextureAddressMode u, TextureAddressMode v)
TexturesetAddressMode in interface Textureu - The new U addressing mode for this texturev - The new V addressing mode for this texturepublic TextureFilter getMinTextureFilter()
public TextureFilter getMagTextureFilter()
public void setTextureFilter(TextureFilter minFilter, TextureFilter magFilter)