Interface Texture

All Known Implementing Classes:
Texture.CppProxy

public interface Texture
  • Nested Class Summary

    Nested Classes
    Modifier and Type Interface Description
    static class  Texture.CppProxy  
  • Method Summary

    Modifier and Type Method Description
    TextureFilteringMode getFilteringMode()
    Get current filtering mode
    int getHeight()
    Get height of loaded image
    int getLayers()  
    int getLevels()
    Get number of images in mipmap chain
    boolean getTiling()
    Get current tiling setting
    int getWidth()
    Get width of loaded image
    boolean hasMips()
    Get current mipmaps generation setting
    boolean isVflipped()
    Get vertical flip setting
    void load​(java.lang.String fileName)
    Load texture from specified file
    void loadKtx​(java.lang.String fileName)  
    void setFiltering​(TextureFilteringMode type)
    Set texture filtering mode (linear by default)
    void setMips​(boolean enable)
    Enable/disable mipmaps generation (on by default)
    void setTiling​(boolean enable)
    Enable/disable texture tiling
    void setVflip​(boolean enable)
    Set vertical flip on load
  • Method Details

    • load

      void load​(@NonNull java.lang.String fileName)
      Load texture from specified file
    • loadKtx

      void loadKtx​(@NonNull java.lang.String fileName)
    • getWidth

      int getWidth()
      Get width of loaded image
    • getHeight

      int getHeight()
      Get height of loaded image
    • getLevels

      int getLevels()
      Get number of images in mipmap chain
    • getLayers

      int getLayers()
    • setMips

      void setMips​(boolean enable)
      Enable/disable mipmaps generation (on by default)
    • hasMips

      boolean hasMips()
      Get current mipmaps generation setting
    • setTiling

      void setTiling​(boolean enable)
      Enable/disable texture tiling
    • getTiling

      boolean getTiling()
      Get current tiling setting
    • setFiltering

      void setFiltering​(@NonNull TextureFilteringMode type)
      Set texture filtering mode (linear by default)
    • getFilteringMode

      @NonNull TextureFilteringMode getFilteringMode()
      Get current filtering mode
    • setVflip

      void setVflip​(boolean enable)
      Set vertical flip on load
    • isVflipped

      boolean isVflipped()
      Get vertical flip setting