Package com.banuba.sdk.scene
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 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 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
Set texture filtering mode (linear by default) -
getFilteringMode
Get current filtering mode -
setVflip
void setVflip(boolean enable)Set vertical flip on load -
isVflipped
boolean isVflipped()Get vertical flip setting
-