Class GlStateManager
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.opengl.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)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GlStateManager.TexGen
-
Constructor Summary
Constructors Constructor Description GlStateManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
alphaFunc(int func, float ref)
static void
bindTexture(int texture)
static void
blendFunc(int srcFactor, int dstFactor)
static void
callList(int list)
static void
clear(int mask)
static void
clearColor(float red, float green, float blue, float alpha)
static void
clearDepth(float depth)
static void
color(float colorRed, float colorGreen, float colorBlue)
static void
color(float colorRed, float colorGreen, float colorBlue, float colorAlpha)
static void
colorLogicOp(int opcode)
static void
colorMask(boolean red, boolean green, boolean blue, boolean alpha)
static void
cullFace(int mode)
static void
deleteTexture(int texture)
static void
depthFunc(int depthFunc)
static void
depthMask(boolean flagIn)
static void
disableAlpha()
static void
disableBlend()
static void
disableColorLogic()
static void
disableColorMaterial()
static void
disableCull()
static void
disableDepth()
static void
disableFog()
static void
disableLighting()
static void
disableMCLight(int light)
static void
disableOverlayFramebufferBlending()
static void
disablePolygonOffset()
static void
disableRescaleNormal()
static void
disableShaderBlendAdd()
static void
disableTexGen()
static void
disableTexture2D()
static void
doPolygonOffset(float factor, float units)
static void
enableAlpha()
static void
enableBlend()
static void
enableColorLogic()
static void
enableColorMaterial()
static void
enableCull()
static void
enableDepth()
static void
enableFog()
static void
enableLighting()
static void
enableMCLight(int light, float diffuse, double dirX, double dirY, double dirZ, double dirW)
static void
enableOverlayFramebufferBlending()
static void
enablePolygonOffset()
static void
enableRescaleNormal()
static void
enableShaderBlendAdd()
static void
enableTexGen()
static void
enableTexture2D()
static void
func_179105_a(GlStateManager.TexGen coord, int plane, FloatBuffer vector)
static int
generateTexture()
static void
getFloat(int pname, float[] params)
static int
getTextureBound()
static void
gluPerspective(float fovy, float aspect, float zNear, float zFar)
static void
gluUnProject(float p1, float p2, float p3, float[] modelview, float[] projection, int[] viewport, float[] objectcoords)
static void
loadIdentity()
static void
matrixMode(int mode)
static void
multMatrix(float[] matrix)
static void
ortho(double left, double right, double bottom, double top, double zNear, double zFar)
static void
popLightCoords()
static void
popMatrix()
static void
pushLightCoords()
static void
pushMatrix()
static void
recompileShaders()
static void
resetColor()
static void
rotate(float angle, float x, float y, float z)
static void
scale(double x, double y, double z)
static void
scale(float x, float y, float z)
static void
setActiveTexture(int texture)
static void
setFog(int param)
static void
setFogDensity(float param)
static void
setFogEnd(float param)
static void
setFogStart(float param)
static void
setMCLightAmbient(float r, float g, float b)
static void
setShaderBlendAdd(float r, float g, float b, float a)
static void
setShaderBlendSrc(float r, float g, float b, float a)
static void
shadeModel(int mode)
static void
texCoords2D(float x, float y)
static void
texGen(GlStateManager.TexGen coord, int source)
static void
translate(double x, double y, double z)
static void
translate(float x, float y, float z)
static void
tryBlendFuncSeparate(int srcFactor, int dstFactor, int srcFactorAlpha, int dstFactorAlpha)
static void
viewport(int x, int y, int w, int h)
-
-
-
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()
-
texGen
public static final void texGen(GlStateManager.TexGen coord, int source)
-
func_179105_a
public static final void func_179105_a(GlStateManager.TexGen coord, int plane, FloatBuffer vector)
-
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()
-
-