public class DynamicTexture extends Texture implements java.lang.AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
private NativeImage |
dynamicTextureData |
blur, glTextureId, mipmap| Constructor and Description |
|---|
DynamicTexture(int widthIn,
int heightIn,
boolean clearIn) |
DynamicTexture(NativeImage nativeImageIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
NativeImage |
getTextureData() |
void |
loadTexture(IResourceManager manager) |
void |
setTextureData(NativeImage nativeImageIn) |
void |
updateDynamicTexture() |
bindTexture, deleteGlTexture, getGlTextureId, loadTexture, restoreLastBlurMipmap, setBlurMipmap, setBlurMipmapDirectprivate NativeImage dynamicTextureData
public DynamicTexture(NativeImage nativeImageIn)
public DynamicTexture(int widthIn,
int heightIn,
boolean clearIn)
public void loadTexture(IResourceManager manager) throws java.io.IOException
loadTexture in class Texturejava.io.IOExceptionpublic void updateDynamicTexture()
@Nullable public NativeImage getTextureData()
public void setTextureData(NativeImage nativeImageIn) throws java.lang.Exception
java.lang.Exceptionpublic void close()
close in interface java.lang.AutoCloseable