public class RenderEngine extends Object
Modifier and Type | Field and Description |
---|---|
static Logger |
log |
TextureMap |
textureMapBlocks |
TextureMap |
textureMapItems |
TexturePackList |
texturePack
Texture pack
|
Constructor and Description |
---|
RenderEngine(TexturePackList par1TexturePackList,
GameSettings par2GameSettings) |
Modifier and Type | Method and Description |
---|---|
int |
allocateAndSetupTexture(BufferedImage par1BufferedImage)
Copy the supplied image onto a newly-allocated OpenGL texture, returning the allocated texture name
|
void |
bindTexture(String par1Str) |
void |
createTextureFromBytes(int[] par1ArrayOfInteger,
int par2,
int par3,
int par4) |
void |
deleteTexture(int par1)
Deletes a single GL texture
|
Icon |
getMissingIcon(int par1) |
int |
getTexture(String par1Str) |
int[] |
getTextureContents(String par1Str) |
int |
getTextureForDownloadableImage(String par1Str,
String par2Str)
Takes a URL of a downloadable image and the name of the local image to be used as a fallback.
|
boolean |
hasImageData(String par1Str)
Checks if urlToImageDataMap has image data for the given key
|
ThreadDownloadImageData |
obtainImageData(String par1Str,
IImageBuffer par2IImageBuffer)
Return a ThreadDownloadImageData instance for the given URL.
|
void |
refreshTextureMaps() |
void |
refreshTextures()
Call setupTexture on all currently-loaded textures again to account for changes in rendering options
|
void |
releaseImageData(String par1Str)
Decrements the reference count for a given URL, deleting the image data if the reference count hits 0
|
void |
resetBoundTexture() |
void |
setupTexture(BufferedImage par1BufferedImage,
int par2)
Copy the supplied image onto the specified OpenGL texture
|
void |
setupTextureExt(BufferedImage par1BufferedImage,
int par2,
boolean par3,
boolean par4) |
void |
updateDynamicTextures() |
public TexturePackList texturePack
public final TextureMap textureMapBlocks
public final TextureMap textureMapItems
public static Logger log
public RenderEngine(TexturePackList par1TexturePackList, GameSettings par2GameSettings)
public int[] getTextureContents(String par1Str)
public void bindTexture(String par1Str)
public void resetBoundTexture()
public int getTexture(String par1Str)
public int allocateAndSetupTexture(BufferedImage par1BufferedImage)
public void setupTexture(BufferedImage par1BufferedImage, int par2)
public void setupTextureExt(BufferedImage par1BufferedImage, int par2, boolean par3, boolean par4)
public void createTextureFromBytes(int[] par1ArrayOfInteger, int par2, int par3, int par4)
public void deleteTexture(int par1)
public int getTextureForDownloadableImage(String par1Str, String par2Str)
public boolean hasImageData(String par1Str)
public ThreadDownloadImageData obtainImageData(String par1Str, IImageBuffer par2IImageBuffer)
public void releaseImageData(String par1Str)
public void updateDynamicTextures()
public void refreshTextures()
public void refreshTextureMaps()
public Icon getMissingIcon(int par1)