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 |
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 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 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()