001 package net.minecraft.src;
002
003 import cpw.mods.fml.common.Side;
004 import cpw.mods.fml.common.asm.SideOnly;
005 import java.awt.image.BufferedImage;
006
007 @SideOnly(Side.CLIENT)
008 public class ThreadDownloadImageData
009 {
010 /** The image data. */
011 public BufferedImage image;
012
013 /** Number of open references to this ThreadDownloadImageData */
014 public int referenceCount = 1;
015
016 /**
017 * The GL texture name associated with this image, or -1 if the texture has not been allocated
018 */
019 public int textureName = -1;
020
021 /**
022 * True if the texture has been allocated and the image copied to the texture. This is reset if global rendering
023 * settings change, so that setupTexture will be called again.
024 */
025 public boolean textureSetupComplete = false;
026
027 public ThreadDownloadImageData(String par1Str, ImageBuffer par2ImageBuffer)
028 {
029 (new ThreadDownloadImage(this, par1Str, par2ImageBuffer)).start();
030 }
031 }