类 RenderSystem
java.lang.Object
com.mojang.blaze3d.systems.RenderSystem
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static String
private static Thread
private static org.joml.Matrix3f
private static boolean
private static boolean
private static double
(专用程序包) static final org.slf4j.Logger
private static int
private static final int
private static org.joml.Matrix4f
private static final PoseStack
private static final AtomicLong
private static final AtomicBoolean
private static org.joml.Matrix4f
private static final ConcurrentLinkedQueue<RenderCall>
private static final Tesselator
private static Thread
private static org.joml.Matrix4f
private static VertexSorting
private static ShaderInstance
private static final float[]
private static final float[]
private static float
private static FogShape
private static float
private static float
private static float
private static final org.joml.Vector3f[]
private static float
private static final int[]
private static final RenderSystem.AutoStorageIndexBuffer
private static final RenderSystem.AutoStorageIndexBuffer
private static final RenderSystem.AutoStorageIndexBuffer
private static org.joml.Matrix4f
private static VertexSorting
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
private static void
private static void
_setShaderColor
(float pRed, float pGreen, float pBlue, float pAlpha) private static void
_setShaderFogColor
(float pRed, float pGreen, float pBlue, float pAlpha) private static void
_setShaderFogEnd
(float pShaderFogEnd) private static void
_setShaderFogShape
(FogShape pShaderFogShape) private static void
_setShaderFogStart
(float pShaderFogStart) private static void
_setShaderGlintAlpha
(float pShaderGlintAlpha) static void
_setShaderLights
(org.joml.Vector3f pLightingVector0, org.joml.Vector3f pLightingVector1) static void
_setShaderTexture
(int pShaderTexture, int pTextureId) static void
_setShaderTexture
(int pShaderTexture, ResourceLocation pTextureId) static void
activeTexture
(int pTexture) static void
static void
static void
static void
static void
static void
static void
static void
static void
bindTexture
(int pTexture) static void
bindTextureForSetup
(int pTexture) static void
blendEquation
(int pMode) static void
blendFunc
(int pSourceFactor, int pDestFactor) static void
blendFunc
(GlStateManager.SourceFactor pSourceFactor, GlStateManager.DestFactor pDestFactor) static void
blendFuncSeparate
(int pSourceFactor, int pDestFactor, int pSourceFactorAlpha, int pDestFactorAlpha) static void
blendFuncSeparate
(GlStateManager.SourceFactor pSourceFactor, GlStateManager.DestFactor pDestFactor, GlStateManager.SourceFactor pSourceFactorAlpha, GlStateManager.DestFactor pDestFactorAlpha) static void
clear
(int pMask, boolean pCheckError) static void
clearColor
(float pRed, float pGreen, float pBlue, float pAlpha) static void
clearDepth
(double pDepth) static void
clearStencil
(int pIndex) static void
colorMask
(boolean pRed, boolean pGreen, boolean pBlue, boolean pAlpha) private static IllegalStateException
static void
static void
deleteTexture
(int pTexture) static void
depthFunc
(int pDepthFunc) static void
depthMask
(boolean pFlag) static void
static void
static void
static void
static void
static void
static void
drawElements
(int pMode, int pCount, int pType) static void
static void
static void
static void
static void
static void
enableScissor
(int pX, int pY, int pWidth, int pHeight) static void
static void
flipFrame
(long pWindowId) static String
static String
static String
static org.joml.Matrix3f
static org.joml.Matrix4f
static PoseStack
static org.joml.Matrix4f
getSequentialBuffer
(VertexFormat.Mode pFormatMode) static ShaderInstance
static float[]
static float[]
static float
static FogShape
static float
static float
static float
static float
static int
getShaderTexture
(int pShaderTexture) static void
static org.joml.Matrix4f
static VertexSorting
static void
glBindBuffer
(int pTarget, IntSupplier pBuffer) static void
glBindVertexArray
(Supplier<Integer> pArray) static void
glBufferData
(int pTarget, ByteBuffer pData, int pUsage) static void
glDeleteBuffers
(int pBuffer) static void
glDeleteVertexArrays
(int pArray) static void
glGenBuffers
(Consumer<Integer> pBufferIdConsumer) static void
glGenVertexArrays
(Consumer<Integer> pArrayObjectIdConsumer) static void
glUniform1
(int pLocation, FloatBuffer pValue) static void
glUniform1
(int pLocation, IntBuffer pValue) static void
glUniform1i
(int pLocation, int pValue) static void
glUniform2
(int pLocation, FloatBuffer pValue) static void
glUniform2
(int pLocation, IntBuffer pValue) static void
glUniform3
(int pLocation, FloatBuffer pValue) static void
glUniform3
(int pLocation, IntBuffer pValue) static void
glUniform4
(int pLocation, FloatBuffer pValue) static void
glUniform4
(int pLocation, IntBuffer pValue) static void
glUniformMatrix2
(int pLocation, boolean pTranspose, FloatBuffer pValue) static void
glUniformMatrix3
(int pLocation, boolean pTranspose, FloatBuffer pValue) static void
glUniformMatrix4
(int pLocation, boolean pTranspose, FloatBuffer pValue) static TimeSource.NanoTimeSource
static void
initGameThread
(boolean pRenderOffThread) static void
initRenderer
(int pDebugVerbosity, boolean pSynchronous) static void
static boolean
static boolean
static boolean
static boolean
static boolean
static void
limitDisplayFPS
(int pFrameRateLimit) static void
lineWidth
(float pShaderLineWidth) static void
static int
static void
pixelStore
(int pParameterName, int pParameter) private static void
static void
polygonMode
(int pFace, int pMode) static void
polygonOffset
(float pFactor, float pUnits) static void
readPixels
(int pX, int pY, int pWidth, int pHeight, int pFormat, int pType, ByteBuffer pPixels) static void
recordRenderCall
(RenderCall pRenderCall) static void
renderCrosshair
(int pLineLength) static Tesselator
static void
static void
static void
static void
runAsFancy
(Runnable pFancyRunnable) 已过时。static void
setErrorCallback
(org.lwjgl.glfw.GLFWErrorCallbackI pCallback) static void
setInverseViewRotationMatrix
(org.joml.Matrix3f pRotationMatrix) static void
setProjectionMatrix
(org.joml.Matrix4f pProjectionMatrix, VertexSorting pVertexSorting) static void
setShader
(Supplier<ShaderInstance> pShaderSupplier) static void
setShaderColor
(float pRed, float pGreen, float pBlue, float pAlpha) static void
setShaderFogColor
(float pRed, float pGreen, float pBlue) static void
setShaderFogColor
(float pRed, float pGreen, float pBlue, float pAlpha) static void
setShaderFogEnd
(float pShaderFogEnd) static void
setShaderFogShape
(FogShape pShaderFogShape) static void
setShaderFogStart
(float pShaderFogStart) static void
setShaderGameTime
(long pTickTime, float pPartialTicks) static void
setShaderGlintAlpha
(double pShaderGlintAlpha) static void
setShaderGlintAlpha
(float pShaderGlintAlpha) static void
setShaderLights
(org.joml.Vector3f pLightingVector0, org.joml.Vector3f pLightingVector1) static void
setShaderTexture
(int pShaderTexture, int pTextureId) static void
setShaderTexture
(int pShaderTexture, ResourceLocation pTextureId) static void
setTextureMatrix
(org.joml.Matrix4f pTextureMatrix) static void
setupDefaultState
(int pX, int pY, int pWidth, int pHeight) static void
setupGui3DDiffuseLighting
(org.joml.Vector3f pLightingVector1, org.joml.Vector3f pLightingVector2) static void
setupGuiFlatDiffuseLighting
(org.joml.Vector3f pLightingVector1, org.joml.Vector3f pLightingVector2) static void
setupLevelDiffuseLighting
(org.joml.Vector3f pLightingVector1, org.joml.Vector3f pLightingVector2, org.joml.Matrix4f pMatrix) static void
setupOverlayColor
(IntSupplier pTextureId, int pShaderTexture) static void
setupShaderLights
(ShaderInstance pInstance) static void
stencilFunc
(int pFunc, int pRef, int pMask) static void
stencilMask
(int pMask) static void
stencilOp
(int pSFail, int pDpFail, int pDpPass) static void
static void
texParameter
(int pTarget, int pParameterName, int pParameter) static void
viewport
(int pX, int pY, int pWidth, int pHeight)
-
字段详细资料
-
LOGGER
static final org.slf4j.Logger LOGGER -
recordingQueue
-
RENDER_THREAD_TESSELATOR
-
MINIMUM_ATLAS_TEXTURE_SIZE
private static final int MINIMUM_ATLAS_TEXTURE_SIZE- 另请参阅:
-
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 -
inverseViewRotationMatrix
private static org.joml.Matrix3f inverseViewRotationMatrix -
projectionMatrix
private static org.joml.Matrix4f projectionMatrix -
savedProjectionMatrix
private static org.joml.Matrix4f savedProjectionMatrix -
vertexSorting
-
savedVertexSorting
-
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
-
-
构造器详细资料
-
RenderSystem
public RenderSystem()
-
-
方法详细资料
-
initRenderThread
public static void initRenderThread() -
isOnRenderThread
public static boolean isOnRenderThread() -
isOnRenderThreadOrInit
public static boolean isOnRenderThreadOrInit() -
initGameThread
public static void initGameThread(boolean pRenderOffThread) -
isOnGameThread
public static boolean isOnGameThread() -
assertInInitPhase
public static void assertInInitPhase() -
assertOnGameThreadOrInit
public static void assertOnGameThreadOrInit() -
assertOnRenderThreadOrInit
public static void assertOnRenderThreadOrInit() -
assertOnRenderThread
public static void assertOnRenderThread() -
assertOnGameThread
public static void assertOnGameThread() -
constructThreadException
-
isInInitPhase
public static boolean isInInitPhase() -
recordRenderCall
-
pollEvents
private static void pollEvents() -
isFrozenAtPollEvents
public static boolean isFrozenAtPollEvents() -
flipFrame
public static void flipFrame(long pWindowId) -
replayQueue
public static void replayQueue() -
limitDisplayFPS
public static void limitDisplayFPS(int pFrameRateLimit) -
disableDepthTest
public static void disableDepthTest() -
enableDepthTest
public static void enableDepthTest() -
enableScissor
public static void enableScissor(int pX, int pY, int pWidth, int pHeight) -
disableScissor
public static void disableScissor() -
depthFunc
public static void depthFunc(int pDepthFunc) -
depthMask
public static void depthMask(boolean pFlag) -
enableBlend
public static void enableBlend() -
disableBlend
public static void disableBlend() -
blendFunc
public static void blendFunc(GlStateManager.SourceFactor pSourceFactor, GlStateManager.DestFactor pDestFactor) -
blendFunc
public static void blendFunc(int pSourceFactor, int pDestFactor) -
blendFuncSeparate
public static void blendFuncSeparate(GlStateManager.SourceFactor pSourceFactor, GlStateManager.DestFactor pDestFactor, GlStateManager.SourceFactor pSourceFactorAlpha, GlStateManager.DestFactor pDestFactorAlpha) -
blendFuncSeparate
public static void blendFuncSeparate(int pSourceFactor, int pDestFactor, int pSourceFactorAlpha, int pDestFactorAlpha) -
blendEquation
public static void blendEquation(int pMode) -
enableCull
public static void enableCull() -
disableCull
public static void disableCull() -
polygonMode
public static void polygonMode(int pFace, int pMode) -
enablePolygonOffset
public static void enablePolygonOffset() -
disablePolygonOffset
public static void disablePolygonOffset() -
polygonOffset
public static void polygonOffset(float pFactor, float pUnits) -
enableColorLogicOp
public static void enableColorLogicOp() -
disableColorLogicOp
public static void disableColorLogicOp() -
logicOp
-
activeTexture
public static void activeTexture(int pTexture) -
texParameter
public static void texParameter(int pTarget, int pParameterName, int pParameter) -
deleteTexture
public static void deleteTexture(int pTexture) -
bindTextureForSetup
public static void bindTextureForSetup(int pTexture) -
bindTexture
public static void bindTexture(int pTexture) -
viewport
public static void viewport(int pX, int pY, int pWidth, int pHeight) -
colorMask
public static void colorMask(boolean pRed, boolean pGreen, boolean pBlue, boolean pAlpha) -
stencilFunc
public static void stencilFunc(int pFunc, int pRef, int pMask) -
stencilMask
public static void stencilMask(int pMask) -
stencilOp
public static void stencilOp(int pSFail, int pDpFail, int pDpPass) -
clearDepth
public static void clearDepth(double pDepth) -
clearColor
public static void clearColor(float pRed, float pGreen, float pBlue, float pAlpha) -
clearStencil
public static void clearStencil(int pIndex) -
clear
public static void clear(int pMask, boolean pCheckError) -
setShaderFogStart
public static void setShaderFogStart(float pShaderFogStart) -
_setShaderFogStart
private static void _setShaderFogStart(float pShaderFogStart) -
getShaderFogStart
public static float getShaderFogStart() -
setShaderGlintAlpha
public static void setShaderGlintAlpha(double pShaderGlintAlpha) -
setShaderGlintAlpha
public static void setShaderGlintAlpha(float pShaderGlintAlpha) -
_setShaderGlintAlpha
private static void _setShaderGlintAlpha(float pShaderGlintAlpha) -
getShaderGlintAlpha
public static float getShaderGlintAlpha() -
setShaderFogEnd
public static void setShaderFogEnd(float pShaderFogEnd) -
_setShaderFogEnd
private static void _setShaderFogEnd(float pShaderFogEnd) -
getShaderFogEnd
public static float getShaderFogEnd() -
setShaderFogColor
public static void setShaderFogColor(float pRed, float pGreen, float pBlue, float pAlpha) -
setShaderFogColor
public static void setShaderFogColor(float pRed, float pGreen, float pBlue) -
_setShaderFogColor
private static void _setShaderFogColor(float pRed, float pGreen, float pBlue, float pAlpha) -
getShaderFogColor
public static float[] getShaderFogColor() -
setShaderFogShape
-
_setShaderFogShape
-
getShaderFogShape
-
setShaderLights
public static void setShaderLights(org.joml.Vector3f pLightingVector0, org.joml.Vector3f pLightingVector1) -
_setShaderLights
public static void _setShaderLights(org.joml.Vector3f pLightingVector0, org.joml.Vector3f pLightingVector1) -
setupShaderLights
-
setShaderColor
public static void setShaderColor(float pRed, float pGreen, float pBlue, float pAlpha) -
_setShaderColor
private static void _setShaderColor(float pRed, float pGreen, float pBlue, float pAlpha) -
getShaderColor
public static float[] getShaderColor() -
drawElements
public static void drawElements(int pMode, int pCount, int pType) -
lineWidth
public static void lineWidth(float pShaderLineWidth) -
getShaderLineWidth
public static float getShaderLineWidth() -
pixelStore
public static void pixelStore(int pParameterName, int pParameter) -
readPixels
public static void readPixels(int pX, int pY, int pWidth, int pHeight, int pFormat, int pType, ByteBuffer pPixels) -
getString
-
getBackendDescription
-
getApiDescription
-
initBackendSystem
-
initRenderer
public static void initRenderer(int pDebugVerbosity, boolean pSynchronous) -
setErrorCallback
public static void setErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI pCallback) -
renderCrosshair
public static void renderCrosshair(int pLineLength) -
getCapsString
-
setupDefaultState
public static void setupDefaultState(int pX, int pY, int pWidth, int pHeight) -
maxSupportedTextureSize
public static int maxSupportedTextureSize() -
glBindBuffer
-
glBindVertexArray
-
glBufferData
-
glDeleteBuffers
public static void glDeleteBuffers(int pBuffer) -
glDeleteVertexArrays
public static void glDeleteVertexArrays(int pArray) -
glUniform1i
public static void glUniform1i(int pLocation, int pValue) -
glUniform1
-
glUniform2
-
glUniform3
-
glUniform4
-
glUniform1
-
glUniform2
-
glUniform3
-
glUniform4
-
glUniformMatrix2
-
glUniformMatrix3
-
glUniformMatrix4
-
setupOverlayColor
-
teardownOverlayColor
public static void teardownOverlayColor() -
setupLevelDiffuseLighting
public static void setupLevelDiffuseLighting(org.joml.Vector3f pLightingVector1, org.joml.Vector3f pLightingVector2, org.joml.Matrix4f pMatrix) -
setupGuiFlatDiffuseLighting
public static void setupGuiFlatDiffuseLighting(org.joml.Vector3f pLightingVector1, org.joml.Vector3f pLightingVector2) -
setupGui3DDiffuseLighting
public static void setupGui3DDiffuseLighting(org.joml.Vector3f pLightingVector1, org.joml.Vector3f pLightingVector2) -
beginInitialization
public static void beginInitialization() -
finishInitialization
public static void finishInitialization() -
glGenBuffers
-
glGenVertexArrays
-
renderThreadTesselator
-
defaultBlendFunc
public static void defaultBlendFunc() -
runAsFancy
已过时。 -
setShader
-
getShader
-
setShaderTexture
-
_setShaderTexture
-
setShaderTexture
public static void setShaderTexture(int pShaderTexture, int pTextureId) -
_setShaderTexture
public static void _setShaderTexture(int pShaderTexture, int pTextureId) -
getShaderTexture
public static int getShaderTexture(int pShaderTexture) -
setProjectionMatrix
public static void setProjectionMatrix(org.joml.Matrix4f pProjectionMatrix, VertexSorting pVertexSorting) -
setInverseViewRotationMatrix
public static void setInverseViewRotationMatrix(org.joml.Matrix3f pRotationMatrix) -
setTextureMatrix
public static void setTextureMatrix(org.joml.Matrix4f pTextureMatrix) -
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() -
getInverseViewRotationMatrix
public static org.joml.Matrix3f getInverseViewRotationMatrix() -
getModelViewMatrix
public static org.joml.Matrix4f getModelViewMatrix() -
getModelViewStack
-
getTextureMatrix
public static org.joml.Matrix4f getTextureMatrix() -
getSequentialBuffer
public static RenderSystem.AutoStorageIndexBuffer getSequentialBuffer(VertexFormat.Mode pFormatMode) -
setShaderGameTime
public static void setShaderGameTime(long pTickTime, float pPartialTicks) -
getShaderGameTime
public static float getShaderGameTime() -
getVertexSorting
-