Class KTexture

java.lang.Object
com.badlogic.gdx.graphics.GLTexture
com.badlogic.gdx.graphics.Texture
fr.formiko.kokcinelo.tools.KTexture
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable

public class KTexture extends com.badlogic.gdx.graphics.Texture
Texture with high quality. MipMap is needed to have a good quality when the texture is scaled a lot smaller than the original size. Texture.TextureFilter.MipMapLinearLinear is the best quality. Mipmap may create issues with texure atlas (as spine output). To avoid create 2^n width & height texture.
Since:
1.1
Version:
1.1
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.Texture

    com.badlogic.gdx.graphics.Texture.TextureFilter, com.badlogic.gdx.graphics.Texture.TextureWrap
  • Field Summary

    Fields inherited from class com.badlogic.gdx.graphics.GLTexture

    anisotropicFilterLevel, glHandle, glTarget, magFilter, minFilter, uWrap, vWrap
  • Constructor Summary

    Constructors
    Constructor
    Description
    KTexture(com.badlogic.gdx.files.FileHandle file)
    Create good quality texture with mipmap.
    KTexture(com.badlogic.gdx.graphics.Pixmap pixmap)
    Create good quality texture with mipmap.
  • Method Summary

    Methods inherited from class com.badlogic.gdx.graphics.Texture

    clearAllTextures, dispose, draw, getDepth, getHeight, getManagedStatus, getNumManagedTextures, getTextureData, getWidth, invalidateAllTextures, isManaged, load, reload, setAssetManager, toString

    Methods inherited from class com.badlogic.gdx.graphics.GLTexture

    bind, bind, delete, getAnisotropicFilter, getMagFilter, getMaxAnisotropicFilterLevel, getMinFilter, getTextureObjectHandle, getUWrap, getVWrap, setAnisotropicFilter, setFilter, setWrap, unsafeSetAnisotropicFilter, unsafeSetAnisotropicFilter, unsafeSetFilter, unsafeSetFilter, unsafeSetWrap, unsafeSetWrap, uploadImageData, uploadImageData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • KTexture

      public KTexture(com.badlogic.gdx.files.FileHandle file)
      Create good quality texture with mipmap.
      Parameters:
      file - file to load texture from.
    • KTexture

      public KTexture(com.badlogic.gdx.graphics.Pixmap pixmap)
      Create good quality texture with mipmap.
      Parameters:
      pixmap - pixmap to create texture from.