public class Cubemap
extends net.minecraft.client.renderer.texture.SimpleTexture
| Modifier and Type | Field and Description |
|---|---|
java.nio.ByteBuffer[] |
buffers |
protected static java.util.HashMap<net.minecraft.util.ResourceLocation,Cubemap> |
cubemaps |
int |
height |
net.minecraft.util.ResourceLocation |
resourceLoc |
int |
sqr |
int |
width |
| Constructor and Description |
|---|
Cubemap(net.minecraft.util.ResourceLocation resLoc) |
| Modifier and Type | Method and Description |
|---|---|
static void |
begin(net.minecraft.util.ResourceLocation resLoc)
runs the OpenGL that enables the cubemap.
|
static void |
debugResourceStuff(net.minecraft.util.ResourceLocation resLoc) |
void |
end()
Performs the necessary steps to ensure that the next thing rendered does not also
have a
CubeMap applied to it, assuming it isn't supposed to. |
protected void |
initBuffers(java.awt.image.BufferedImage fullImg,
java.lang.String fileLoc) |
protected void |
newBinding() |
void |
start() |
java.lang.String |
toString() |
getTextureImage, loadpublic int sqr
public int width
public int height
public final java.nio.ByteBuffer[] buffers
protected static java.util.HashMap<net.minecraft.util.ResourceLocation,Cubemap> cubemaps
public final net.minecraft.util.ResourceLocation resourceLoc
public Cubemap(net.minecraft.util.ResourceLocation resLoc)
throws java.io.IOException
resLoc - A ResourceLocation denoting the location of the Image file.java.io.IOException - If the file could not be found, or if the width-to-height ratio is not 3:4protected void initBuffers(java.awt.image.BufferedImage fullImg,
java.lang.String fileLoc)
throws java.io.IOException
java.io.IOExceptionpublic static void begin(net.minecraft.util.ResourceLocation resLoc)
resLoc - - the name of the cubemap, this would be the same name that was used in "preloadCubemap"protected void newBinding()
public void start()
public void end()
CubeMap applied to it, assuming it isn't supposed to.public static void debugResourceStuff(net.minecraft.util.ResourceLocation resLoc)
public java.lang.String toString()
toString in class java.lang.Object