Class GlStateManager


  • public class GlStateManager
    extends java.lang.Object
    Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Constructor Detail

      • GlStateManager

        public GlStateManager()
    • Method Detail

      • pushLightCoords

        public static final void pushLightCoords()
      • popLightCoords

        public static final void popLightCoords()
      • disableAlpha

        public static final void disableAlpha()
      • enableAlpha

        public static final void enableAlpha()
      • alphaFunc

        public static final void alphaFunc​(int func,
                                           float ref)
      • enableLighting

        public static final void enableLighting()
      • disableLighting

        public static final void disableLighting()
      • enableMCLight

        public static final void enableMCLight​(int light,
                                               float diffuse,
                                               double dirX,
                                               double dirY,
                                               double dirZ,
                                               double dirW)
      • disableMCLight

        public static final void disableMCLight​(int light)
      • setMCLightAmbient

        public static final void setMCLightAmbient​(float r,
                                                   float g,
                                                   float b)
      • enableColorMaterial

        public static final void enableColorMaterial()
      • disableColorMaterial

        public static final void disableColorMaterial()
      • disableDepth

        public static final void disableDepth()
      • enableDepth

        public static final void enableDepth()
      • depthFunc

        public static final void depthFunc​(int depthFunc)
      • depthMask

        public static final void depthMask​(boolean flagIn)
      • disableBlend

        public static final void disableBlend()
      • enableBlend

        public static final void enableBlend()
      • blendFunc

        public static final void blendFunc​(int srcFactor,
                                           int dstFactor)
      • tryBlendFuncSeparate

        public static final void tryBlendFuncSeparate​(int srcFactor,
                                                      int dstFactor,
                                                      int srcFactorAlpha,
                                                      int dstFactorAlpha)
      • enableOverlayFramebufferBlending

        public static final void enableOverlayFramebufferBlending()
      • disableOverlayFramebufferBlending

        public static final void disableOverlayFramebufferBlending()
      • setShaderBlendSrc

        public static final void setShaderBlendSrc​(float r,
                                                   float g,
                                                   float b,
                                                   float a)
      • setShaderBlendAdd

        public static final void setShaderBlendAdd​(float r,
                                                   float g,
                                                   float b,
                                                   float a)
      • enableShaderBlendAdd

        public static final void enableShaderBlendAdd()
      • disableShaderBlendAdd

        public static final void disableShaderBlendAdd()
      • enableFog

        public static final void enableFog()
      • disableFog

        public static final void disableFog()
      • setFog

        public static final void setFog​(int param)
      • setFogDensity

        public static final void setFogDensity​(float param)
      • setFogStart

        public static final void setFogStart​(float param)
      • setFogEnd

        public static final void setFogEnd​(float param)
      • enableCull

        public static final void enableCull()
      • disableCull

        public static final void disableCull()
      • cullFace

        public static final void cullFace​(int mode)
      • enablePolygonOffset

        public static final void enablePolygonOffset()
      • disablePolygonOffset

        public static final void disablePolygonOffset()
      • doPolygonOffset

        public static final void doPolygonOffset​(float factor,
                                                 float units)
      • enableColorLogic

        public static final void enableColorLogic()
      • disableColorLogic

        public static final void disableColorLogic()
      • colorLogicOp

        public static final void colorLogicOp​(int opcode)
      • enableTexGen

        public static final void enableTexGen()
      • disableTexGen

        public static final void disableTexGen()
      • setActiveTexture

        public static final void setActiveTexture​(int texture)
      • enableTexture2D

        public static final void enableTexture2D()
      • disableTexture2D

        public static final void disableTexture2D()
      • texCoords2D

        public static final void texCoords2D​(float x,
                                             float y)
      • generateTexture

        public static final int generateTexture()
      • deleteTexture

        public static final void deleteTexture​(int texture)
      • bindTexture

        public static final void bindTexture​(int texture)
      • getTextureBound

        public static final int getTextureBound()
      • shadeModel

        public static final void shadeModel​(int mode)
      • enableRescaleNormal

        public static final void enableRescaleNormal()
      • disableRescaleNormal

        public static final void disableRescaleNormal()
      • viewport

        public static final void viewport​(int x,
                                          int y,
                                          int w,
                                          int h)
      • colorMask

        public static final void colorMask​(boolean red,
                                           boolean green,
                                           boolean blue,
                                           boolean alpha)
      • clearDepth

        public static final void clearDepth​(float depth)
      • clearColor

        public static final void clearColor​(float red,
                                            float green,
                                            float blue,
                                            float alpha)
      • clear

        public static final void clear​(int mask)
      • matrixMode

        public static final void matrixMode​(int mode)
      • loadIdentity

        public static final void loadIdentity()
      • pushMatrix

        public static final void pushMatrix()
      • popMatrix

        public static final void popMatrix()
      • getFloat

        public static final void getFloat​(int pname,
                                          float[] params)
      • ortho

        public static final void ortho​(double left,
                                       double right,
                                       double bottom,
                                       double top,
                                       double zNear,
                                       double zFar)
      • rotate

        public static final void rotate​(float angle,
                                        float x,
                                        float y,
                                        float z)
      • scale

        public static final void scale​(float x,
                                       float y,
                                       float z)
      • scale

        public static final void scale​(double x,
                                       double y,
                                       double z)
      • translate

        public static final void translate​(float x,
                                           float y,
                                           float z)
      • translate

        public static final void translate​(double x,
                                           double y,
                                           double z)
      • multMatrix

        public static final void multMatrix​(float[] matrix)
      • color

        public static final void color​(float colorRed,
                                       float colorGreen,
                                       float colorBlue,
                                       float colorAlpha)
      • color

        public static final void color​(float colorRed,
                                       float colorGreen,
                                       float colorBlue)
      • resetColor

        public static final void resetColor()
      • callList

        public static final void callList​(int list)
      • gluPerspective

        public static final void gluPerspective​(float fovy,
                                                float aspect,
                                                float zNear,
                                                float zFar)
      • gluUnProject

        public static final void gluUnProject​(float p1,
                                              float p2,
                                              float p3,
                                              float[] modelview,
                                              float[] projection,
                                              int[] viewport,
                                              float[] objectcoords)
      • recompileShaders

        public static void recompileShaders()