Package com.mojang.blaze3d.systems
Class RenderSystem
java.lang.Object
com.mojang.blaze3d.systems.RenderSystem
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static String
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 org.joml.Matrix4fStack
private static final AtomicLong
private static final AtomicBoolean
private static org.joml.Matrix4f
private static final ConcurrentLinkedQueue
<RenderCall> private static final Tesselator
private static Thread
private static org.joml.Matrix4f
private static VertexSorting
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 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
private static VertexSorting
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
private static void
private static void
_setShaderColor
(float red, float green, float blue, float alpha) static void
_setShaderTexture
(int shaderTexture, int textureId) static void
_setShaderTexture
(int shaderTexture, ResourceLocation textureId) static void
activeTexture
(int texture) static void
static void
static void
static void
backupGlState
(GlStateBackup state) static void
static void
static void
bindTexture
(int texture) static void
bindTextureForSetup
(int texture) static void
blendEquation
(int mode) static void
blendFunc
(int sourceFactor, int destFactor) static void
blendFunc
(GlStateManager.SourceFactor sourceFactor, GlStateManager.DestFactor destFactor) static void
blendFuncSeparate
(int sourceFactor, int destFactor, int sourceFactorAlpha, int destFactorAlpha) static void
blendFuncSeparate
(GlStateManager.SourceFactor sourceFactor, GlStateManager.DestFactor destFactor, GlStateManager.SourceFactor sourceFactorAlpha, GlStateManager.DestFactor destFactorAlpha) static void
clear
(int mask, boolean checkError) static void
clearColor
(float red, float green, float blue, float alpha) static void
clearDepth
(double depth) static void
clearStencil
(int index) static void
colorMask
(boolean red, boolean green, boolean blue, boolean alpha) private static IllegalStateException
static void
static void
deleteTexture
(int texture) static void
depthFunc
(int depthFunc) static void
depthMask
(boolean flag) static void
static void
static void
static void
static void
static void
static void
drawElements
(int mode, int count, int type) static void
static void
static void
static void
static void
static void
enableScissor
(int x, int y, int width, int height) static void
static void
flipFrame
(long windowId) static String
static String
static String
static org.joml.Matrix4f
static org.joml.Matrix4fStack
static org.joml.Matrix4f
getSequentialBuffer
(VertexFormat.Mode formatMode) static ShaderInstance
static float[]
static float[]
static float
static FogShape
static float
static float
static float
static float
static int
getShaderTexture
(int shaderTexture) static void
static org.joml.Matrix4f
static VertexSorting
static void
glBindBuffer
(int target, int buffer) static void
glBindVertexArray
(int array) static void
glBufferData
(int target, ByteBuffer data, int usage) static void
glDeleteBuffers
(int buffer) static void
glDeleteVertexArrays
(int array) static void
glGenBuffers
(Consumer<Integer> bufferIdConsumer) static void
glGenVertexArrays
(Consumer<Integer> arrayObjectIdConsumer) static void
glUniform1
(int location, FloatBuffer value) static void
glUniform1
(int location, IntBuffer value) static void
glUniform1i
(int location, int value) static void
glUniform2
(int location, FloatBuffer value) static void
glUniform2
(int location, IntBuffer value) static void
glUniform3
(int location, FloatBuffer value) static void
glUniform3
(int location, IntBuffer value) static void
glUniform4
(int location, FloatBuffer value) static void
glUniform4
(int location, IntBuffer value) static void
glUniformMatrix2
(int location, boolean transpose, FloatBuffer value) static void
glUniformMatrix3
(int location, boolean transpose, FloatBuffer value) static void
glUniformMatrix4
(int location, boolean transpose, FloatBuffer value) static TimeSource.NanoTimeSource
static void
initRenderer
(int debugVerbosity, boolean synchronous) static void
static boolean
static boolean
static boolean
static void
limitDisplayFPS
(int frameRateLimit) static void
lineWidth
(float p_shaderLineWidth) static void
static int
static void
pixelStore
(int parameterName, int parameter) private static void
static void
polygonMode
(int face, int mode) static void
polygonOffset
(float factor, float units) static void
readPixels
(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) static void
recordRenderCall
(RenderCall renderCall) static void
renderCrosshair
(int lineLength) static Tesselator
static void
static void
static void
restoreGlState
(GlStateBackup state) static void
static void
runAsFancy
(Runnable fancyRunnable) Deprecated.static void
setErrorCallback
(org.lwjgl.glfw.GLFWErrorCallbackI callback) static void
setProjectionMatrix
(org.joml.Matrix4f p_projectionMatrix, VertexSorting p_vertexSorting) static void
setShader
(Supplier<ShaderInstance> shaderSupplier) static void
setShaderColor
(float red, float green, float blue, float alpha) static void
setShaderFogColor
(float red, float green, float blue) static void
setShaderFogColor
(float red, float green, float blue, float alpha) static void
setShaderFogEnd
(float p_shaderFogEnd) static void
setShaderFogShape
(FogShape p_shaderFogShape) static void
setShaderFogStart
(float p_shaderFogStart) static void
setShaderGameTime
(long tickTime, float partialTicks) static void
setShaderGlintAlpha
(double shaderGlintAlpha) static void
setShaderGlintAlpha
(float p_shaderGlintAlpha) static void
setShaderLights
(org.joml.Vector3f lightingVector0, org.joml.Vector3f lightingVector1) static void
setShaderTexture
(int shaderTexture, int textureId) static void
setShaderTexture
(int shaderTexture, ResourceLocation textureId) static void
setTextureMatrix
(org.joml.Matrix4f p_textureMatrix) static void
setupDefaultState
(int x, int y, int width, int height) static void
setupGui3DDiffuseLighting
(org.joml.Vector3f lightingVector1, org.joml.Vector3f lightingVector2) static void
setupGuiFlatDiffuseLighting
(org.joml.Vector3f lightingVector1, org.joml.Vector3f lightingVector2) static void
setupLevelDiffuseLighting
(org.joml.Vector3f lightingVector0, org.joml.Vector3f lightingVector1) static void
setupOverlayColor
(int textureId, int color) static void
setupShaderLights
(ShaderInstance instance) static void
stencilFunc
(int func, int ref, int mask) static void
stencilMask
(int mask) static void
stencilOp
(int sFail, int dpFail, int dpPass) static void
static void
texParameter
(int target, int parameterName, int parameter) static void
viewport
(int x, int y, int width, int height)
-
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:
-
renderThread
-
MAX_SUPPORTED_TEXTURE_SIZE
private static int MAX_SUPPORTED_TEXTURE_SIZE -
isInInit
private static boolean isInInit -
lastDrawTime
private static double lastDrawTime -
projectionMatrix
private static org.joml.Matrix4f projectionMatrix -
savedProjectionMatrix
private static org.joml.Matrix4f savedProjectionMatrix -
vertexSorting
-
savedVertexSorting
-
modelViewStack
private static final org.joml.Matrix4fStack 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 -
shaderGlintAlpha
private static float shaderGlintAlpha -
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
-
pollEventsWaitStart
-
pollingEvents
-
-
Constructor Details
-
RenderSystem
public RenderSystem()
-
-
Method Details
-
initRenderThread
public static void initRenderThread() -
isOnRenderThread
public static boolean isOnRenderThread() -
isOnRenderThreadOrInit
public static boolean isOnRenderThreadOrInit() -
assertOnRenderThreadOrInit
public static void assertOnRenderThreadOrInit() -
assertOnRenderThread
public static void assertOnRenderThread() -
constructThreadException
-
recordRenderCall
-
pollEvents
private static void pollEvents() -
isFrozenAtPollEvents
public static boolean isFrozenAtPollEvents() -
flipFrame
public static void flipFrame(long windowId) -
replayQueue
public static void replayQueue() -
limitDisplayFPS
public static void limitDisplayFPS(int frameRateLimit) -
disableDepthTest
public static void disableDepthTest() -
enableDepthTest
public static void enableDepthTest() -
enableScissor
public static void enableScissor(int x, int y, int width, int height) -
disableScissor
public static void disableScissor() -
depthFunc
public static void depthFunc(int depthFunc) -
depthMask
public static void depthMask(boolean flag) -
enableBlend
public static void enableBlend() -
disableBlend
public static void disableBlend() -
blendFunc
public static void blendFunc(GlStateManager.SourceFactor sourceFactor, GlStateManager.DestFactor destFactor) -
blendFunc
public static void blendFunc(int sourceFactor, int destFactor) -
blendFuncSeparate
public static void blendFuncSeparate(GlStateManager.SourceFactor sourceFactor, GlStateManager.DestFactor destFactor, GlStateManager.SourceFactor sourceFactorAlpha, GlStateManager.DestFactor destFactorAlpha) -
blendFuncSeparate
public static void blendFuncSeparate(int sourceFactor, int destFactor, int sourceFactorAlpha, int destFactorAlpha) -
blendEquation
public static void blendEquation(int mode) -
enableCull
public static void enableCull() -
disableCull
public static void disableCull() -
polygonMode
public static void polygonMode(int face, int mode) -
enablePolygonOffset
public static void enablePolygonOffset() -
disablePolygonOffset
public static void disablePolygonOffset() -
polygonOffset
public static void polygonOffset(float factor, float units) -
enableColorLogicOp
public static void enableColorLogicOp() -
disableColorLogicOp
public static void disableColorLogicOp() -
logicOp
-
activeTexture
public static void activeTexture(int texture) -
texParameter
public static void texParameter(int target, int parameterName, int parameter) -
deleteTexture
public static void deleteTexture(int texture) -
bindTextureForSetup
public static void bindTextureForSetup(int texture) -
bindTexture
public static void bindTexture(int texture) -
viewport
public static void viewport(int x, int y, int width, int height) -
colorMask
public static void colorMask(boolean red, boolean green, boolean blue, boolean alpha) -
stencilFunc
public static void stencilFunc(int func, int ref, int mask) -
stencilMask
public static void stencilMask(int mask) -
stencilOp
public static void stencilOp(int sFail, int dpFail, int dpPass) -
clearDepth
public static void clearDepth(double depth) -
clearColor
public static void clearColor(float red, float green, float blue, float alpha) -
clearStencil
public static void clearStencil(int index) -
clear
public static void clear(int mask, boolean checkError) -
setShaderFogStart
public static void setShaderFogStart(float p_shaderFogStart) -
getShaderFogStart
public static float getShaderFogStart() -
setShaderGlintAlpha
public static void setShaderGlintAlpha(double shaderGlintAlpha) -
setShaderGlintAlpha
public static void setShaderGlintAlpha(float p_shaderGlintAlpha) -
getShaderGlintAlpha
public static float getShaderGlintAlpha() -
setShaderFogEnd
public static void setShaderFogEnd(float p_shaderFogEnd) -
getShaderFogEnd
public static float getShaderFogEnd() -
setShaderFogColor
public static void setShaderFogColor(float red, float green, float blue, float alpha) -
setShaderFogColor
public static void setShaderFogColor(float red, float green, float blue) -
getShaderFogColor
public static float[] getShaderFogColor() -
setShaderFogShape
-
getShaderFogShape
-
setShaderLights
public static void setShaderLights(org.joml.Vector3f lightingVector0, org.joml.Vector3f lightingVector1) -
setupShaderLights
-
setShaderColor
public static void setShaderColor(float red, float green, float blue, float alpha) -
_setShaderColor
private static void _setShaderColor(float red, float green, float blue, float alpha) -
getShaderColor
public static float[] getShaderColor() -
drawElements
public static void drawElements(int mode, int count, int type) -
lineWidth
public static void lineWidth(float p_shaderLineWidth) -
getShaderLineWidth
public static float getShaderLineWidth() -
pixelStore
public static void pixelStore(int parameterName, int parameter) -
readPixels
public static void readPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) -
getString
-
getBackendDescription
-
getApiDescription
-
initBackendSystem
-
initRenderer
public static void initRenderer(int debugVerbosity, boolean synchronous) -
setErrorCallback
public static void setErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI callback) -
renderCrosshair
public static void renderCrosshair(int lineLength) -
getCapsString
-
setupDefaultState
public static void setupDefaultState(int x, int y, int width, int height) -
maxSupportedTextureSize
public static int maxSupportedTextureSize() -
glBindBuffer
public static void glBindBuffer(int target, int buffer) -
glBindVertexArray
public static void glBindVertexArray(int array) -
glBufferData
-
glDeleteBuffers
public static void glDeleteBuffers(int buffer) -
glDeleteVertexArrays
public static void glDeleteVertexArrays(int array) -
glUniform1i
public static void glUniform1i(int location, int value) -
glUniform1
-
glUniform2
-
glUniform3
-
glUniform4
-
glUniform1
-
glUniform2
-
glUniform3
-
glUniform4
-
glUniformMatrix2
-
glUniformMatrix3
-
glUniformMatrix4
-
setupOverlayColor
public static void setupOverlayColor(int textureId, int color) -
teardownOverlayColor
public static void teardownOverlayColor() -
setupLevelDiffuseLighting
public static void setupLevelDiffuseLighting(org.joml.Vector3f lightingVector0, org.joml.Vector3f lightingVector1) -
setupGuiFlatDiffuseLighting
public static void setupGuiFlatDiffuseLighting(org.joml.Vector3f lightingVector1, org.joml.Vector3f lightingVector2) -
setupGui3DDiffuseLighting
public static void setupGui3DDiffuseLighting(org.joml.Vector3f lightingVector1, org.joml.Vector3f lightingVector2) -
beginInitialization
public static void beginInitialization() -
finishInitialization
public static void finishInitialization() -
glGenBuffers
-
glGenVertexArrays
-
renderThreadTesselator
-
defaultBlendFunc
public static void defaultBlendFunc() -
runAsFancy
Deprecated. -
setShader
-
getShader
-
setShaderTexture
-
_setShaderTexture
-
setShaderTexture
public static void setShaderTexture(int shaderTexture, int textureId) -
_setShaderTexture
public static void _setShaderTexture(int shaderTexture, int textureId) -
getShaderTexture
public static int getShaderTexture(int shaderTexture) -
setProjectionMatrix
public static void setProjectionMatrix(org.joml.Matrix4f p_projectionMatrix, VertexSorting p_vertexSorting) -
setTextureMatrix
public static void setTextureMatrix(org.joml.Matrix4f p_textureMatrix) -
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() -
getModelViewMatrix
public static org.joml.Matrix4f getModelViewMatrix() -
getModelViewStack
public static org.joml.Matrix4fStack getModelViewStack() -
getTextureMatrix
public static org.joml.Matrix4f getTextureMatrix() -
getSequentialBuffer
-
setShaderGameTime
public static void setShaderGameTime(long tickTime, float partialTicks) -
getShaderGameTime
public static float getShaderGameTime() -
getVertexSorting
-
backupGlState
-
restoreGlState
-