Package com.banuba.sdk.scene
Class Texture.CppProxy
- java.lang.Object
-
- com.banuba.sdk.scene.Texture.CppProxy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.Texture
Texture.CppProxy
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_djinni_private_destroy()
Image
asImage()
protected void
finalize()
TextureFilteringMode
getFilteringMode()
int
getHeight()
int
getLayers()
boolean
getTiling()
int
getWidth()
boolean
hasMips()
void
load(java.lang.String fileName)
Load texture data from specified file name.void
loadByFd(int fd)
Load texture data from specified file descriptor.void
loadResource(Resource res)
void
setFiltering(TextureFilteringMode type)
set texture filtering mode param mode (texture_filtering_mode)void
setMips(boolean enable)
set mimpap generation flag.void
setTiling(boolean enable)
enable/disable texture tiling
-
-
-
Method Detail
-
_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
-
loadResource
public void loadResource(Resource res)
- Specified by:
loadResource
in interfaceTexture
-
loadByFd
public void loadByFd(int fd)
Description copied from interface:Texture
Load texture data from specified file descriptor.
-
load
public void load(java.lang.String fileName)
Description copied from interface:Texture
Load texture data from specified file name. For now only supported .png, .jpeg, .jpg, .ktx (2d) images.
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getLayers
public int getLayers()
-
setMips
public void setMips(boolean enable)
Description copied from interface:Texture
set mimpap generation flag. (affect only on ogl backend).
-
hasMips
public boolean hasMips()
-
setTiling
public void setTiling(boolean enable)
Description copied from interface:Texture
enable/disable texture tiling
-
getTiling
public boolean getTiling()
-
setFiltering
public void setFiltering(TextureFilteringMode type)
Description copied from interface:Texture
set texture filtering mode param mode (texture_filtering_mode)- Specified by:
setFiltering
in interfaceTexture
-
getFilteringMode
public TextureFilteringMode getFilteringMode()
- Specified by:
getFilteringMode
in interfaceTexture
- Returns:
- filtering mode (texture_filtering_mode)
-
-