Package net.minecraft.src
Class OpenGlHelper
java.lang.Object
net.minecraft.src.OpenGlHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intAn OpenGL constant corresponding to GL_TEXTURE0, used when setting data pertaining to auxiliary OpenGL texture units.static intAn OpenGL constant corresponding to GL_TEXTURE1, used when setting data pertaining to auxiliary OpenGL texture units. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidInitializes the texture constants to be used when rendering lightmap valuesstatic voidsetActiveTexture(int par0) Sets the current lightmap texture to the specified OpenGL constantstatic voidsetClientActiveTexture(int par0) Sets the current lightmap texture to the specified OpenGL constantstatic voidsetLightmapTextureCoords(int par0, float par1, float par2) Sets the current coordinates of the given lightmap texture
-
Field Details
-
defaultTexUnit
public static int defaultTexUnitAn OpenGL constant corresponding to GL_TEXTURE0, used when setting data pertaining to auxiliary OpenGL texture units. -
lightmapTexUnit
public static int lightmapTexUnitAn OpenGL constant corresponding to GL_TEXTURE1, used when setting data pertaining to auxiliary OpenGL texture units.
-
-
Constructor Details
-
OpenGlHelper
public OpenGlHelper()
-
-
Method Details
-
initializeTextures
public static void initializeTextures()Initializes the texture constants to be used when rendering lightmap values -
setActiveTexture
public static void setActiveTexture(int par0) Sets the current lightmap texture to the specified OpenGL constant -
setClientActiveTexture
public static void setClientActiveTexture(int par0) Sets the current lightmap texture to the specified OpenGL constant -
setLightmapTextureCoords
public static void setLightmapTextureCoords(int par0, float par1, float par2) Sets the current coordinates of the given lightmap texture
-