Package com.mojang.blaze3d.platform
Class GlStateManager
java.lang.Object
com.mojang.blaze3d.platform.GlStateManager
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
static enum
static enum
(package private) static class
(package private) static class
static enum
(package private) static class
(package private) static class
(package private) static class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static final GlStateManager.BlendState
private static final GlStateManager.ColorLogicState
private static final GlStateManager.ColorMask
private static final GlStateManager.CullState
private static final GlStateManager.DepthState
static float
static float
private static final boolean
private static final GlStateManager.PolygonOffsetState
private static final GlStateManager.ScissorState
private static final GlStateManager.StencilState
static final int
private static final GlStateManager.TextureState[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
_activeTexture
(int p_84539_) static void
_backupGlState
(GlStateBackup state) static void
_bindTexture
(int p_84545_) static void
_blendEquation
(int p_84380_) static void
_blendFunc
(int p_84329_, int p_84330_) static void
_blendFuncSeparate
(int p_84336_, int p_84337_, int p_84338_, int p_84339_) static void
_clear
(int p_84267_, boolean p_84268_) static void
_clearColor
(float p_84319_, float p_84320_, float p_84321_, float p_84322_) static void
_clearDepth
(double p_84122_) static void
_clearStencil
(int p_84554_) static void
_colorMask
(boolean p_84301_, boolean p_84302_, boolean p_84303_, boolean p_84304_) static void
_deleteTexture
(int p_84542_) static void
_deleteTextures
(int[] p_84366_) static void
_depthFunc
(int p_84324_) static void
_depthMask
(boolean p_84299_) static void
static void
static void
static void
static void
static void
static void
_disableVertexAttribArray
(int p_84087_) static void
_drawElements
(int p_157054_, int p_157055_, int p_157056_, long p_157057_) static void
static void
static void
static void
static void
static void
static void
_enableVertexAttribArray
(int p_84566_) static int
static void
_genTextures
(int[] p_84306_) static int
static int
static int
_getInteger
(int p_84093_) static String
_getString
(int p_84090_) static void
_getTexImage
(int p_84228_, int p_84229_, int p_84230_, int p_84231_, long p_84232_) static int
_getTexLevelParameter
(int p_84385_, int p_84386_, int p_84387_) static void
_glBindAttribLocation
(int p_157062_, int p_157063_, CharSequence p_157064_) static void
_glBindBuffer
(int p_84481_, int p_84482_) static void
_glBindFramebuffer
(int p_84487_, int p_84488_) static void
_glBindRenderbuffer
(int p_157066_, int p_157067_) static void
_glBindVertexArray
(int p_157069_) static void
_glBlitFrameBuffer
(int p_84189_, int p_84190_, int p_84191_, int p_84192_, int p_84193_, int p_84194_, int p_84195_, int p_84196_, int p_84197_, int p_84198_) static void
_glBufferData
(int p_157071_, long p_157072_, int p_157073_) static void
_glBufferData
(int p_84257_, ByteBuffer p_84258_, int p_84259_) static void
_glCopyTexSubImage2D
(int p_84180_, int p_84181_, int p_84182_, int p_84183_, int p_84184_, int p_84185_, int p_84186_, int p_84187_) static void
_glDeleteBuffers
(int p_84497_) static void
_glDeleteFramebuffers
(int p_84503_) static void
_glDeleteRenderbuffers
(int p_157075_) static void
_glDeleteVertexArrays
(int p_157077_) static void
_glDrawPixels
(int p_157079_, int p_157080_, int p_157081_, int p_157082_, long p_157083_) static void
_glFramebufferRenderbuffer
(int p_157085_, int p_157086_, int p_157087_, int p_157088_) static void
_glFramebufferTexture2D
(int p_84174_, int p_84175_, int p_84176_, int p_84177_, int p_84178_) static int
static int
static int
_glGetAttribLocation
(int p_84399_, CharSequence p_84400_) static int
_glGetUniformLocation
(int p_84346_, CharSequence p_84347_) static ByteBuffer
_glMapBuffer
(int p_157091_, int p_157092_) static void
_glRenderbufferStorage
(int p_157094_, int p_157095_, int p_157096_, int p_157097_) static void
_glUniform1
(int p_84349_, FloatBuffer p_84350_) static void
_glUniform1
(int p_84264_, IntBuffer p_84265_) static void
_glUniform1i
(int p_84468_, int p_84469_) static void
_glUniform2
(int p_84402_, FloatBuffer p_84403_) static void
_glUniform2
(int p_84352_, IntBuffer p_84353_) static void
_glUniform3
(int p_84436_, FloatBuffer p_84437_) static void
_glUniform3
(int p_84405_, IntBuffer p_84406_) static void
_glUniform4
(int p_84462_, FloatBuffer p_84463_) static void
_glUniform4
(int p_84439_, IntBuffer p_84440_) static void
_glUniformMatrix2
(int p_84270_, boolean p_84271_, FloatBuffer p_84272_) static void
_glUniformMatrix3
(int p_84355_, boolean p_84356_, FloatBuffer p_84357_) static void
_glUniformMatrix4
(int p_84408_, boolean p_84409_, FloatBuffer p_84410_) static void
_glUnmapBuffer
(int p_157099_) static void
_glUseProgram
(int p_84479_) static void
_logicOp
(int p_84533_) static void
_pixelStore
(int p_84523_, int p_84524_) static void
_polygonMode
(int p_84517_, int p_84518_) static void
_polygonOffset
(float p_84137_, float p_84138_) static void
_readPixels
(int p_157101_, int p_157102_, int p_157103_, int p_157104_, int p_157105_, int p_157106_, long p_157107_) static void
_readPixels
(int p_84220_, int p_84221_, int p_84222_, int p_84223_, int p_84224_, int p_84225_, ByteBuffer p_84226_) static void
_restoreGlState
(GlStateBackup state) static void
_scissorBox
(int p_84169_, int p_84170_, int p_84171_, int p_84172_) static void
_stencilFunc
(int p_84427_, int p_84428_, int p_84429_) static void
_stencilMask
(int p_84551_) static void
_stencilOp
(int p_84453_, int p_84454_, int p_84455_) static void
_texImage2D
(int p_84210_, int p_84211_, int p_84212_, int p_84213_, int p_84214_, int p_84215_, int p_84216_, int p_84217_, IntBuffer p_84218_) static void
_texParameter
(int p_84161_, int p_84162_, float p_84163_) static void
_texParameter
(int p_84332_, int p_84333_, int p_84334_) static void
_texSubImage2D
(int p_84200_, int p_84201_, int p_84202_, int p_84203_, int p_84204_, int p_84205_, int p_84206_, int p_84207_, long p_84208_) private static void
_upload
(int p_287672_, int p_287577_, int p_287618_, int p_287777_, int p_287707_, NativeImage.Format p_287692_, IntBuffer p_287674_, Consumer<IntBuffer> p_287588_) static void
_vertexAttribIPointer
(int p_157109_, int p_157110_, int p_157111_, int p_157112_, long p_157113_) static void
_vertexAttribPointer
(int p_84239_, int p_84240_, int p_84241_, boolean p_84242_, int p_84243_, long p_84244_) static void
_viewport
(int p_84431_, int p_84432_, int p_84433_, int p_84434_) static int
static void
glActiveTexture
(int p_84515_) static void
glAttachShader
(int p_84424_, int p_84425_) static void
glBlendFuncSeparate
(int p_84389_, int p_84390_, int p_84391_, int p_84392_) static int
glCheckFramebufferStatus
(int p_84509_) static void
glCompileShader
(int p_84466_) static int
static int
glCreateShader
(int p_84448_) static void
glDeleteProgram
(int p_84485_) static void
glDeleteShader
(int p_84422_) static int
static int
static int
glGetProgrami
(int p_84382_, int p_84383_) static String
glGetProgramInfoLog
(int p_84499_, int p_84500_) static int
glGetShaderi
(int p_84450_, int p_84451_) static String
glGetShaderInfoLog
(int p_84493_, int p_84494_) static void
glLinkProgram
(int p_84491_) static void
glShaderSource
(int p_157117_, List<String> p_157118_) static void
setupGui3DDiffuseLighting
(org.joml.Vector3f p_254290_, org.joml.Vector3f p_254528_) static void
setupGuiFlatDiffuseLighting
(org.joml.Vector3f p_254237_, org.joml.Vector3f p_253658_) static void
setupLevelDiffuseLighting
(org.joml.Vector3f p_254343_, org.joml.Vector3f p_254532_, org.joml.Matrix4f p_254339_) static void
upload
(int p_287776_, int p_287602_, int p_287633_, int p_287778_, int p_287752_, NativeImage.Format p_287608_, IntBuffer p_287753_, Consumer<IntBuffer> p_287739_)
-
Field Details
-
ON_LINUX
private static final boolean ON_LINUX -
TEXTURE_COUNT
public static final int TEXTURE_COUNT- See Also:
-
BLEND
-
DEPTH
-
CULL
-
POLY_OFFSET
-
COLOR_LOGIC
-
STENCIL
-
SCISSOR
-
activeTexture
private static int activeTexture -
TEXTURES
-
COLOR_MASK
-
lastBrightnessX
public static float lastBrightnessX -
lastBrightnessY
public static float lastBrightnessY
-
-
Constructor Details
-
GlStateManager
public GlStateManager()
-
-
Method Details
-
_disableScissorTest
public static void _disableScissorTest() -
_enableScissorTest
public static void _enableScissorTest() -
_scissorBox
public static void _scissorBox(int p_84169_, int p_84170_, int p_84171_, int p_84172_) -
_disableDepthTest
public static void _disableDepthTest() -
_enableDepthTest
public static void _enableDepthTest() -
_depthFunc
public static void _depthFunc(int p_84324_) -
_depthMask
public static void _depthMask(boolean p_84299_) -
_disableBlend
public static void _disableBlend() -
_enableBlend
public static void _enableBlend() -
_blendFunc
public static void _blendFunc(int p_84329_, int p_84330_) -
_blendFuncSeparate
public static void _blendFuncSeparate(int p_84336_, int p_84337_, int p_84338_, int p_84339_) -
_blendEquation
public static void _blendEquation(int p_84380_) -
glGetProgrami
public static int glGetProgrami(int p_84382_, int p_84383_) -
glAttachShader
public static void glAttachShader(int p_84424_, int p_84425_) -
glDeleteShader
public static void glDeleteShader(int p_84422_) -
glCreateShader
public static int glCreateShader(int p_84448_) -
glShaderSource
-
glCompileShader
public static void glCompileShader(int p_84466_) -
glGetShaderi
public static int glGetShaderi(int p_84450_, int p_84451_) -
_glUseProgram
public static void _glUseProgram(int p_84479_) -
glCreateProgram
public static int glCreateProgram() -
glDeleteProgram
public static void glDeleteProgram(int p_84485_) -
glLinkProgram
public static void glLinkProgram(int p_84491_) -
_glGetUniformLocation
-
_glUniform1
-
_glUniform1i
public static void _glUniform1i(int p_84468_, int p_84469_) -
_glUniform1
-
_glUniform2
-
_glUniform2
-
_glUniform3
-
_glUniform3
-
_glUniform4
-
_glUniform4
-
_glUniformMatrix2
-
_glUniformMatrix3
-
_glUniformMatrix4
-
_glGetAttribLocation
-
_glBindAttribLocation
-
_glGenBuffers
public static int _glGenBuffers() -
_glGenVertexArrays
public static int _glGenVertexArrays() -
_glBindBuffer
public static void _glBindBuffer(int p_84481_, int p_84482_) -
_glBindVertexArray
public static void _glBindVertexArray(int p_157069_) -
_glBufferData
-
_glBufferData
public static void _glBufferData(int p_157071_, long p_157072_, int p_157073_) -
_glMapBuffer
-
_glUnmapBuffer
public static void _glUnmapBuffer(int p_157099_) -
_glDeleteBuffers
public static void _glDeleteBuffers(int p_84497_) -
_glCopyTexSubImage2D
public static void _glCopyTexSubImage2D(int p_84180_, int p_84181_, int p_84182_, int p_84183_, int p_84184_, int p_84185_, int p_84186_, int p_84187_) -
_glDeleteVertexArrays
public static void _glDeleteVertexArrays(int p_157077_) -
_glBindFramebuffer
public static void _glBindFramebuffer(int p_84487_, int p_84488_) -
_glBlitFrameBuffer
public static void _glBlitFrameBuffer(int p_84189_, int p_84190_, int p_84191_, int p_84192_, int p_84193_, int p_84194_, int p_84195_, int p_84196_, int p_84197_, int p_84198_) -
_glBindRenderbuffer
public static void _glBindRenderbuffer(int p_157066_, int p_157067_) -
_glDeleteRenderbuffers
public static void _glDeleteRenderbuffers(int p_157075_) -
_glDeleteFramebuffers
public static void _glDeleteFramebuffers(int p_84503_) -
glGenFramebuffers
public static int glGenFramebuffers() -
glGenRenderbuffers
public static int glGenRenderbuffers() -
_glRenderbufferStorage
public static void _glRenderbufferStorage(int p_157094_, int p_157095_, int p_157096_, int p_157097_) -
_glFramebufferRenderbuffer
public static void _glFramebufferRenderbuffer(int p_157085_, int p_157086_, int p_157087_, int p_157088_) -
glCheckFramebufferStatus
public static int glCheckFramebufferStatus(int p_84509_) -
_glFramebufferTexture2D
public static void _glFramebufferTexture2D(int p_84174_, int p_84175_, int p_84176_, int p_84177_, int p_84178_) -
getBoundFramebuffer
public static int getBoundFramebuffer() -
glActiveTexture
public static void glActiveTexture(int p_84515_) -
glBlendFuncSeparate
public static void glBlendFuncSeparate(int p_84389_, int p_84390_, int p_84391_, int p_84392_) -
glGetShaderInfoLog
-
glGetProgramInfoLog
-
setupLevelDiffuseLighting
public static void setupLevelDiffuseLighting(org.joml.Vector3f p_254343_, org.joml.Vector3f p_254532_, org.joml.Matrix4f p_254339_) -
setupGuiFlatDiffuseLighting
public static void setupGuiFlatDiffuseLighting(org.joml.Vector3f p_254237_, org.joml.Vector3f p_253658_) -
setupGui3DDiffuseLighting
public static void setupGui3DDiffuseLighting(org.joml.Vector3f p_254290_, org.joml.Vector3f p_254528_) -
_enableCull
public static void _enableCull() -
_disableCull
public static void _disableCull() -
_polygonMode
public static void _polygonMode(int p_84517_, int p_84518_) -
_enablePolygonOffset
public static void _enablePolygonOffset() -
_disablePolygonOffset
public static void _disablePolygonOffset() -
_polygonOffset
public static void _polygonOffset(float p_84137_, float p_84138_) -
_enableColorLogicOp
public static void _enableColorLogicOp() -
_disableColorLogicOp
public static void _disableColorLogicOp() -
_logicOp
public static void _logicOp(int p_84533_) -
_activeTexture
public static void _activeTexture(int p_84539_) -
_texParameter
public static void _texParameter(int p_84161_, int p_84162_, float p_84163_) -
_texParameter
public static void _texParameter(int p_84332_, int p_84333_, int p_84334_) -
_getTexLevelParameter
public static int _getTexLevelParameter(int p_84385_, int p_84386_, int p_84387_) -
_genTexture
public static int _genTexture() -
_genTextures
public static void _genTextures(int[] p_84306_) -
_deleteTexture
public static void _deleteTexture(int p_84542_) -
_deleteTextures
public static void _deleteTextures(int[] p_84366_) -
_bindTexture
public static void _bindTexture(int p_84545_) -
_getActiveTexture
public static int _getActiveTexture() -
_texImage2D
public static void _texImage2D(int p_84210_, int p_84211_, int p_84212_, int p_84213_, int p_84214_, int p_84215_, int p_84216_, int p_84217_, @Nullable IntBuffer p_84218_) -
_texSubImage2D
public static void _texSubImage2D(int p_84200_, int p_84201_, int p_84202_, int p_84203_, int p_84204_, int p_84205_, int p_84206_, int p_84207_, long p_84208_) -
upload
public static void upload(int p_287776_, int p_287602_, int p_287633_, int p_287778_, int p_287752_, NativeImage.Format p_287608_, IntBuffer p_287753_, Consumer<IntBuffer> p_287739_) -
_upload
private static void _upload(int p_287672_, int p_287577_, int p_287618_, int p_287777_, int p_287707_, NativeImage.Format p_287692_, IntBuffer p_287674_, Consumer<IntBuffer> p_287588_) -
_getTexImage
public static void _getTexImage(int p_84228_, int p_84229_, int p_84230_, int p_84231_, long p_84232_) -
_viewport
public static void _viewport(int p_84431_, int p_84432_, int p_84433_, int p_84434_) -
_colorMask
public static void _colorMask(boolean p_84301_, boolean p_84302_, boolean p_84303_, boolean p_84304_) -
_stencilFunc
public static void _stencilFunc(int p_84427_, int p_84428_, int p_84429_) -
_stencilMask
public static void _stencilMask(int p_84551_) -
_stencilOp
public static void _stencilOp(int p_84453_, int p_84454_, int p_84455_) -
_clearDepth
public static void _clearDepth(double p_84122_) -
_clearColor
public static void _clearColor(float p_84319_, float p_84320_, float p_84321_, float p_84322_) -
_clearStencil
public static void _clearStencil(int p_84554_) -
_clear
public static void _clear(int p_84267_, boolean p_84268_) -
_glDrawPixels
public static void _glDrawPixels(int p_157079_, int p_157080_, int p_157081_, int p_157082_, long p_157083_) -
_vertexAttribPointer
public static void _vertexAttribPointer(int p_84239_, int p_84240_, int p_84241_, boolean p_84242_, int p_84243_, long p_84244_) -
_vertexAttribIPointer
public static void _vertexAttribIPointer(int p_157109_, int p_157110_, int p_157111_, int p_157112_, long p_157113_) -
_enableVertexAttribArray
public static void _enableVertexAttribArray(int p_84566_) -
_disableVertexAttribArray
public static void _disableVertexAttribArray(int p_84087_) -
_drawElements
public static void _drawElements(int p_157054_, int p_157055_, int p_157056_, long p_157057_) -
_pixelStore
public static void _pixelStore(int p_84523_, int p_84524_) -
_readPixels
public static void _readPixels(int p_84220_, int p_84221_, int p_84222_, int p_84223_, int p_84224_, int p_84225_, ByteBuffer p_84226_) -
_readPixels
public static void _readPixels(int p_157101_, int p_157102_, int p_157103_, int p_157104_, int p_157105_, int p_157106_, long p_157107_) -
_getError
public static int _getError() -
_getString
-
_getInteger
public static int _getInteger(int p_84093_) -
_backupGlState
-
_restoreGlState
-