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 final Matrix4fStackprivate static final AtomicLongprivate static final AtomicBooleanprivate static Matrix4fprivate static ProjectionTypeprivate static final ConcurrentLinkedQueue<RenderCall> private static final Tesselatorprivate static Threadprivate static Matrix4fprivate static ProjectionTypeprivate static CompiledShaderProgramprivate static final float[]private static FogParametersprivate static floatprivate static floatprivate static final Vector3f[]private static floatprivate static final int[]private static final RenderSystem.AutoStorageIndexBufferprivate static final RenderSystem.AutoStorageIndexBufferprivate static final RenderSystem.AutoStorageIndexBufferprivate static Matrix4f -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidactiveTexture(int texture) static 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) static voidclearColor(float red, float green, float blue, float alpha) static voidclearDepth(double depth) static voidstatic 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 window, TracyFrameCapture tracyFrameCapture) static Stringstatic Stringstatic Stringstatic Matrix4fstatic Matrix4fStackstatic Matrix4fstatic ProjectionTypegetSequentialBuffer(VertexFormat.Mode formatMode) static CompiledShaderProgramstatic float[]static FogParametersstatic floatstatic floatstatic floatstatic intgetShaderTexture(int shaderTexture) static voidstatic Matrix4fstatic 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 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 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 voidsetErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI callback) static voidsetProjectionMatrix(Matrix4f projectionMatrix, ProjectionType projectionType) static voidsetShader(CompiledShaderProgram shader) static CompiledShaderProgramsetShader(ShaderProgram shader) static voidsetShaderColor(float red, float green, float blue, float alpha) static voidsetShaderFog(FogParameters shaderFog) static voidsetShaderGameTime(long tickTime, float partialTicks) static voidsetShaderGlintAlpha(double shaderGlintAlpha) static voidsetShaderGlintAlpha(float shaderGlintAlpha) static voidsetShaderLights(Vector3f lightingVector0, Vector3f lightingVector1) static voidsetShaderTexture(int shaderTexture, int textureId) static voidsetShaderTexture(int shaderTexture, ResourceLocation textureId) static voidsetTextureMatrix(Matrix4f textureMatrix) static voidsetupDefaultState(int x, int y, int width, int height) static voidsetupGui3DDiffuseLighting(Vector3f lightingVector1, Vector3f lightingVector2) static voidsetupGuiFlatDiffuseLighting(Vector3f lightingVector1, Vector3f lightingVector2) static voidsetupLevelDiffuseLighting(Vector3f lightingVector0, Vector3f lightingVector1) static voidsetupOverlayColor(int textureId, int color) static voidstatic 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
-
savedProjectionMatrix
-
projectionType
-
savedProjectionType
-
modelViewStack
-
textureMatrix
-
shaderTextures
private static final int[] shaderTextures -
shaderColor
private static final float[] shaderColor -
shaderGlintAlpha
private static float shaderGlintAlpha -
shaderFog
-
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
-
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) -
setShaderFog
-
getShaderFog
-
setShaderGlintAlpha
public static void setShaderGlintAlpha(double shaderGlintAlpha) -
setShaderGlintAlpha
public static void setShaderGlintAlpha(float shaderGlintAlpha) -
getShaderGlintAlpha
public static float getShaderGlintAlpha() -
setShaderLights
-
setupShaderLights
-
setShaderColor
public 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 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
-
setupGuiFlatDiffuseLighting
-
setupGui3DDiffuseLighting
-
beginInitialization
public static void beginInitialization() -
finishInitialization
public static void finishInitialization() -
renderThreadTesselator
-
defaultBlendFunc
public static void defaultBlendFunc() -
setShader
-
setShader
-
clearShader
public static void clearShader() -
getShader
-
setShaderTexture
-
setShaderTexture
public static void setShaderTexture(int shaderTexture, int textureId) -
getShaderTexture
public static int getShaderTexture(int shaderTexture) -
setProjectionMatrix
-
setTextureMatrix
-
resetTextureMatrix
public static void resetTextureMatrix() -
backupProjectionMatrix
public static void backupProjectionMatrix() -
restoreProjectionMatrix
public static void restoreProjectionMatrix() -
getProjectionMatrix
-
getModelViewMatrix
-
getModelViewStack
-
getTextureMatrix
-
getSequentialBuffer
-
setShaderGameTime
public static void setShaderGameTime(long tickTime, float partialTicks) -
getShaderGameTime
public static float getShaderGameTime() -
getProjectionType
-
backupGlState
-
restoreGlState
-