Class OpenGlHelper

java.lang.Object
net.minecraft.src.OpenGlHelper

public class OpenGlHelper extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
    An OpenGL constant corresponding to GL_TEXTURE0, used when setting data pertaining to auxiliary OpenGL texture units.
    static int
    An OpenGL constant corresponding to GL_TEXTURE1, used when setting data pertaining to auxiliary OpenGL texture units.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Initializes the texture constants to be used when rendering lightmap values
    static void
    setActiveTexture(int par0)
    Sets the current lightmap texture to the specified OpenGL constant
    static void
    Sets the current lightmap texture to the specified OpenGL constant
    static void
    setLightmapTextureCoords(int par0, float par1, float par2)
    Sets the current coordinates of the given lightmap texture

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • defaultTexUnit

      public static int defaultTexUnit
      An OpenGL constant corresponding to GL_TEXTURE0, used when setting data pertaining to auxiliary OpenGL texture units.
    • lightmapTexUnit

      public static int lightmapTexUnit
      An 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