Package com.banuba.sdk.scene
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 modeint
getHeight()
Get height of loaded imageint
getLayers()
int
getLevels()
Get number of images in mipmap chainboolean
getTiling()
Get current tiling settingint
getWidth()
Get width of loaded imageboolean
hasMips()
Get current mipmaps generation settingboolean
isVflipped()
Get vertical flip settingvoid
load(java.lang.String fileName)
Load texture from specified filevoid
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 tilingvoid
setVflip(boolean enable)
Set vertical flip on loadMethods 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 classjava.lang.Object
- Throws:
java.lang.Throwable
-
load
public void load(java.lang.String fileName)Description copied from interface:Texture
Load texture from specified file -
loadKtx
public void loadKtx(java.lang.String fileName) -
getWidth
public int getWidth()Description copied from interface:Texture
Get width of loaded image -
getHeight
public int getHeight()Description copied from interface:Texture
Get height of loaded image -
getLevels
public int getLevels()Description copied from interface:Texture
Get number of images in mipmap chain -
getLayers
public int getLayers() -
setMips
public void setMips(boolean enable)Description copied from interface:Texture
Enable/disable mipmaps generation (on by default) -
hasMips
public boolean hasMips()Description copied from interface:Texture
Get current mipmaps generation setting -
setTiling
public void setTiling(boolean enable)Description copied from interface:Texture
Enable/disable texture tiling -
getTiling
public boolean getTiling()Description copied from interface:Texture
Get current tiling setting -
setFiltering
Description copied from interface:Texture
Set texture filtering mode (linear by default)- Specified by:
setFiltering
in interfaceTexture
-
getFilteringMode
Description copied from interface:Texture
Get current filtering mode- Specified by:
getFilteringMode
in interfaceTexture
-
setVflip
public void setVflip(boolean enable)Description copied from interface:Texture
Set vertical flip on load -
isVflipped
public boolean isVflipped()Description copied from interface:Texture
Get vertical flip setting- Specified by:
isVflipped
in interfaceTexture
-