Class RenderSystem

java.lang.Object
com.mojang.blaze3d.systems.RenderSystem

public class RenderSystem extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • recordingQueue

      private static final ConcurrentLinkedQueue<IRenderCall> recordingQueue
    • RENDER_THREAD_TESSELATOR

      private static final Tessellator RENDER_THREAD_TESSELATOR
    • DEFAULTALPHACUTOFF

      public static final float DEFAULTALPHACUTOFF
      See Also:
    • MINIMUM_ATLAS_TEXTURE_SIZE

      private static final int MINIMUM_ATLAS_TEXTURE_SIZE
      See Also:
    • isReplayingQueue

      private static boolean isReplayingQueue
    • gameThread

      private static Thread gameThread
    • renderThread

      private static Thread renderThread
    • MAX_SUPPORTED_TEXTURE_SIZE

      private static int MAX_SUPPORTED_TEXTURE_SIZE
    • isInInit

      private static boolean isInInit
    • lastDrawTime

      private static double lastDrawTime
  • 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_initGameThread_0_)
    • isOnGameThread

      public static boolean isOnGameThread()
    • isOnGameThreadOrInit

      public static boolean isOnGameThreadOrInit()
    • assertThread

      public static void assertThread(Supplier<Boolean> p_assertThread_0_)
    • isInInitPhase

      public static boolean isInInitPhase()
    • recordRenderCall

      public static void recordRenderCall(IRenderCall p_recordRenderCall_0_)
    • flipFrame

      public static void flipFrame(long p_flipFrame_0_)
    • replayQueue

      public static void replayQueue()
    • limitDisplayFPS

      public static void limitDisplayFPS(int p_limitDisplayFPS_0_)
    • pushLightingAttributes

      @Deprecated public static void pushLightingAttributes()
      Deprecated.
    • pushTextureAttributes

      @Deprecated public static void pushTextureAttributes()
      Deprecated.
    • popAttributes

      @Deprecated public static void popAttributes()
      Deprecated.
    • disableAlphaTest

      @Deprecated public static void disableAlphaTest()
      Deprecated.
    • enableAlphaTest

      @Deprecated public static void enableAlphaTest()
      Deprecated.
    • alphaFunc

      @Deprecated public static void alphaFunc(int p_alphaFunc_0_, float p_alphaFunc_1_)
      Deprecated.
    • enableLighting

      @Deprecated public static void enableLighting()
      Deprecated.
    • disableLighting

      @Deprecated public static void disableLighting()
      Deprecated.
    • enableColorMaterial

      @Deprecated public static void enableColorMaterial()
      Deprecated.
    • disableColorMaterial

      @Deprecated public static void disableColorMaterial()
      Deprecated.
    • colorMaterial

      @Deprecated public static void colorMaterial(int p_colorMaterial_0_, int p_colorMaterial_1_)
      Deprecated.
    • normal3f

      @Deprecated public static void normal3f(float p_normal3f_0_, float p_normal3f_1_, float p_normal3f_2_)
      Deprecated.
    • disableDepthTest

      public static void disableDepthTest()
    • enableDepthTest

      public static void enableDepthTest()
    • enableScissor

      public static void enableScissor(int p_enableScissor_0_, int p_enableScissor_1_, int p_enableScissor_2_, int p_enableScissor_3_)
    • disableScissor

      public static void disableScissor()
    • depthFunc

      public static void depthFunc(int p_depthFunc_0_)
    • depthMask

      public static void depthMask(boolean p_depthMask_0_)
    • enableBlend

      public static void enableBlend()
    • disableBlend

      public static void disableBlend()
    • blendFunc

      public static void blendFunc(GlStateManager.SourceFactor p_blendFunc_0_, GlStateManager.DestFactor p_blendFunc_1_)
    • blendFunc

      public static void blendFunc(int p_blendFunc_0_, int p_blendFunc_1_)
    • blendFuncSeparate

      public static void blendFuncSeparate(GlStateManager.SourceFactor p_blendFuncSeparate_0_, GlStateManager.DestFactor p_blendFuncSeparate_1_, GlStateManager.SourceFactor p_blendFuncSeparate_2_, GlStateManager.DestFactor p_blendFuncSeparate_3_)
    • blendFuncSeparate

      public static void blendFuncSeparate(int p_blendFuncSeparate_0_, int p_blendFuncSeparate_1_, int p_blendFuncSeparate_2_, int p_blendFuncSeparate_3_)
    • blendEquation

      public static void blendEquation(int p_blendEquation_0_)
    • blendColor

      public static void blendColor(float p_blendColor_0_, float p_blendColor_1_, float p_blendColor_2_, float p_blendColor_3_)
    • enableFog

      @Deprecated public static void enableFog()
      Deprecated.
    • disableFog

      @Deprecated public static void disableFog()
      Deprecated.
    • fogMode

      @Deprecated public static void fogMode(GlStateManager.FogMode p_fogMode_0_)
      Deprecated.
    • fogMode

      @Deprecated public static void fogMode(int p_fogMode_0_)
      Deprecated.
    • fogDensity

      @Deprecated public static void fogDensity(float p_fogDensity_0_)
      Deprecated.
    • fogStart

      @Deprecated public static void fogStart(float p_fogStart_0_)
      Deprecated.
    • fogEnd

      @Deprecated public static void fogEnd(float p_fogEnd_0_)
      Deprecated.
    • fog

      @Deprecated public static void fog(int p_fog_0_, float p_fog_1_, float p_fog_2_, float p_fog_3_, float p_fog_4_)
      Deprecated.
    • fogi

      @Deprecated public static void fogi(int p_fogi_0_, int p_fogi_1_)
      Deprecated.
    • enableCull

      public static void enableCull()
    • disableCull

      public static void disableCull()
    • polygonMode

      public static void polygonMode(int p_polygonMode_0_, int p_polygonMode_1_)
    • enablePolygonOffset

      public static void enablePolygonOffset()
    • disablePolygonOffset

      public static void disablePolygonOffset()
    • enableLineOffset

      public static void enableLineOffset()
    • disableLineOffset

      public static void disableLineOffset()
    • polygonOffset

      public static void polygonOffset(float p_polygonOffset_0_, float p_polygonOffset_1_)
    • enableColorLogicOp

      public static void enableColorLogicOp()
    • disableColorLogicOp

      public static void disableColorLogicOp()
    • logicOp

      public static void logicOp(GlStateManager.LogicOp p_logicOp_0_)
    • activeTexture

      public static void activeTexture(int p_activeTexture_0_)
    • enableTexture

      public static void enableTexture()
    • disableTexture

      public static void disableTexture()
    • texParameter

      public static void texParameter(int p_texParameter_0_, int p_texParameter_1_, int p_texParameter_2_)
    • deleteTexture

      public static void deleteTexture(int p_deleteTexture_0_)
    • bindTexture

      public static void bindTexture(int p_bindTexture_0_)
    • shadeModel

      @Deprecated public static void shadeModel(int p_shadeModel_0_)
      Deprecated.
    • enableRescaleNormal

      @Deprecated public static void enableRescaleNormal()
      Deprecated.
    • disableRescaleNormal

      @Deprecated public static void disableRescaleNormal()
      Deprecated.
    • viewport

      public static void viewport(int p_viewport_0_, int p_viewport_1_, int p_viewport_2_, int p_viewport_3_)
    • colorMask

      public static void colorMask(boolean p_colorMask_0_, boolean p_colorMask_1_, boolean p_colorMask_2_, boolean p_colorMask_3_)
    • stencilFunc

      public static void stencilFunc(int p_stencilFunc_0_, int p_stencilFunc_1_, int p_stencilFunc_2_)
    • stencilMask

      public static void stencilMask(int p_stencilMask_0_)
    • stencilOp

      public static void stencilOp(int p_stencilOp_0_, int p_stencilOp_1_, int p_stencilOp_2_)
    • clearDepth

      public static void clearDepth(double p_clearDepth_0_)
    • clearColor

      public static void clearColor(float p_clearColor_0_, float p_clearColor_1_, float p_clearColor_2_, float p_clearColor_3_)
    • clearStencil

      public static void clearStencil(int p_clearStencil_0_)
    • clear

      public static void clear(int p_clear_0_, boolean p_clear_1_)
    • matrixMode

      @Deprecated public static void matrixMode(int p_matrixMode_0_)
      Deprecated.
    • loadIdentity

      @Deprecated public static void loadIdentity()
      Deprecated.
    • pushMatrix

      @Deprecated public static void pushMatrix()
      Deprecated.
    • popMatrix

      @Deprecated public static void popMatrix()
      Deprecated.
    • ortho

      @Deprecated public static void ortho(double p_ortho_0_, double p_ortho_2_, double p_ortho_4_, double p_ortho_6_, double p_ortho_8_, double p_ortho_10_)
      Deprecated.
    • rotatef

      @Deprecated public static void rotatef(float p_rotatef_0_, float p_rotatef_1_, float p_rotatef_2_, float p_rotatef_3_)
      Deprecated.
    • scalef

      @Deprecated public static void scalef(float p_scalef_0_, float p_scalef_1_, float p_scalef_2_)
      Deprecated.
    • scaled

      @Deprecated public static void scaled(double p_scaled_0_, double p_scaled_2_, double p_scaled_4_)
      Deprecated.
    • translatef

      @Deprecated public static void translatef(float p_translatef_0_, float p_translatef_1_, float p_translatef_2_)
      Deprecated.
    • translated

      @Deprecated public static void translated(double p_translated_0_, double p_translated_2_, double p_translated_4_)
      Deprecated.
    • multMatrix

      @Deprecated public static void multMatrix(Matrix4f p_multMatrix_0_)
      Deprecated.
    • color4f

      @Deprecated public static void color4f(float p_color4f_0_, float p_color4f_1_, float p_color4f_2_, float p_color4f_3_)
      Deprecated.
    • color3f

      @Deprecated public static void color3f(float p_color3f_0_, float p_color3f_1_, float p_color3f_2_)
      Deprecated.
    • clearCurrentColor

      @Deprecated public static void clearCurrentColor()
      Deprecated.
    • drawArrays

      public static void drawArrays(int p_drawArrays_0_, int p_drawArrays_1_, int p_drawArrays_2_)
    • lineWidth

      public static void lineWidth(float p_lineWidth_0_)
    • pixelStore

      public static void pixelStore(int p_pixelStore_0_, int p_pixelStore_1_)
    • pixelTransfer

      public static void pixelTransfer(int p_pixelTransfer_0_, float p_pixelTransfer_1_)
    • readPixels

      public static void readPixels(int p_readPixels_0_, int p_readPixels_1_, int p_readPixels_2_, int p_readPixels_3_, int p_readPixels_4_, int p_readPixels_5_, ByteBuffer p_readPixels_6_)
    • getString

      public static void getString(int p_getString_0_, Consumer<String> p_getString_1_)
    • getBackendDescription

      public static String getBackendDescription()
    • getApiDescription

      public static String getApiDescription()
    • initBackendSystem

      public static LongSupplier initBackendSystem()
    • initRenderer

      public static void initRenderer(int p_initRenderer_0_, boolean p_initRenderer_1_)
    • setErrorCallback

      public static void setErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI p_setErrorCallback_0_)
    • renderCrosshair

      public static void renderCrosshair(int p_renderCrosshair_0_)
    • setupNvFogDistance

      public static void setupNvFogDistance()
    • glMultiTexCoord2f

      @Deprecated public static void glMultiTexCoord2f(int p_glMultiTexCoord2f_0_, float p_glMultiTexCoord2f_1_, float p_glMultiTexCoord2f_2_)
      Deprecated.
    • getCapsString

      public static String getCapsString()
    • setupDefaultState

      public static void setupDefaultState(int p_setupDefaultState_0_, int p_setupDefaultState_1_, int p_setupDefaultState_2_, int p_setupDefaultState_3_)
    • maxSupportedTextureSize

      public static int maxSupportedTextureSize()
    • glBindBuffer

      public static void glBindBuffer(int p_glBindBuffer_0_, Supplier<Integer> p_glBindBuffer_1_)
    • glBufferData

      public static void glBufferData(int p_glBufferData_0_, ByteBuffer p_glBufferData_1_, int p_glBufferData_2_)
    • glDeleteBuffers

      public static void glDeleteBuffers(int p_glDeleteBuffers_0_)
    • glUniform1i

      public static void glUniform1i(int p_glUniform1i_0_, int p_glUniform1i_1_)
    • glUniform1

      public static void glUniform1(int p_glUniform1_0_, IntBuffer p_glUniform1_1_)
    • glUniform2

      public static void glUniform2(int p_glUniform2_0_, IntBuffer p_glUniform2_1_)
    • glUniform3

      public static void glUniform3(int p_glUniform3_0_, IntBuffer p_glUniform3_1_)
    • glUniform4

      public static void glUniform4(int p_glUniform4_0_, IntBuffer p_glUniform4_1_)
    • glUniform1

      public static void glUniform1(int p_glUniform1_0_, FloatBuffer p_glUniform1_1_)
    • glUniform2

      public static void glUniform2(int p_glUniform2_0_, FloatBuffer p_glUniform2_1_)
    • glUniform3

      public static void glUniform3(int p_glUniform3_0_, FloatBuffer p_glUniform3_1_)
    • glUniform4

      public static void glUniform4(int p_glUniform4_0_, FloatBuffer p_glUniform4_1_)
    • glUniformMatrix2

      public static void glUniformMatrix2(int p_glUniformMatrix2_0_, boolean p_glUniformMatrix2_1_, FloatBuffer p_glUniformMatrix2_2_)
    • glUniformMatrix3

      public static void glUniformMatrix3(int p_glUniformMatrix3_0_, boolean p_glUniformMatrix3_1_, FloatBuffer p_glUniformMatrix3_2_)
    • glUniformMatrix4

      public static void glUniformMatrix4(int p_glUniformMatrix4_0_, boolean p_glUniformMatrix4_1_, FloatBuffer p_glUniformMatrix4_2_)
    • setupOutline

      public static void setupOutline()
    • teardownOutline

      public static void teardownOutline()
    • setupOverlayColor

      public static void setupOverlayColor(IntSupplier p_setupOverlayColor_0_, int p_setupOverlayColor_1_)
    • teardownOverlayColor

      public static void teardownOverlayColor()
    • setupLevelDiffuseLighting

      public static void setupLevelDiffuseLighting(Vector3f p_setupLevelDiffuseLighting_0_, Vector3f p_setupLevelDiffuseLighting_1_, Matrix4f p_setupLevelDiffuseLighting_2_)
    • setupGuiFlatDiffuseLighting

      public static void setupGuiFlatDiffuseLighting(Vector3f p_setupGuiFlatDiffuseLighting_0_, Vector3f p_setupGuiFlatDiffuseLighting_1_)
    • setupGui3DDiffuseLighting

      public static void setupGui3DDiffuseLighting(Vector3f p_setupGui3DDiffuseLighting_0_, Vector3f p_setupGui3DDiffuseLighting_1_)
    • mulTextureByProjModelView

      public static void mulTextureByProjModelView()
    • setupEndPortalTexGen

      public static void setupEndPortalTexGen()
    • clearTexGen

      public static void clearTexGen()
    • beginInitialization

      public static void beginInitialization()
    • finishInitialization

      public static void finishInitialization()
    • glGenBuffers

      public static void glGenBuffers(Consumer<Integer> p_glGenBuffers_0_)
    • renderThreadTesselator

      public static Tessellator renderThreadTesselator()
    • defaultBlendFunc

      public static void defaultBlendFunc()
    • defaultAlphaFunc

      public static void defaultAlphaFunc()
    • runAsFancy

      @Deprecated public static void runAsFancy(Runnable p_runAsFancy_0_)
      Deprecated.