Class Texture.CppProxy

java.lang.Object
com.banuba.sdk.scene.Texture.CppProxy
All Implemented Interfaces:
Texture
Enclosing interface:
Texture

public static final class Texture.CppProxy
extends java.lang.Object
implements Texture
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.banuba.sdk.scene.Texture

    Texture.CppProxy
  • Method Summary

    Modifier and Type Method Description
    void _djinni_private_destroy()  
    protected void finalize()  
    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

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • _djinni_private_destroy

      public void _djinni_private_destroy()
    • finalize

      protected void finalize() throws java.lang.Throwable
      Overrides:
      finalize in class java.lang.Object
      Throws:
      java.lang.Throwable
    • load

      public void load​(java.lang.String fileName)
      Description copied from interface: Texture
      Load texture from specified file
      Specified by:
      load in interface Texture
    • loadKtx

      public void loadKtx​(java.lang.String fileName)
      Specified by:
      loadKtx in interface Texture
    • getWidth

      public int getWidth()
      Description copied from interface: Texture
      Get width of loaded image
      Specified by:
      getWidth in interface Texture
    • getHeight

      public int getHeight()
      Description copied from interface: Texture
      Get height of loaded image
      Specified by:
      getHeight in interface Texture
    • getLevels

      public int getLevels()
      Description copied from interface: Texture
      Get number of images in mipmap chain
      Specified by:
      getLevels in interface Texture
    • getLayers

      public int getLayers()
      Specified by:
      getLayers in interface Texture
    • setMips

      public void setMips​(boolean enable)
      Description copied from interface: Texture
      Enable/disable mipmaps generation (on by default)
      Specified by:
      setMips in interface Texture
    • hasMips

      public boolean hasMips()
      Description copied from interface: Texture
      Get current mipmaps generation setting
      Specified by:
      hasMips in interface Texture
    • setTiling

      public void setTiling​(boolean enable)
      Description copied from interface: Texture
      Enable/disable texture tiling
      Specified by:
      setTiling in interface Texture
    • getTiling

      public boolean getTiling()
      Description copied from interface: Texture
      Get current tiling setting
      Specified by:
      getTiling in interface Texture
    • setFiltering

      public void setFiltering​(TextureFilteringMode type)
      Description copied from interface: Texture
      Set texture filtering mode (linear by default)
      Specified by:
      setFiltering in interface Texture
    • getFilteringMode

      public TextureFilteringMode getFilteringMode()
      Description copied from interface: Texture
      Get current filtering mode
      Specified by:
      getFilteringMode in interface Texture
    • setVflip

      public void setVflip​(boolean enable)
      Description copied from interface: Texture
      Set vertical flip on load
      Specified by:
      setVflip in interface Texture
    • isVflipped

      public boolean isVflipped()
      Description copied from interface: Texture
      Get vertical flip setting
      Specified by:
      isVflipped in interface Texture