@Environment(value=CLIENT) public class RenderSystem extends Object
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULTALPHACUTOFF |
private static Thread |
gameThread |
private static boolean |
isInInit |
private static boolean |
isReplayingQueue |
private static double |
lastDrawTime |
private static Logger |
LOGGER |
private static int |
MAX_SUPPORTED_TEXTURE_SIZE |
private static int |
MINIMUM_ATLAS_TEXTURE_SIZE |
private static ConcurrentLinkedQueue<RenderCall> |
recordingQueue |
private static Tessellator |
RENDER_THREAD_TESSELATOR |
private static Thread |
renderThread |
Constructor and Description |
---|
RenderSystem() |
Modifier and Type | Method and Description |
---|---|
static void |
activeTexture(int texture) |
static void |
alphaFunc(int func,
float ref)
Deprecated.
|
static void |
assertThread(Supplier<Boolean> check) |
static void |
beginInitialization() |
static void |
bindTexture(int texture) |
static void |
blendColor(float red,
float green,
float blue,
float alpha) |
static void |
blendEquation(int mode) |
static void |
blendFunc(GlStateManager.SrcFactor srcFactor,
GlStateManager.DstFactor dstFactor) |
static void |
blendFunc(int srcFactor,
int dstFactor) |
static void |
blendFuncSeparate(GlStateManager.SrcFactor srcFactor,
GlStateManager.DstFactor dstFactor,
GlStateManager.SrcFactor srcAlpha,
GlStateManager.DstFactor dstAlpha) |
static void |
blendFuncSeparate(int srcFactorRGB,
int dstFactorRGB,
int srcFactorAlpha,
int dstFactorAlpha) |
static void |
clear(int mask,
boolean getError) |
static void |
clearColor(float red,
float green,
float blue,
float alpha) |
static void |
clearCurrentColor()
Deprecated.
|
static void |
clearDepth(double depth) |
static void |
clearStencil(int int2) |
static void |
clearTexGen() |
static void |
color3f(float red,
float green,
float blue)
Deprecated.
|
static void |
color4f(float red,
float green,
float blue,
float alpha)
Deprecated.
|
static void |
colorMask(boolean red,
boolean green,
boolean blue,
boolean alpha) |
static void |
colorMaterial(int face,
int mode)
Deprecated.
|
static void |
defaultAlphaFunc() |
static void |
defaultBlendFunc() |
static void |
deleteTexture(int texture) |
static void |
depthFunc(int func) |
static void |
depthMask(boolean mask) |
static void |
disableAlphaTest()
Deprecated.
|
static void |
disableBlend() |
static void |
disableColorLogicOp() |
static void |
disableColorMaterial()
Deprecated.
|
static void |
disableCull() |
static void |
disableDepthTest() |
static void |
disableFog()
Deprecated.
|
static void |
disableLighting()
Deprecated.
|
static void |
disableLineOffset() |
static void |
disablePolygonOffset() |
static void |
disableRescaleNormal()
Deprecated.
|
static void |
disableScissor() |
static void |
disableTexture() |
static void |
drawArrays(int mode,
int first,
int count) |
static void |
enableAlphaTest()
Deprecated.
|
static void |
enableBlend() |
static void |
enableColorLogicOp() |
static void |
enableColorMaterial()
Deprecated.
|
static void |
enableCull() |
static void |
enableDepthTest() |
static void |
enableFog()
Deprecated.
|
static void |
enableLighting()
Deprecated.
|
static void |
enableLineOffset() |
static void |
enablePolygonOffset() |
static void |
enableRescaleNormal()
Deprecated.
|
static void |
enableScissor(int int2,
int int3,
int int4,
int int5) |
static void |
enableTexture() |
static void |
finishInitialization() |
static void |
flipFrame(long window) |
static void |
fog(int pname,
float red,
float green,
float blue,
float alpha)
Deprecated.
|
static void |
fogDensity(float density)
Deprecated.
|
static void |
fogEnd(float end)
Deprecated.
|
static void |
fogi(int int2,
int int3)
Deprecated.
|
static void |
fogMode(GlStateManager.FogMode mode)
Deprecated.
|
static void |
fogMode(int int2)
Deprecated.
|
static void |
fogStart(float start)
Deprecated.
|
static String |
getApiDescription() |
static String |
getBackendDescription() |
static String |
getCapsString() |
static void |
getString(int name,
Consumer<String> consumer) |
static void |
glBindBuffer(int target,
Supplier<Integer> buffer) |
static void |
glBufferData(int target,
ByteBuffer data,
int usage) |
static void |
glDeleteBuffers(int buffer) |
static void |
glGenBuffers(Consumer<Integer> consumer) |
static void |
glMultiTexCoord2f(int texture,
float s,
float t)
Deprecated.
|
static void |
glUniform1(int location,
FloatBuffer value) |
static void |
glUniform1(int location,
IntBuffer value) |
static void |
glUniform1i(int location,
int value) |
static void |
glUniform2(int location,
FloatBuffer value) |
static void |
glUniform2(int location,
IntBuffer value) |
static void |
glUniform3(int location,
FloatBuffer value) |
static void |
glUniform3(int location,
IntBuffer value) |
static void |
glUniform4(int location,
FloatBuffer value) |
static void |
glUniform4(int location,
IntBuffer value) |
static void |
glUniformMatrix2(int location,
boolean transpose,
FloatBuffer value) |
static void |
glUniformMatrix3(int location,
boolean transpose,
FloatBuffer value) |
static void |
glUniformMatrix4(int location,
boolean transpose,
FloatBuffer value) |
static LongSupplier |
initBackendSystem() |
static void |
initGameThread(boolean assertNotRenderThread) |
static void |
initRenderer(int debugVerbosity,
boolean debugSync) |
static void |
initRenderThread() |
static boolean |
isInInitPhase() |
static boolean |
isOnGameThread() |
static boolean |
isOnGameThreadOrInit() |
static boolean |
isOnRenderThread() |
static boolean |
isOnRenderThreadOrInit() |
static void |
limitDisplayFPS(int fps) |
static void |
lineWidth(float width) |
static void |
loadIdentity()
Deprecated.
|
static void |
logicOp(GlStateManager.LogicOp op) |
static void |
matrixMode(int mode)
Deprecated.
|
static int |
maxSupportedTextureSize() |
static void |
mulTextureByProjModelView() |
static void |
multMatrix(Matrix4f matrix)
Deprecated.
|
static void |
normal3f(float nx,
float ny,
float nz)
Deprecated.
|
static void |
ortho(double l,
double r,
double b,
double t,
double n,
double f)
Deprecated.
|
static void |
pixelStore(int pname,
int param) |
static void |
pixelTransfer(int int2,
float float2) |
static void |
polygonMode(int int2,
int int3) |
static void |
polygonOffset(float factor,
float units) |
static void |
popAttributes()
Deprecated.
|
static void |
popMatrix()
Deprecated.
|
static void |
pushLightingAttributes()
Deprecated.
|
static void |
pushMatrix()
Deprecated.
|
static void |
pushTextureAttributes()
Deprecated.
|
static void |
readPixels(int x,
int y,
int width,
int height,
int format,
int type,
ByteBuffer pixels) |
static void |
recordRenderCall(RenderCall renderCall) |
static void |
renderCrosshair(int size) |
static Tessellator |
renderThreadTesselator() |
static void |
replayQueue() |
static void |
rotatef(float angle,
float x,
float y,
float z)
Deprecated.
|
static void |
runAsFancy(Runnable runnable)
Deprecated.
|
static void |
scaled(double x,
double y,
double z)
Deprecated.
|
static void |
scalef(float x,
float y,
float z)
Deprecated.
|
static void |
setErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI callback) |
static void |
setupDefaultState(int x,
int y,
int width,
int height) |
static void |
setupEndPortalTexGen() |
static void |
setupGui3DDiffuseLighting(Vector3f vector3f,
Vector3f vector3f2) |
static void |
setupGuiFlatDiffuseLighting(Vector3f vector3f,
Vector3f vector3f2) |
static void |
setupLevelDiffuseLighting(Vector3f vector3f,
Vector3f vector3f2,
Matrix4f matrix4f) |
static void |
setupNvFogDistance() |
static void |
setupOutline() |
static void |
setupOverlayColor(IntSupplier texture,
int size) |
static void |
shadeModel(int mode)
Deprecated.
|
static void |
stencilFunc(int func,
int ref,
int mask) |
static void |
stencilMask(int int2) |
static void |
stencilOp(int sfail,
int dpfail,
int dppass) |
static void |
teardownOutline() |
static void |
teardownOverlayColor() |
static void |
texParameter(int target,
int pname,
int param) |
static void |
translated(double x,
double y,
double z)
Deprecated.
|
static void |
translatef(float x,
float y,
float z)
Deprecated.
|
static void |
viewport(int x,
int y,
int width,
int height) |
private static final Logger LOGGER
private static final ConcurrentLinkedQueue<RenderCall> recordingQueue
private static final Tessellator RENDER_THREAD_TESSELATOR
public static final float DEFAULTALPHACUTOFF
private static final int MINIMUM_ATLAS_TEXTURE_SIZE
private static boolean isReplayingQueue
private static Thread gameThread
private static Thread renderThread
private static int MAX_SUPPORTED_TEXTURE_SIZE
private static boolean isInInit
private static double lastDrawTime
public static void initRenderThread()
public static boolean isOnRenderThread()
public static boolean isOnRenderThreadOrInit()
public static void initGameThread(boolean assertNotRenderThread)
public static boolean isOnGameThread()
public static boolean isOnGameThreadOrInit()
public static boolean isInInitPhase()
public static void recordRenderCall(RenderCall renderCall)
public static void flipFrame(long window)
public static void replayQueue()
public static void limitDisplayFPS(int fps)
@Deprecated public static void pushLightingAttributes()
@Deprecated public static void pushTextureAttributes()
@Deprecated public static void popAttributes()
@Deprecated public static void disableAlphaTest()
@Deprecated public static void enableAlphaTest()
@Deprecated public static void alphaFunc(int func, float ref)
@Deprecated public static void enableLighting()
@Deprecated public static void disableLighting()
@Deprecated public static void enableColorMaterial()
@Deprecated public static void disableColorMaterial()
@Deprecated public static void colorMaterial(int face, int mode)
@Deprecated public static void normal3f(float nx, float ny, float nz)
public static void disableDepthTest()
public static void enableDepthTest()
public static void enableScissor(int int2, int int3, int int4, int int5)
public static void disableScissor()
public static void depthFunc(int func)
public static void depthMask(boolean mask)
public static void enableBlend()
public static void disableBlend()
public static void blendFunc(GlStateManager.SrcFactor srcFactor, GlStateManager.DstFactor dstFactor)
public static void blendFunc(int srcFactor, int dstFactor)
public static void blendFuncSeparate(GlStateManager.SrcFactor srcFactor, GlStateManager.DstFactor dstFactor, GlStateManager.SrcFactor srcAlpha, GlStateManager.DstFactor dstAlpha)
public static void blendFuncSeparate(int srcFactorRGB, int dstFactorRGB, int srcFactorAlpha, int dstFactorAlpha)
public static void blendEquation(int mode)
public static void blendColor(float red, float green, float blue, float alpha)
@Deprecated public static void enableFog()
@Deprecated public static void disableFog()
@Deprecated public static void fogMode(GlStateManager.FogMode mode)
@Deprecated public static void fogMode(int int2)
@Deprecated public static void fogDensity(float density)
@Deprecated public static void fogStart(float start)
@Deprecated public static void fogEnd(float end)
@Deprecated public static void fog(int pname, float red, float green, float blue, float alpha)
@Deprecated public static void fogi(int int2, int int3)
public static void enableCull()
public static void disableCull()
public static void polygonMode(int int2, int int3)
public static void enablePolygonOffset()
public static void disablePolygonOffset()
public static void enableLineOffset()
public static void disableLineOffset()
public static void polygonOffset(float factor, float units)
public static void enableColorLogicOp()
public static void disableColorLogicOp()
public static void logicOp(GlStateManager.LogicOp op)
public static void activeTexture(int texture)
public static void enableTexture()
public static void disableTexture()
public static void texParameter(int target, int pname, int param)
public static void deleteTexture(int texture)
public static void bindTexture(int texture)
@Deprecated public static void shadeModel(int mode)
@Deprecated public static void enableRescaleNormal()
@Deprecated public static void disableRescaleNormal()
public static void viewport(int x, int y, int width, int height)
public static void colorMask(boolean red, boolean green, boolean blue, boolean alpha)
public static void stencilFunc(int func, int ref, int mask)
public static void stencilMask(int int2)
public static void stencilOp(int sfail, int dpfail, int dppass)
public static void clearDepth(double depth)
public static void clearColor(float red, float green, float blue, float alpha)
public static void clearStencil(int int2)
public static void clear(int mask, boolean getError)
@Deprecated public static void matrixMode(int mode)
@Deprecated public static void loadIdentity()
@Deprecated public static void pushMatrix()
@Deprecated public static void popMatrix()
@Deprecated public static void ortho(double l, double r, double b, double t, double n, double f)
@Deprecated public static void rotatef(float angle, float x, float y, float z)
@Deprecated public static void scalef(float x, float y, float z)
@Deprecated public static void scaled(double x, double y, double z)
@Deprecated public static void translatef(float x, float y, float z)
@Deprecated public static void translated(double x, double y, double z)
@Deprecated public static void multMatrix(Matrix4f matrix)
@Deprecated public static void color4f(float red, float green, float blue, float alpha)
@Deprecated public static void color3f(float red, float green, float blue)
@Deprecated public static void clearCurrentColor()
public static void drawArrays(int mode, int first, int count)
public static void lineWidth(float width)
public static void pixelStore(int pname, int param)
public static void pixelTransfer(int int2, float float2)
public static void readPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels)
public static String getBackendDescription()
public static String getApiDescription()
public static LongSupplier initBackendSystem()
public static void initRenderer(int debugVerbosity, boolean debugSync)
public static void setErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI callback)
public static void renderCrosshair(int size)
public static void setupNvFogDistance()
@Deprecated public static void glMultiTexCoord2f(int texture, float s, float t)
public static String getCapsString()
public static void setupDefaultState(int x, int y, int width, int height)
public static int maxSupportedTextureSize()
public static void glBufferData(int target, ByteBuffer data, int usage)
public static void glDeleteBuffers(int buffer)
public static void glUniform1i(int location, int value)
public static void glUniform1(int location, IntBuffer value)
public static void glUniform2(int location, IntBuffer value)
public static void glUniform3(int location, IntBuffer value)
public static void glUniform4(int location, IntBuffer value)
public static void glUniform1(int location, FloatBuffer value)
public static void glUniform2(int location, FloatBuffer value)
public static void glUniform3(int location, FloatBuffer value)
public static void glUniform4(int location, FloatBuffer value)
public static void glUniformMatrix2(int location, boolean transpose, FloatBuffer value)
public static void glUniformMatrix3(int location, boolean transpose, FloatBuffer value)
public static void glUniformMatrix4(int location, boolean transpose, FloatBuffer value)
public static void setupOutline()
public static void teardownOutline()
public static void setupOverlayColor(IntSupplier texture, int size)
public static void teardownOverlayColor()
public static void setupLevelDiffuseLighting(Vector3f vector3f, Vector3f vector3f2, Matrix4f matrix4f)
public static void setupGuiFlatDiffuseLighting(Vector3f vector3f, Vector3f vector3f2)
public static void setupGui3DDiffuseLighting(Vector3f vector3f, Vector3f vector3f2)
public static void mulTextureByProjModelView()
public static void setupEndPortalTexGen()
public static void clearTexGen()
public static void beginInitialization()
public static void finishInitialization()
public static Tessellator renderThreadTesselator()
public static void defaultBlendFunc()
public static void defaultAlphaFunc()
@Deprecated public static void runAsFancy(Runnable runnable)