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 boolean |
textureUploaded |
private static java.util.concurrent.atomic.AtomicInteger |
threadDownloadCounter |
textureLocationblur, 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, setBlurMipmapDirectprivate static final org.apache.logging.log4j.Logger logger
private static final java.util.concurrent.atomic.AtomicInteger threadDownloadCounter
private final java.io.File cacheFile
private final java.lang.String imageUrl
private final IImageBuffer imageBuffer
private java.awt.image.BufferedImage bufferedImage
private java.lang.Thread imageThread
private boolean textureUploaded
public ThreadDownloadImageData(java.io.File cacheFileIn,
java.lang.String imageUrlIn,
ResourceLocation textureResourceLocation,
IImageBuffer imageBufferIn)
private void checkTextureUploaded()
public int getGlTextureId()
getGlTextureId in interface ITextureObjectgetGlTextureId in class AbstractTexturepublic void setBufferedImage(java.awt.image.BufferedImage bufferedImageIn)
public void loadTexture(IResourceManager resourceManager) throws java.io.IOException
loadTexture in interface ITextureObjectloadTexture in class SimpleTexturejava.io.IOExceptionprotected void loadTextureFromServer()