public class ThreadDownloadImageData extends SimpleTexture
Modifier and Type | Field and Description |
---|---|
private java.awt.image.BufferedImage |
bufferedImage |
private java.io.File |
cacheFile |
private IImageBuffer |
imageBuffer |
private java.lang.Thread |
imageThread |
private java.lang.String |
imageUrl |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static java.util.concurrent.atomic.AtomicInteger |
TEXTURE_DOWNLOADER_THREAD_ID |
private boolean |
textureUploaded |
textureLocation
blur, blurLast, glTextureId, mipmap, mipmapLast
Constructor and Description |
---|
ThreadDownloadImageData(java.io.File cacheFileIn,
java.lang.String imageUrlIn,
ResourceLocation textureResourceLocation,
IImageBuffer imageBufferIn) |
Modifier and Type | Method and Description |
---|---|
private void |
checkTextureUploaded() |
int |
getGlTextureId() |
void |
loadTexture(IResourceManager resourceManager) |
protected void |
loadTextureFromServer() |
void |
setBufferedImage(java.awt.image.BufferedImage bufferedImageIn) |
deleteGlTexture, restoreLastBlurMipmap, setBlurMipmap, setBlurMipmapDirect
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.concurrent.atomic.AtomicInteger TEXTURE_DOWNLOADER_THREAD_ID
@Nullable private final java.io.File cacheFile
private final java.lang.String imageUrl
@Nullable private final IImageBuffer imageBuffer
@Nullable private java.awt.image.BufferedImage bufferedImage
@Nullable private java.lang.Thread imageThread
private boolean textureUploaded
public ThreadDownloadImageData(@Nullable java.io.File cacheFileIn, java.lang.String imageUrlIn, ResourceLocation textureResourceLocation, @Nullable IImageBuffer imageBufferIn)
private void checkTextureUploaded()
public int getGlTextureId()
getGlTextureId
in interface ITextureObject
getGlTextureId
in class AbstractTexture
public void setBufferedImage(java.awt.image.BufferedImage bufferedImageIn)
public void loadTexture(IResourceManager resourceManager) throws java.io.IOException
loadTexture
in interface ITextureObject
loadTexture
in class SimpleTexture
java.io.IOException
protected void loadTextureFromServer()