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 Stringprivate static booleanprivate static double(package private) static final org.slf4j.Loggerprivate static intprivate static final intprivate static org.joml.Matrix4fprivate static final org.joml.Matrix4fStackprivate static final AtomicLongprivate static final AtomicBooleanprivate static org.joml.Matrix4fprivate static final ConcurrentLinkedQueue<RenderCall> private static final Tesselatorprivate static Threadprivate static org.joml.Matrix4fprivate static VertexSortingprivate static ShaderInstanceprivate static final float[]private static final float[]private static floatprivate static FogShapeprivate static floatprivate static floatprivate static floatprivate static final org.joml.Vector3f[]private static floatprivate static final int[]private static final RenderSystem.AutoStorageIndexBufferprivate static final RenderSystem.AutoStorageIndexBufferprivate static final RenderSystem.AutoStorageIndexBufferprivate static org.joml.Matrix4fprivate static VertexSorting -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidprivate static voidprivate 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 voidactiveTexture(int texture) static voidstatic voidstatic voidstatic voidbackupGlState(GlStateBackup state) static voidstatic voidstatic voidbindTexture(int texture) static voidbindTextureForSetup(int texture) static voidblendEquation(int mode) static voidblendFunc(int sourceFactor, int destFactor) static voidblendFunc(GlStateManager.SourceFactor sourceFactor, GlStateManager.DestFactor destFactor) static voidblendFuncSeparate(int sourceFactor, int destFactor, int sourceFactorAlpha, int destFactorAlpha) static voidblendFuncSeparate(GlStateManager.SourceFactor sourceFactor, GlStateManager.DestFactor destFactor, GlStateManager.SourceFactor sourceFactorAlpha, GlStateManager.DestFactor destFactorAlpha) static voidclear(int mask, boolean checkError) static voidclearColor(float red, float green, float blue, float alpha) static voidclearDepth(double depth) static voidclearStencil(int index) static voidcolorMask(boolean red, boolean green, boolean blue, boolean alpha) private static IllegalStateExceptionstatic voidstatic voiddeleteTexture(int texture) static voiddepthFunc(int depthFunc) static voiddepthMask(boolean flag) static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voiddrawElements(int mode, int count, int type) static voidstatic voidstatic voidstatic voidstatic voidstatic voidenableScissor(int x, int y, int width, int height) static voidstatic voidflipFrame(long windowId) static Stringstatic Stringstatic Stringstatic org.joml.Matrix4fstatic org.joml.Matrix4fStackstatic org.joml.Matrix4fgetSequentialBuffer(VertexFormat.Mode formatMode) static ShaderInstancestatic float[]static float[]static floatstatic FogShapestatic floatstatic floatstatic floatstatic floatstatic intgetShaderTexture(int shaderTexture) static voidstatic org.joml.Matrix4fstatic VertexSortingstatic voidglBindBuffer(int target, int buffer) static voidglBindVertexArray(int array) static voidglBufferData(int target, ByteBuffer data, int usage) static voidglDeleteBuffers(int buffer) static voidglDeleteVertexArrays(int array) static voidglGenBuffers(Consumer<Integer> bufferIdConsumer) static voidglGenVertexArrays(Consumer<Integer> arrayObjectIdConsumer) static voidglUniform1(int location, FloatBuffer value) static voidglUniform1(int location, IntBuffer value) static voidglUniform1i(int location, int value) static voidglUniform2(int location, FloatBuffer value) static voidglUniform2(int location, IntBuffer value) static voidglUniform3(int location, FloatBuffer value) static voidglUniform3(int location, IntBuffer value) static voidglUniform4(int location, FloatBuffer value) static voidglUniform4(int location, IntBuffer value) static voidglUniformMatrix2(int location, boolean transpose, FloatBuffer value) static voidglUniformMatrix3(int location, boolean transpose, FloatBuffer value) static voidglUniformMatrix4(int location, boolean transpose, FloatBuffer value) static TimeSource.NanoTimeSourcestatic voidinitRenderer(int debugVerbosity, boolean synchronous) static voidstatic booleanstatic booleanstatic booleanstatic voidlimitDisplayFPS(int frameRateLimit) static voidlineWidth(float p_shaderLineWidth) static voidstatic intstatic voidpixelStore(int parameterName, int parameter) private static voidstatic voidpolygonMode(int face, int mode) static voidpolygonOffset(float factor, float units) static voidreadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) static voidrecordRenderCall(RenderCall renderCall) static voidrenderCrosshair(int lineLength) static Tesselatorstatic voidstatic voidstatic voidrestoreGlState(GlStateBackup state) static voidstatic voidrunAsFancy(Runnable fancyRunnable) Deprecated.static voidsetErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI callback) static voidsetProjectionMatrix(org.joml.Matrix4f p_projectionMatrix, VertexSorting p_vertexSorting) static voidsetShader(Supplier<ShaderInstance> shaderSupplier) static voidsetShaderColor(float red, float green, float blue, float alpha) static voidsetShaderFogColor(float red, float green, float blue) static voidsetShaderFogColor(float red, float green, float blue, float alpha) static voidsetShaderFogEnd(float p_shaderFogEnd) static voidsetShaderFogShape(FogShape p_shaderFogShape) static voidsetShaderFogStart(float p_shaderFogStart) static voidsetShaderGameTime(long tickTime, float partialTicks) static voidsetShaderGlintAlpha(double shaderGlintAlpha) static voidsetShaderGlintAlpha(float p_shaderGlintAlpha) static voidsetShaderLights(org.joml.Vector3f lightingVector0, org.joml.Vector3f lightingVector1) static voidsetShaderTexture(int shaderTexture, int textureId) static voidsetShaderTexture(int shaderTexture, ResourceLocation textureId) static voidsetTextureMatrix(org.joml.Matrix4f p_textureMatrix) static voidsetupDefaultState(int x, int y, int width, int height) static voidsetupGui3DDiffuseLighting(org.joml.Vector3f lightingVector1, org.joml.Vector3f lightingVector2) static voidsetupGuiFlatDiffuseLighting(org.joml.Vector3f lightingVector1, org.joml.Vector3f lightingVector2) static voidsetupLevelDiffuseLighting(org.joml.Vector3f lightingVector0, org.joml.Vector3f lightingVector1) static voidsetupOverlayColor(int textureId, int color) static voidsetupShaderLights(ShaderInstance instance) static voidstencilFunc(int func, int ref, int mask) static voidstencilMask(int mask) static voidstencilOp(int sFail, int dpFail, int dpPass) static voidstatic voidtexParameter(int target, int parameterName, int parameter) static voidviewport(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
-