Package com.mojang.blaze3d.systems
Class RenderSystem
java.lang.Object
com.mojang.blaze3d.systems.RenderSystem
- Mappings:
Namespace Name named com/mojang/blaze3d/systems/RenderSystem
intermediary com/mojang/blaze3d/systems/RenderSystem
official com/mojang/blaze3d/systems/RenderSystem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
An index buffer that holds a pre-made indices for a specific shape.(package private) static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static String
private static double
(package private) static final Logger
static final int
private static final Vector3f
private static final Matrix4fStack
private static final ArrayListDeque
<RenderSystem.Task> private static final AtomicLong
private static final AtomicBoolean
private static Matrix4f
private static ProjectionType
private static Matrix4f
private static ProjectionType
static final ScissorState
private static final float[]
private static Fog
private static float
private static float
private static final Vector3f[]
private static float
private static final GpuTexture[]
private static final RenderSystem.ShapeIndexBuffer
private static final RenderSystem.ShapeIndexBuffer
private static final RenderSystem.ShapeIndexBuffer
static final int
private static Matrix4f
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
private static IllegalStateException
static void
static void
enableScissor
(int x, int y, int width, int height) static void
static void
flipFrame
(long window, @Nullable TracyFrameCapturer capturer) static String
static String
static GpuDevice
static Vector3f
static Matrix4f
static Matrix4fStack
static Matrix4f
static ProjectionType
static GpuBuffer
getSequentialBuffer
(VertexFormat.DrawMode drawMode) static float[]
static Fog
static float
static float
static Vector3f[]
static float
static @Nullable GpuTexture
getShaderTexture
(int index) static Matrix4f
static TimeSupplier.Nanoseconds
static void
initRenderer
(long windowHandle, int debugVerbosity, boolean sync, BiFunction<Identifier, ShaderType, String> shaderSourceGetter, boolean renderDebugLabels) static void
static boolean
static boolean
static void
limitDisplayFPS
(int fps) static void
lineWidth
(float width) private static void
static void
queueFencedTask
(Runnable task) static void
static void
static void
static void
setErrorCallback
(GLFWErrorCallbackI callback) static void
setModelOffset
(float offsetX, float offsetY, float offsetZ) static void
setProjectionMatrix
(Matrix4f projectionMatrix, ProjectionType projectionType) static void
setShaderColor
(float red, float green, float blue, float alpha) static void
setShaderFog
(Fog shaderFog) static void
setShaderGameTime
(long time, float tickProgress) static void
setShaderGlintAlpha
(double shaderGlintAlpha) static void
setShaderGlintAlpha
(float shaderGlintAlpha) static void
setShaderLights
(Vector3f vector3f, Vector3f vector3f2) static void
setShaderTexture
(int index, @Nullable GpuTexture texture) static void
setTextureMatrix
(Matrix4f textureMatrix) static void
static void
setupGui3DDiffuseLighting
(Vector3f vector3f, Vector3f vector3f2) static void
setupGuiFlatDiffuseLighting
(Vector3f vector3f, Vector3f vector3f2) static void
setupLevelDiffuseLighting
(Vector3f vector3f, Vector3f vector3f2) static void
setupOverlayColor
(@Nullable GpuTexture texture) static void
-
Field Details
-
SCISSOR_STATE
-
LOGGER
-
MINIMUM_ATLAS_TEXTURE_SIZE
public static final int MINIMUM_ATLAS_TEXTURE_SIZE- See Also:
-
renderThread
-
DEVICE
-
lastDrawTime
private static double lastDrawTime -
projectionMatrix
-
savedProjectionMatrix
-
projectionType
-
savedProjectionType
-
modelViewStack
-
textureMatrix
-
TEXTURE_COUNT
public static final int TEXTURE_COUNT- See Also:
-
shaderTextures
-
shaderColor
private static final float[] shaderColor -
shaderGlintAlpha
private static float shaderGlintAlpha -
shaderFog
-
shaderLightDirections
-
shaderGameTime
private static float shaderGameTime -
modelOffset
-
shaderLineWidth
private static float shaderLineWidth -
apiDescription
-
pollEventsWaitStart
-
pollingEvents
-
QUAD_VERTEX_BUFFER
-
PENDING_FENCES
-
-
Constructor Details
-
Method Details
-
initRenderThread
public static void initRenderThread() -
isOnRenderThread
public static boolean isOnRenderThread() -
assertOnRenderThread
public static void assertOnRenderThread() -
constructThreadException
-
pollEvents
private static void pollEvents() -
isFrozenAtPollEvents
public static boolean isFrozenAtPollEvents() -
flipFrame
- Mappings:
Namespace Name Mixin selector named flipFrame
Lcom/mojang/blaze3d/systems/RenderSystem;flipFrame(JLnet/minecraft/client/util/tracy/TracyFrameCapturer;)V
intermediary flipFrame
Lcom/mojang/blaze3d/systems/RenderSystem;flipFrame(JLnet/minecraft/class_10219;)V
official flipFrame
Lcom/mojang/blaze3d/systems/RenderSystem;flipFrame(JLfii;)V
-
limitDisplayFPS
public static void limitDisplayFPS(int fps) - Mappings:
Namespace Name Mixin selector named limitDisplayFPS
Lcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
intermediary limitDisplayFPS
Lcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
official limitDisplayFPS
Lcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
-
enableScissor
public static void enableScissor(int x, int y, int width, int height) - Mappings:
Namespace Name Mixin selector named enableScissor
Lcom/mojang/blaze3d/systems/RenderSystem;enableScissor(IIII)V
intermediary enableScissor
Lcom/mojang/blaze3d/systems/RenderSystem;enableScissor(IIII)V
official enableScissor
Lcom/mojang/blaze3d/systems/RenderSystem;enableScissor(IIII)V
-
disableScissor
public static void disableScissor() -
setShaderFog
- Mappings:
Namespace Name Mixin selector named setShaderFog
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lnet/minecraft/client/render/Fog;)V
intermediary setShaderFog
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lnet/minecraft/class_9958;)V
official setShaderFog
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lgrb;)V
-
getShaderFog
-
setShaderGlintAlpha
public static void setShaderGlintAlpha(double shaderGlintAlpha) - Mappings:
Namespace Name Mixin selector named setShaderGlintAlpha
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(D)V
intermediary setShaderGlintAlpha
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(D)V
official setShaderGlintAlpha
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(D)V
-
setShaderGlintAlpha
public static void setShaderGlintAlpha(float shaderGlintAlpha) - Mappings:
Namespace Name Mixin selector named setShaderGlintAlpha
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(F)V
intermediary setShaderGlintAlpha
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(F)V
official setShaderGlintAlpha
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(F)V
-
getShaderGlintAlpha
public static float getShaderGlintAlpha() -
setShaderLights
-
getShaderLights
-
setShaderColor
public static void setShaderColor(float red, float green, float blue, float alpha) - Mappings:
Namespace Name Mixin selector named setShaderColor
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderColor(FFFF)V
intermediary setShaderColor
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderColor(FFFF)V
official setShaderColor
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderColor(FFFF)V
-
getShaderColor
public static float[] getShaderColor() -
lineWidth
public static void lineWidth(float width) - Mappings:
Namespace Name Mixin selector named lineWidth
Lcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)V
intermediary lineWidth
Lcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)V
official lineWidth
Lcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)V
-
getShaderLineWidth
public static float getShaderLineWidth() -
getBackendDescription
-
getApiDescription
-
initBackendSystem
-
initRenderer
public static void initRenderer(long windowHandle, int debugVerbosity, boolean sync, BiFunction<Identifier, ShaderType, String> shaderSourceGetter, boolean renderDebugLabels) - Mappings:
Namespace Name Mixin selector named initRenderer
Lcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
intermediary initRenderer
Lcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
official initRenderer
Lcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
-
setErrorCallback
- Mappings:
Namespace Name Mixin selector named setErrorCallback
Lcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
intermediary setErrorCallback
Lcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
official setErrorCallback
Lcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
-
setupDefaultState
public static void setupDefaultState() -
setupOverlayColor
- Mappings:
Namespace Name Mixin selector named setupOverlayColor
Lcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTexture;)V
intermediary setupOverlayColor
Lcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTexture;)V
official setupOverlayColor
Lcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTexture;)V
-
teardownOverlayColor
public static void teardownOverlayColor() -
setupLevelDiffuseLighting
-
setupGuiFlatDiffuseLighting
-
setupGui3DDiffuseLighting
-
setShaderTexture
- Mappings:
Namespace Name Mixin selector named setShaderTexture
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTexture;)V
intermediary setShaderTexture
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTexture;)V
official setShaderTexture
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTexture;)V
-
getShaderTexture
- Mappings:
Namespace Name Mixin selector named getShaderTexture
Lcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTexture;
intermediary getShaderTexture
Lcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTexture;
official getShaderTexture
Lcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTexture;
-
setProjectionMatrix
- Mappings:
Namespace Name Mixin selector named setProjectionMatrix
Lcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lorg/joml/Matrix4f;Lcom/mojang/blaze3d/systems/ProjectionType;)V
intermediary setProjectionMatrix
Lcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lorg/joml/Matrix4f;Lnet/minecraft/class_10366;)V
official setProjectionMatrix
Lcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lorg/joml/Matrix4f;Lfig;)V
-
setTextureMatrix
- Mappings:
Namespace Name Mixin selector named setTextureMatrix
Lcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)V
intermediary setTextureMatrix
Lcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)V
official setTextureMatrix
Lcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)V
-
resetTextureMatrix
public static void resetTextureMatrix() -
backupProjectionMatrix
public static void backupProjectionMatrix() -
restoreProjectionMatrix
public static void restoreProjectionMatrix() -
getProjectionMatrix
-
getModelViewMatrix
-
getModelViewStack
-
getTextureMatrix
-
getSequentialBuffer
- Mappings:
Namespace Name Mixin selector named getSequentialBuffer
Lcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;)Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;
intermediary getSequentialBuffer
Lcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;)Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;
official getSequentialBuffer
Lcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$b;)Lcom/mojang/blaze3d/systems/RenderSystem$a;
-
setShaderGameTime
public static void setShaderGameTime(long time, float tickProgress) - Mappings:
Namespace Name Mixin selector named setShaderGameTime
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGameTime(JF)V
intermediary setShaderGameTime
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGameTime(JF)V
official setShaderGameTime
Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGameTime(JF)V
-
getShaderGameTime
public static float getShaderGameTime() -
getProjectionType
-
getQuadVertexBuffer
-
setModelOffset
public static void setModelOffset(float offsetX, float offsetY, float offsetZ) - Mappings:
Namespace Name Mixin selector named setModelOffset
Lcom/mojang/blaze3d/systems/RenderSystem;setModelOffset(FFF)V
intermediary setModelOffset
Lcom/mojang/blaze3d/systems/RenderSystem;setModelOffset(FFF)V
official setModelOffset
Lcom/mojang/blaze3d/systems/RenderSystem;setModelOffset(FFF)V
-
resetModelOffset
public static void resetModelOffset() -
getModelOffset
-
queueFencedTask
- Mappings:
Namespace Name Mixin selector named queueFencedTask
Lcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
intermediary queueFencedTask
Lcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
official queueFencedTask
Lcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
-
executePendingTasks
public static void executePendingTasks() -
getDevice
-
tryGetDevice
-