Package com.mojang.blaze3d.systems
Class RenderSystem
java.lang.Object
com.mojang.blaze3d.systems.RenderSystem
@Environment(CLIENT) public class RenderSystem extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRenderSystem.class_5590 -
Field Summary
Fields Modifier and Type Field Description static floatDEFAULTALPHACUTOFFprivate static ThreadgameThreadprivate static booleanisInInitprivate static booleanisReplayingQueueprivate static doublelastDrawTimeprivate static LoggerLOGGERprivate static intMAX_SUPPORTED_TEXTURE_SIZEprivate static intMINIMUM_ATLAS_TEXTURE_SIZEprivate static ConcurrentLinkedQueue<RenderCall>recordingQueueprivate static TessellatorRENDER_THREAD_TESSELATORprivate static ThreadrenderThreadprivate static RenderSystem.class_5590sharedSequentialprivate static RenderSystem.class_5590sharedSequentialQuad -
Constructor Summary
Constructors Constructor Description RenderSystem() -
Method Summary
Modifier and Type Method Description static voidactiveTexture(int texture)static voidalphaFunc(int func, float ref)Deprecated.static voidassertThread(Supplier<Boolean> check)static voidbeginInitialization()static voidbindTexture(int texture)static voidblendColor(float red, float green, float blue, float alpha)static voidblendEquation(int mode)static voidblendFunc(int srcFactor, int dstFactor)static voidblendFunc(GlStateManager.SrcFactor srcFactor, GlStateManager.DstFactor dstFactor)static voidblendFuncSeparate(int srcFactorRGB, int dstFactorRGB, int srcFactorAlpha, int dstFactorAlpha)static voidblendFuncSeparate(GlStateManager.SrcFactor srcFactor, GlStateManager.DstFactor dstFactor, GlStateManager.SrcFactor srcAlpha, GlStateManager.DstFactor dstAlpha)static voidclear(int mask, boolean getError)static voidclearColor(float red, float green, float blue, float alpha)static voidclearCurrentColor()Deprecated.static voidclearDepth(double depth)static voidclearStencil(int int2)static voidclearTexGen()static voidcolor3f(float red, float green, float blue)Deprecated.static voidcolor4f(float red, float green, float blue, float alpha)Deprecated.static voidcolorMask(boolean red, boolean green, boolean blue, boolean alpha)static voidcolorMaterial(int face, int mode)Deprecated.static voiddefaultAlphaFunc()static voiddefaultBlendFunc()static voiddeleteTexture(int texture)static voiddepthFunc(int func)static voiddepthMask(boolean mask)static voiddisableAlphaTest()Deprecated.static voiddisableBlend()static voiddisableColorLogicOp()static voiddisableColorMaterial()Deprecated.static voiddisableCull()static voiddisableDepthTest()static voiddisableFog()Deprecated.static voiddisableLighting()Deprecated.static voiddisableLineOffset()static voiddisablePolygonOffset()static voiddisableRescaleNormal()Deprecated.static voiddisableScissor()static voiddisableTexture()static voiddrawElements(int mode, int first, int count)static voidenableAlphaTest()Deprecated.static voidenableBlend()static voidenableColorLogicOp()static voidenableColorMaterial()Deprecated.static voidenableCull()static voidenableDepthTest()static voidenableFog()Deprecated.static voidenableLighting()Deprecated.static voidenableLineOffset()static voidenablePolygonOffset()static voidenableRescaleNormal()Deprecated.static voidenableScissor(int int2, int int3, int int4, int int5)static voidenableTexture()static voidfinishInitialization()static voidflipFrame(long window)static voidfog(int pname, float red, float green, float blue, float alpha)Deprecated.static voidfogDensity(float density)Deprecated.static voidfogEnd(float end)Deprecated.static voidfogi(int int2, int int3)Deprecated.static voidfogMode(int int2)Deprecated.static voidfogMode(GlStateManager.FogMode mode)Deprecated.static voidfogStart(float start)Deprecated.static StringgetApiDescription()static StringgetBackendDescription()static StringgetCapsString()static RenderSystem.class_5590getSequentialBuffer(VertexFormat.DrawMode drawMode, int int2)static voidgetString(int name, Consumer<String> consumer)static voidglBindBuffer(int target, Supplier<Integer> buffer)static voidglBufferData(int target, ByteBuffer data, int usage)static voidglDeleteBuffers(int buffer)static voidglGenBuffers(Consumer<Integer> consumer)static voidglMultiTexCoord2f(int texture, float s, float t)Deprecated.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 LongSupplierinitBackendSystem()static voidinitGameThread(boolean assertNotRenderThread)static voidinitRenderer(int debugVerbosity, boolean debugSync)static voidinitRenderThread()static booleanisInInitPhase()static booleanisOnGameThread()static booleanisOnGameThreadOrInit()static booleanisOnRenderThread()static booleanisOnRenderThreadOrInit()static voidlimitDisplayFPS(int fps)static voidlineWidth(float width)static voidloadIdentity()Deprecated.static voidlogicOp(GlStateManager.LogicOp op)static voidmatrixMode(int mode)Deprecated.static intmaxSupportedTextureSize()static voidmulTextureByProjModelView()static voidmultMatrix(Matrix4f matrix)Deprecated.static voidnormal3f(float nx, float ny, float nz)Deprecated.static voidortho(double l, double r, double b, double t, double n, double f)Deprecated.static voidpixelStore(int pname, int param)static voidpixelTransfer(int int2, float float2)static voidpolygonMode(int int2, int int3)static voidpolygonOffset(float factor, float units)static voidpopAttributes()Deprecated.static voidpopMatrix()Deprecated.static voidpushLightingAttributes()Deprecated.static voidpushMatrix()Deprecated.static voidpushTextureAttributes()Deprecated.static voidreadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels)static voidrecordRenderCall(RenderCall renderCall)static voidrenderCrosshair(int size)static TessellatorrenderThreadTesselator()static voidreplayQueue()static voidrotatef(float angle, float x, float y, float z)Deprecated.static voidrunAsFancy(Runnable runnable)Deprecated.static voidscaled(double x, double y, double z)Deprecated.static voidscalef(float x, float y, float z)Deprecated.static voidsetErrorCallback(GLFWErrorCallbackI callback)static voidsetupDefaultState(int x, int y, int width, int height)static voidsetupEndPortalTexGen()static voidsetupGui3DDiffuseLighting(Vec3f vec3f, Vec3f vec3f2)static voidsetupGuiFlatDiffuseLighting(Vec3f vec3f, Vec3f vec3f2)static voidsetupLevelDiffuseLighting(Vec3f vec3f, Vec3f vec3f2, Matrix4f matrix4f)static voidsetupNvFogDistance()static voidsetupOutline()static voidsetupOverlayColor(IntSupplier texture, int size)static voidshadeModel(int mode)Deprecated.static voidstencilFunc(int func, int ref, int mask)static voidstencilMask(int int2)static voidstencilOp(int sfail, int dpfail, int dppass)static voidteardownOutline()static voidteardownOverlayColor()static voidtexParameter(int target, int pname, int param)static voidtranslated(double x, double y, double z)Deprecated.static voidtranslatef(float x, float y, float z)Deprecated.static voidviewport(int x, int y, int width, int height)
-
Field Details
-
LOGGER
-
recordingQueue
-
RENDER_THREAD_TESSELATOR
-
DEFAULTALPHACUTOFF
public static final float DEFAULTALPHACUTOFF- See Also:
- Constant Field Values
-
MINIMUM_ATLAS_TEXTURE_SIZE
private static final int MINIMUM_ATLAS_TEXTURE_SIZE- See Also:
- Constant Field Values
-
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
-
-
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 assertNotRenderThread) -
isOnGameThread
public static boolean isOnGameThread() -
isOnGameThreadOrInit
public static boolean isOnGameThreadOrInit() -
assertThread
-
isInInitPhase
public static boolean isInInitPhase() -
recordRenderCall
-
flipFrame
public static void flipFrame(long window) -
replayQueue
public static void replayQueue() -
limitDisplayFPS
public static void limitDisplayFPS(int fps) -
pushLightingAttributes
Deprecated. -
pushTextureAttributes
Deprecated. -
popAttributes
Deprecated. -
disableAlphaTest
Deprecated. -
enableAlphaTest
Deprecated. -
alphaFunc
Deprecated. -
enableLighting
Deprecated. -
disableLighting
Deprecated. -
enableColorMaterial
Deprecated. -
disableColorMaterial
Deprecated. -
colorMaterial
Deprecated. -
normal3f
Deprecated. -
disableDepthTest
public static void disableDepthTest() -
enableDepthTest
public static void enableDepthTest() -
enableScissor
public static void enableScissor(int int2, int int3, int int4, int int5) -
disableScissor
public static void disableScissor() -
depthFunc
public static void depthFunc(int func) -
depthMask
public static void depthMask(boolean mask) -
enableBlend
public static void enableBlend() -
disableBlend
public static void disableBlend() -
blendFunc
public static void blendFunc(GlStateManager.SrcFactor srcFactor, GlStateManager.DstFactor dstFactor) -
blendFunc
public static void blendFunc(int srcFactor, int dstFactor) -
blendFuncSeparate
public static void blendFuncSeparate(GlStateManager.SrcFactor srcFactor, GlStateManager.DstFactor dstFactor, GlStateManager.SrcFactor srcAlpha, GlStateManager.DstFactor dstAlpha) -
blendFuncSeparate
public static void blendFuncSeparate(int srcFactorRGB, int dstFactorRGB, int srcFactorAlpha, int dstFactorAlpha) -
blendEquation
public static void blendEquation(int mode) -
blendColor
public static void blendColor(float red, float green, float blue, float alpha) -
enableFog
Deprecated. -
disableFog
Deprecated. -
fogMode
Deprecated. -
fogMode
Deprecated. -
fogDensity
Deprecated. -
fogStart
Deprecated. -
fogEnd
Deprecated. -
fog
Deprecated. -
fogi
Deprecated. -
enableCull
public static void enableCull() -
disableCull
public static void disableCull() -
polygonMode
public static void polygonMode(int int2, int int3) -
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 factor, float units) -
enableColorLogicOp
public static void enableColorLogicOp() -
disableColorLogicOp
public static void disableColorLogicOp() -
logicOp
-
activeTexture
public static void activeTexture(int texture) -
enableTexture
public static void enableTexture() -
disableTexture
public static void disableTexture() -
texParameter
public static void texParameter(int target, int pname, int param) -
deleteTexture
public static void deleteTexture(int texture) -
bindTexture
public static void bindTexture(int texture) -
shadeModel
Deprecated. -
enableRescaleNormal
Deprecated. -
disableRescaleNormal
Deprecated. -
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 int2) -
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 int2) -
clear
public static void clear(int mask, boolean getError) -
matrixMode
Deprecated. -
loadIdentity
Deprecated. -
pushMatrix
Deprecated. -
popMatrix
Deprecated. -
ortho
Deprecated. -
rotatef
Deprecated. -
scalef
Deprecated. -
scaled
Deprecated. -
translatef
Deprecated. -
translated
Deprecated. -
multMatrix
Deprecated. -
color4f
Deprecated. -
color3f
Deprecated. -
clearCurrentColor
Deprecated. -
drawElements
public static void drawElements(int mode, int first, int count) -
lineWidth
public static void lineWidth(float width) -
pixelStore
public static void pixelStore(int pname, int param) -
pixelTransfer
public static void pixelTransfer(int int2, float float2) -
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 debugSync) -
setErrorCallback
-
renderCrosshair
public static void renderCrosshair(int size) -
setupNvFogDistance
public static void setupNvFogDistance() -
glMultiTexCoord2f
Deprecated. -
getCapsString
-
setupDefaultState
public static void setupDefaultState(int x, int y, int width, int height) -
maxSupportedTextureSize
public static int maxSupportedTextureSize() -
glBindBuffer
-
glBufferData
-
glDeleteBuffers
public static void glDeleteBuffers(int buffer) -
glUniform1i
public static void glUniform1i(int location, int value) -
glUniform1
-
glUniform2
-
glUniform3
-
glUniform4
-
glUniform1
-
glUniform2
-
glUniform3
-
glUniform4
-
glUniformMatrix2
-
glUniformMatrix3
-
glUniformMatrix4
-
setupOutline
public static void setupOutline() -
teardownOutline
public static void teardownOutline() -
setupOverlayColor
-
teardownOverlayColor
public static void teardownOverlayColor() -
setupLevelDiffuseLighting
-
setupGuiFlatDiffuseLighting
-
setupGui3DDiffuseLighting
-
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
-
renderThreadTesselator
-
defaultBlendFunc
public static void defaultBlendFunc() -
defaultAlphaFunc
public static void defaultAlphaFunc() -
runAsFancy
Deprecated. -
getSequentialBuffer
public static RenderSystem.class_5590 getSequentialBuffer(VertexFormat.DrawMode drawMode, int int2)
-