Package com.mojang.blaze3d.systems
Class RenderSystem
java.lang.Object
com.mojang.blaze3d.systems.RenderSystem
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static String
private static Thread
private static org.joml.Matrix3f
private static boolean
private static boolean
private static double
(package private) static final org.slf4j.Logger
private static int
private static final int
private static org.joml.Matrix4f
private static final PoseStack
private static org.joml.Matrix4f
private static final ConcurrentLinkedQueue<RenderCall>
private static final Tesselator
private static Thread
private static org.joml.Matrix4f
private static ShaderInstance
private static final float[]
private static final float[]
private static float
private static FogShape
private static float
private static float
private static final org.joml.Vector3f[]
private static float
private static final int[]
private static final RenderSystem.AutoStorageIndexBuffer
private static final RenderSystem.AutoStorageIndexBuffer
private static final RenderSystem.AutoStorageIndexBuffer
private static org.joml.Matrix4f
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
private static void
private static void
_setShaderColor
(float p_157160_, float p_157161_, float p_157162_, float p_157163_) private static void
_setShaderFogColor
(float p_157165_, float p_157166_, float p_157167_, float p_157168_) private static void
_setShaderFogEnd
(float p_157170_) private static void
_setShaderFogShape
(FogShape p_202040_) private static void
_setShaderFogStart
(float p_157172_) static void
_setShaderLights
(org.joml.Vector3f p_253618_, org.joml.Vector3f p_253929_) static void
_setShaderTexture
(int p_157177_, int p_157178_) static void
_setShaderTexture
(int p_157180_, ResourceLocation p_157181_) static void
activeTexture
(int p_69389_) static void
static void
static void
static void
static void
static void
static void
static void
static void
bindTexture
(int p_69397_) static void
bindTextureForSetup
(int p_157185_) static void
blendEquation
(int p_69404_) static void
blendFunc
(int p_69406_, int p_69407_) static void
blendFunc
(GlStateManager.SourceFactor p_69409_, GlStateManager.DestFactor p_69410_) static void
blendFuncSeparate
(int p_69412_, int p_69413_, int p_69414_, int p_69415_) static void
blendFuncSeparate
(GlStateManager.SourceFactor p_69417_, GlStateManager.DestFactor p_69418_, GlStateManager.SourceFactor p_69419_, GlStateManager.DestFactor p_69420_) static void
clear
(int p_69422_, boolean p_69423_) static void
clearColor
(float p_69425_, float p_69426_, float p_69427_, float p_69428_) static void
clearDepth
(double p_69431_) static void
clearStencil
(int p_69433_) static void
colorMask
(boolean p_69445_, boolean p_69446_, boolean p_69447_, boolean p_69448_) private static IllegalStateException
static void
static void
deleteTexture
(int p_69455_) static void
depthFunc
(int p_69457_) static void
depthMask
(boolean p_69459_) static void
static void
static void
static void
static void
static void
static void
static void
drawElements
(int p_157187_, int p_157188_, int p_157189_) static void
static void
static void
static void
static void
static void
enableScissor
(int p_69489_, int p_69490_, int p_69491_, int p_69492_) static void
static void
static void
flipFrame
(long p_69496_) static String
static String
static String
static org.joml.Matrix3f
static org.joml.Matrix4f
static PoseStack
static org.joml.Matrix4f
getSequentialBuffer
(VertexFormat.Mode p_221942_) static ShaderInstance
static float[]
static float[]
static float
static FogShape
static float
static float
static float
static int
getShaderTexture
(int p_157204_) static void
static int
getTextureId
(int p_157206_) static org.joml.Matrix4f
static void
glBindBuffer
(int p_157209_, IntSupplier p_157210_) static void
glBindVertexArray
(Supplier<Integer> p_157212_) static void
glBufferData
(int p_69526_, ByteBuffer p_69527_, int p_69528_) static void
glDeleteBuffers
(int p_69530_) static void
glDeleteVertexArrays
(int p_157214_) static void
glGenBuffers
(Consumer<Integer> p_69532_) static void
glGenVertexArrays
(Consumer<Integer> p_157216_) static void
glUniform1
(int p_69538_, FloatBuffer p_69539_) static void
glUniform1
(int p_69541_, IntBuffer p_69542_) static void
glUniform1i
(int p_69544_, int p_69545_) static void
glUniform2
(int p_69547_, FloatBuffer p_69548_) static void
glUniform2
(int p_69550_, IntBuffer p_69551_) static void
glUniform3
(int p_69553_, FloatBuffer p_69554_) static void
glUniform3
(int p_69556_, IntBuffer p_69557_) static void
glUniform4
(int p_69559_, FloatBuffer p_69560_) static void
glUniform4
(int p_69562_, IntBuffer p_69563_) static void
glUniformMatrix2
(int p_69565_, boolean p_69566_, FloatBuffer p_69567_) static void
glUniformMatrix3
(int p_69569_, boolean p_69570_, FloatBuffer p_69571_) static void
glUniformMatrix4
(int p_69573_, boolean p_69574_, FloatBuffer p_69575_) static TimeSource.NanoTimeSource
static void
initGameThread
(boolean p_69578_) static void
initRenderer
(int p_69581_, boolean p_69582_) static void
static boolean
static boolean
static boolean
static boolean
static void
limitDisplayFPS
(int p_69831_) static void
lineWidth
(float p_69833_) static void
logicOp
(GlStateManager.LogicOp p_69836_) static int
static void
pixelStore
(int p_69855_, int p_69856_) static void
polygonMode
(int p_69861_, int p_69862_) static void
polygonOffset
(float p_69864_, float p_69865_) static void
readPixels
(int p_69872_, int p_69873_, int p_69874_, int p_69875_, int p_69876_, int p_69877_, ByteBuffer p_69878_) static void
recordRenderCall
(RenderCall p_69880_) static void
renderCrosshair
(int p_69882_) static Tesselator
static void
static void
static void
static void
runAsFancy
(Runnable p_69891_) Deprecated.static void
setErrorCallback
(org.lwjgl.glfw.GLFWErrorCallbackI p_69901_) static void
setInverseViewRotationMatrix
(org.joml.Matrix3f p_253989_) static void
setProjectionMatrix
(org.joml.Matrix4f p_254282_) static void
setShader
(Supplier<ShaderInstance> p_157428_) static void
setShaderColor
(float p_157430_, float p_157431_, float p_157432_, float p_157433_) static void
setShaderFogColor
(float p_157435_, float p_157436_, float p_157437_) static void
setShaderFogColor
(float p_157439_, float p_157440_, float p_157441_, float p_157442_) static void
setShaderFogEnd
(float p_157444_) static void
setShaderFogShape
(FogShape p_202161_) static void
setShaderFogStart
(float p_157446_) static void
setShaderGameTime
(long p_157448_, float p_157449_) static void
setShaderLights
(org.joml.Vector3f p_254155_, org.joml.Vector3f p_254006_) static void
setShaderTexture
(int p_157454_, int p_157455_) static void
setShaderTexture
(int p_157457_, ResourceLocation p_157458_) static void
setTextureMatrix
(org.joml.Matrix4f p_254081_) static void
setupDefaultState
(int p_69903_, int p_69904_, int p_69905_, int p_69906_) static void
setupGui3DDiffuseLighting
(org.joml.Vector3f p_253859_, org.joml.Vector3f p_253890_) static void
setupGuiFlatDiffuseLighting
(org.joml.Vector3f p_254419_, org.joml.Vector3f p_254483_) static void
setupLevelDiffuseLighting
(org.joml.Vector3f p_254489_, org.joml.Vector3f p_254541_, org.joml.Matrix4f p_253812_) static void
setupOverlayColor
(IntSupplier p_69921_, int p_69922_) static void
setupShaderLights
(ShaderInstance p_157462_) static void
stencilFunc
(int p_69926_, int p_69927_, int p_69928_) static void
stencilMask
(int p_69930_) static void
stencilOp
(int p_69932_, int p_69933_, int p_69934_) static void
static void
texParameter
(int p_69938_, int p_69939_, int p_69940_) static void
viewport
(int p_69950_, int p_69951_, int p_69952_, int p_69953_)
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
recordingQueue
-
RENDER_THREAD_TESSELATOR
-
MINIMUM_ATLAS_TEXTURE_SIZE
private static final int MINIMUM_ATLAS_TEXTURE_SIZE- See Also:
-
isReplayingQueue
private static boolean isReplayingQueue -
gameThread
-
renderThread
-
MAX_SUPPORTED_TEXTURE_SIZE
private static int MAX_SUPPORTED_TEXTURE_SIZE -
isInInit
private static boolean isInInit -
lastDrawTime
private static double lastDrawTime -
inverseViewRotationMatrix
private static org.joml.Matrix3f inverseViewRotationMatrix -
projectionMatrix
private static org.joml.Matrix4f projectionMatrix -
savedProjectionMatrix
private static org.joml.Matrix4f savedProjectionMatrix -
modelViewStack
-
modelViewMatrix
private static org.joml.Matrix4f modelViewMatrix -
textureMatrix
private static org.joml.Matrix4f textureMatrix -
shaderTextures
private static final int[] shaderTextures -
shaderColor
private static final float[] shaderColor -
shaderFogStart
private static float shaderFogStart -
shaderFogEnd
private static float shaderFogEnd -
shaderFogColor
private static final float[] shaderFogColor -
shaderFogShape
-
shaderLightDirections
private static final org.joml.Vector3f[] shaderLightDirections -
shaderGameTime
private static float shaderGameTime -
shaderLineWidth
private static float shaderLineWidth -
apiDescription
-
shader
-
-
Constructor Details
-
RenderSystem
public RenderSystem()
-
-
Method Details
-
initRenderThread
public static void initRenderThread() -
isOnRenderThread
public static boolean isOnRenderThread() -
isOnRenderThreadOrInit
public static boolean isOnRenderThreadOrInit() -
initGameThread
public static void initGameThread(boolean p_69578_) -
isOnGameThread
public static boolean isOnGameThread() -
assertInInitPhase
public static void assertInInitPhase() -
assertOnGameThreadOrInit
public static void assertOnGameThreadOrInit() -
assertOnRenderThreadOrInit
public static void assertOnRenderThreadOrInit() -
assertOnRenderThread
public static void assertOnRenderThread() -
assertOnGameThread
public static void assertOnGameThread() -
constructThreadException
-
isInInitPhase
public static boolean isInInitPhase() -
recordRenderCall
-
flipFrame
public static void flipFrame(long p_69496_) -
replayQueue
public static void replayQueue() -
limitDisplayFPS
public static void limitDisplayFPS(int p_69831_) -
disableDepthTest
public static void disableDepthTest() -
enableDepthTest
public static void enableDepthTest() -
enableScissor
public static void enableScissor(int p_69489_, int p_69490_, int p_69491_, int p_69492_) -
disableScissor
public static void disableScissor() -
depthFunc
public static void depthFunc(int p_69457_) -
depthMask
public static void depthMask(boolean p_69459_) -
enableBlend
public static void enableBlend() -
disableBlend
public static void disableBlend() -
blendFunc
public static void blendFunc(GlStateManager.SourceFactor p_69409_, GlStateManager.DestFactor p_69410_) -
blendFunc
public static void blendFunc(int p_69406_, int p_69407_) -
blendFuncSeparate
public static void blendFuncSeparate(GlStateManager.SourceFactor p_69417_, GlStateManager.DestFactor p_69418_, GlStateManager.SourceFactor p_69419_, GlStateManager.DestFactor p_69420_) -
blendFuncSeparate
public static void blendFuncSeparate(int p_69412_, int p_69413_, int p_69414_, int p_69415_) -
blendEquation
public static void blendEquation(int p_69404_) -
enableCull
public static void enableCull() -
disableCull
public static void disableCull() -
polygonMode
public static void polygonMode(int p_69861_, int p_69862_) -
enablePolygonOffset
public static void enablePolygonOffset() -
disablePolygonOffset
public static void disablePolygonOffset() -
polygonOffset
public static void polygonOffset(float p_69864_, float p_69865_) -
enableColorLogicOp
public static void enableColorLogicOp() -
disableColorLogicOp
public static void disableColorLogicOp() -
logicOp
-
activeTexture
public static void activeTexture(int p_69389_) -
enableTexture
public static void enableTexture() -
disableTexture
public static void disableTexture() -
texParameter
public static void texParameter(int p_69938_, int p_69939_, int p_69940_) -
deleteTexture
public static void deleteTexture(int p_69455_) -
bindTextureForSetup
public static void bindTextureForSetup(int p_157185_) -
bindTexture
public static void bindTexture(int p_69397_) -
viewport
public static void viewport(int p_69950_, int p_69951_, int p_69952_, int p_69953_) -
colorMask
public static void colorMask(boolean p_69445_, boolean p_69446_, boolean p_69447_, boolean p_69448_) -
stencilFunc
public static void stencilFunc(int p_69926_, int p_69927_, int p_69928_) -
stencilMask
public static void stencilMask(int p_69930_) -
stencilOp
public static void stencilOp(int p_69932_, int p_69933_, int p_69934_) -
clearDepth
public static void clearDepth(double p_69431_) -
clearColor
public static void clearColor(float p_69425_, float p_69426_, float p_69427_, float p_69428_) -
clearStencil
public static void clearStencil(int p_69433_) -
clear
public static void clear(int p_69422_, boolean p_69423_) -
setShaderFogStart
public static void setShaderFogStart(float p_157446_) -
_setShaderFogStart
private static void _setShaderFogStart(float p_157172_) -
getShaderFogStart
public static float getShaderFogStart() -
setShaderFogEnd
public static void setShaderFogEnd(float p_157444_) -
_setShaderFogEnd
private static void _setShaderFogEnd(float p_157170_) -
getShaderFogEnd
public static float getShaderFogEnd() -
setShaderFogColor
public static void setShaderFogColor(float p_157439_, float p_157440_, float p_157441_, float p_157442_) -
setShaderFogColor
public static void setShaderFogColor(float p_157435_, float p_157436_, float p_157437_) -
_setShaderFogColor
private static void _setShaderFogColor(float p_157165_, float p_157166_, float p_157167_, float p_157168_) -
getShaderFogColor
public static float[] getShaderFogColor() -
setShaderFogShape
-
_setShaderFogShape
-
getShaderFogShape
-
setShaderLights
public static void setShaderLights(org.joml.Vector3f p_254155_, org.joml.Vector3f p_254006_) -
_setShaderLights
public static void _setShaderLights(org.joml.Vector3f p_253618_, org.joml.Vector3f p_253929_) -
setupShaderLights
-
setShaderColor
public static void setShaderColor(float p_157430_, float p_157431_, float p_157432_, float p_157433_) -
_setShaderColor
private static void _setShaderColor(float p_157160_, float p_157161_, float p_157162_, float p_157163_) -
getShaderColor
public static float[] getShaderColor() -
drawElements
public static void drawElements(int p_157187_, int p_157188_, int p_157189_) -
lineWidth
public static void lineWidth(float p_69833_) -
getShaderLineWidth
public static float getShaderLineWidth() -
pixelStore
public static void pixelStore(int p_69855_, int p_69856_) -
readPixels
public static void readPixels(int p_69872_, int p_69873_, int p_69874_, int p_69875_, int p_69876_, int p_69877_, ByteBuffer p_69878_) -
getString
-
getBackendDescription
-
getApiDescription
-
initBackendSystem
-
initRenderer
public static void initRenderer(int p_69581_, boolean p_69582_) -
setErrorCallback
public static void setErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI p_69901_) -
renderCrosshair
public static void renderCrosshair(int p_69882_) -
getCapsString
-
setupDefaultState
public static void setupDefaultState(int p_69903_, int p_69904_, int p_69905_, int p_69906_) -
maxSupportedTextureSize
public static int maxSupportedTextureSize() -
glBindBuffer
-
glBindVertexArray
-
glBufferData
-
glDeleteBuffers
public static void glDeleteBuffers(int p_69530_) -
glDeleteVertexArrays
public static void glDeleteVertexArrays(int p_157214_) -
glUniform1i
public static void glUniform1i(int p_69544_, int p_69545_) -
glUniform1
-
glUniform2
-
glUniform3
-
glUniform4
-
glUniform1
-
glUniform2
-
glUniform3
-
glUniform4
-
glUniformMatrix2
-
glUniformMatrix3
-
glUniformMatrix4
-
setupOverlayColor
-
teardownOverlayColor
public static void teardownOverlayColor() -
setupLevelDiffuseLighting
public static void setupLevelDiffuseLighting(org.joml.Vector3f p_254489_, org.joml.Vector3f p_254541_, org.joml.Matrix4f p_253812_) -
setupGuiFlatDiffuseLighting
public static void setupGuiFlatDiffuseLighting(org.joml.Vector3f p_254419_, org.joml.Vector3f p_254483_) -
setupGui3DDiffuseLighting
public static void setupGui3DDiffuseLighting(org.joml.Vector3f p_253859_, org.joml.Vector3f p_253890_) -
beginInitialization
public static void beginInitialization() -
finishInitialization
public static void finishInitialization() -
glGenBuffers
-
glGenVertexArrays
-
renderThreadTesselator
-
defaultBlendFunc
public static void defaultBlendFunc() -
runAsFancy
Deprecated. -
setShader
-
getShader
-
getTextureId
public static int getTextureId(int p_157206_) -
setShaderTexture
-
_setShaderTexture
-
setShaderTexture
public static void setShaderTexture(int p_157454_, int p_157455_) -
_setShaderTexture
public static void _setShaderTexture(int p_157177_, int p_157178_) -
getShaderTexture
public static int getShaderTexture(int p_157204_) -
setProjectionMatrix
public static void setProjectionMatrix(org.joml.Matrix4f p_254282_) -
setInverseViewRotationMatrix
public static void setInverseViewRotationMatrix(org.joml.Matrix3f p_253989_) -
setTextureMatrix
public static void setTextureMatrix(org.joml.Matrix4f p_254081_) -
resetTextureMatrix
public static void resetTextureMatrix() -
applyModelViewMatrix
public static void applyModelViewMatrix() -
backupProjectionMatrix
public static void backupProjectionMatrix() -
_backupProjectionMatrix
private static void _backupProjectionMatrix() -
restoreProjectionMatrix
public static void restoreProjectionMatrix() -
_restoreProjectionMatrix
private static void _restoreProjectionMatrix() -
getProjectionMatrix
public static org.joml.Matrix4f getProjectionMatrix() -
getInverseViewRotationMatrix
public static org.joml.Matrix3f getInverseViewRotationMatrix() -
getModelViewMatrix
public static org.joml.Matrix4f getModelViewMatrix() -
getModelViewStack
-
getTextureMatrix
public static org.joml.Matrix4f getTextureMatrix() -
getSequentialBuffer
-
setShaderGameTime
public static void setShaderGameTime(long p_157448_, float p_157449_) -
getShaderGameTime
public static float getShaderGameTime()
-