public class GlStateManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GlStateManager.AlphaState
Deprecated.
|
(package private) static class |
GlStateManager.BlendState |
(package private) static class |
GlStateManager.BooleanState |
(package private) static class |
GlStateManager.ClearState |
(package private) static class |
GlStateManager.Color
Deprecated.
|
(package private) static class |
GlStateManager.ColorLogicState |
(package private) static class |
GlStateManager.ColorMask |
(package private) static class |
GlStateManager.ColorMaterialState
Deprecated.
|
(package private) static class |
GlStateManager.CullState |
(package private) static class |
GlStateManager.DepthState |
static class |
GlStateManager.DestFactor |
static class |
GlStateManager.FogMode
Deprecated.
|
(package private) static class |
GlStateManager.FogState
Deprecated.
|
static class |
GlStateManager.FramebufferExtension |
static class |
GlStateManager.LogicOp |
(package private) static class |
GlStateManager.PolygonOffsetState |
static class |
GlStateManager.SourceFactor |
(package private) static class |
GlStateManager.StencilFunc |
(package private) static class |
GlStateManager.StencilState |
static class |
GlStateManager.TexGen
Deprecated.
|
(package private) static class |
GlStateManager.TexGenCoord
Deprecated.
|
(package private) static class |
GlStateManager.TexGenState
Deprecated.
|
(package private) static class |
GlStateManager.TextureState |
static class |
GlStateManager.Viewport |
Constructor and Description |
---|
GlStateManager() |
Modifier and Type | Method and Description |
---|---|
static void |
activeTexture(int textureIn) |
private static void |
alpha(int p_227754_0_,
int p_227754_1_) |
static void |
alphaFunc(int func,
float ref)
Deprecated.
|
static void |
attachShader(int program,
int shaderIn) |
static void |
bindBuffer(int target,
int buffer) |
static void |
bindFramebuffer(int target,
int framebufferIn) |
static void |
bindRenderbuffer(int p_227730_0_,
int p_227730_1_) |
static void |
bindTexture(int textureIn) |
static void |
blendColor(float red,
float green,
float blue,
float alpha) |
static void |
blendEquation(int blendEquation) |
static void |
blendFunc(int srcFactor,
int dstFactor) |
static void |
blendFuncSeparate(int srcFactor,
int dstFactor,
int srcFactorAlpha,
int dstFactorAlpha) |
static void |
bufferData(int target,
java.nio.ByteBuffer data,
int usage) |
static int |
checkFramebufferStatus(int p_227741_0_) |
static void |
clear(int mask,
boolean checkError) |
static void |
clearColor(float red,
float green,
float blue,
float alpha) |
static void |
clearCurrentColor()
Deprecated.
|
static void |
clearDepth(double depth) |
static void |
clearStencil(int index) |
static void |
clearTexGen() |
static void |
clientActiveTexture(int p_227747_0_)
Deprecated.
|
private static void |
color(int p_227751_0_,
int p_227751_1_) |
private static void |
color(int p_227720_0_,
int p_227720_1_,
int p_227720_2_,
int p_227720_3_) |
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 |
colorPointer(int size,
int type,
int stride,
long pointer)
Deprecated.
|
static void |
compileShader(int shaderIn) |
static int |
createProgram() |
static int |
createShader(int type) |
static void |
deleteBuffers(int buffer) |
static void |
deleteFramebuffers(int p_227738_0_) |
static void |
deleteProgram(int program) |
static void |
deleteRenderbuffers(int p_227735_0_) |
static void |
deleteShader(int shaderIn) |
static void |
deleteTexture(int textureIn) |
static void |
depthFunc(int depthFunc) |
static void |
depthMask(boolean flagIn) |
static void |
disableAlphaTest()
Deprecated.
|
static void |
disableBlend() |
static void |
disableClientState(int cap)
Deprecated.
|
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 |
disableTexGen(GlStateManager.TexGen texGen)
Deprecated.
|
static void |
disableTexture() |
static void |
drawArrays(int mode,
int first,
int count) |
static void |
enableAlphaTest()
Deprecated.
|
static void |
enableBlend() |
static void |
enableClientState(int cap)
Deprecated.
|
static void |
enableColorLogicOp() |
static void |
enableColorMaterial()
Deprecated.
|
static void |
enableCull() |
static void |
enableDepthTest() |
static void |
enableFog()
Deprecated.
|
static void |
enableLight(int light)
Deprecated.
|
static void |
enableLighting()
Deprecated.
|
static void |
enableLineOffset() |
static void |
enablePolygonOffset() |
static void |
enableRescaleNormal()
Deprecated.
|
static void |
enableTexGen(GlStateManager.TexGen texGen)
Deprecated.
|
static void |
enableTexture() |
static void |
enableVertexAttribArray(int index) |
static void |
fog(int pname,
float[] param)
Deprecated.
|
static void |
fogDensity(float param)
Deprecated.
|
static void |
fogEnd(float param)
Deprecated.
|
static void |
fogi(int pname,
int param)
Deprecated.
|
static void |
fogMode(int fogMode)
Deprecated.
|
static void |
fogStart(float param)
Deprecated.
|
static void |
framebufferRenderbuffer(int p_227693_0_,
int p_227693_1_,
int p_227693_2_,
int p_227693_3_) |
static void |
framebufferTexture2D(int p_227645_0_,
int p_227645_1_,
int p_227645_2_,
int p_227645_3_,
int p_227645_4_) |
static int |
genBuffers() |
static int |
genFramebuffers() |
static int |
genRenderbuffers() |
static int |
genTexture() |
static int |
getAttribLocation(int program,
java.lang.CharSequence name) |
private static java.nio.FloatBuffer |
getBuffer(float p_227710_0_,
float p_227710_1_,
float p_227710_2_,
float p_227710_3_) |
static int |
getError() |
static int |
getInteger(int pname) |
static void |
getMatrix(int pname,
java.nio.FloatBuffer params)
Deprecated.
|
static int |
getProgram(int program,
int pname) |
static java.lang.String |
getProgramInfoLog(int p_227736_0_,
int p_227736_1_) |
static int |
getShader(int shaderIn,
int pname) |
static java.lang.String |
getShaderInfoLog(int p_227733_0_,
int p_227733_1_) |
static java.lang.String |
getString(int name) |
private static GlStateManager.TexGenCoord |
getTexGen(GlStateManager.TexGen texGen)
Deprecated.
|
static void |
getTexImage(int tex,
int level,
int format,
int type,
long pixels) |
static int |
getTexLevelParameter(int target,
int level,
int parameterName) |
static int |
getUniformLocation(int program,
java.lang.CharSequence name) |
static void |
glActiveTexture(int textureIn) |
static void |
glBlendFuncSeparate(int p_227706_0_,
int p_227706_1_,
int p_227706_2_,
int p_227706_3_) |
static void |
glEnableVertexAttribArray(int index) |
static java.lang.String |
init(org.lwjgl.opengl.GLCapabilities glCapabilities) |
static void |
light(int light,
int pname,
java.nio.FloatBuffer params)
Deprecated.
|
static void |
lightModel(int pname,
java.nio.FloatBuffer params)
Deprecated.
|
static void |
lineWidth(float width) |
static void |
linkProgram(int program) |
static void |
loadIdentity()
Deprecated.
|
static void |
logicOp(int logicOperation) |
static void |
matrixMode(int mode)
Deprecated.
|
static void |
mulTextureByProjModelView() |
static void |
multiTexCoord2f(int p_227640_0_,
float p_227640_1_,
float p_227640_2_)
Deprecated.
|
static void |
multMatrix(java.nio.FloatBuffer matrix)
Deprecated.
|
static void |
multMatrix(Matrix4f matrix)
Deprecated.
|
static void |
normal3f(float nx,
float ny,
float nz)
Deprecated.
|
static void |
normalPointer(int type,
int stride,
long pointer)
Deprecated.
|
static void |
ortho(double left,
double right,
double bottom,
double top,
double zNear,
double zFar)
Deprecated.
|
static void |
pixelStore(int pname,
int param) |
static void |
pixelTransfer(int param,
float value) |
static void |
polygonMode(int face,
int mode) |
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,
java.nio.ByteBuffer pixels) |
static void |
renderbufferStorage(int p_227678_0_,
int p_227678_1_,
int p_227678_2_,
int p_227678_3_) |
static void |
rotatef(float angle,
float x,
float y,
float z)
Deprecated.
|
static void |
scaled(double x,
double y,
double z)
Deprecated.
|
static void |
scalef(float x,
float y,
float z)
Deprecated.
|
static void |
setupEndPortalTexGen() |
static void |
setupGui3DDiffuseLighting() |
static void |
setupGuiFlatDiffuseLighting() |
static void |
setupOutline() |
static void |
setupOverlayColor(int p_227739_0_,
int p_227739_1_) |
static void |
setupWorldDiffuseLighting(Matrix4f p_227661_0_) |
static void |
shadeModel(int mode)
Deprecated.
|
static void |
shaderSource(int shaderIn,
java.lang.CharSequence source) |
static void |
stencilFunc(int func,
int ref,
int mask) |
static void |
stencilMask(int mask) |
static void |
stencilOp(int sfail,
int dpfail,
int dppass) |
static void |
teardownOutline() |
static void |
teardownOverlayColor() |
static void |
texCoordPointer(int size,
int type,
int stride,
long pointer)
Deprecated.
|
static void |
texEnv(int target,
int parameterName,
int parameters)
Deprecated.
|
static void |
texGenMode(GlStateManager.TexGen texGen,
int mode)
Deprecated.
|
static void |
texGenParam(GlStateManager.TexGen texGen,
int pname,
java.nio.FloatBuffer params)
Deprecated.
|
static void |
texImage2D(int target,
int level,
int internalFormat,
int width,
int height,
int border,
int format,
int type,
java.nio.IntBuffer pixels) |
static void |
texParameter(int target,
int parameterName,
float parameter) |
static void |
texParameter(int target,
int parameterName,
int parameter) |
static void |
texSubImage2D(int target,
int level,
int xOffset,
int yOffset,
int width,
int height,
int format,
int type,
long pixels) |
static void |
translated(double x,
double y,
double z)
Deprecated.
|
static void |
translatef(float x,
float y,
float z)
Deprecated.
|
static void |
uniform1f(int location,
java.nio.FloatBuffer value) |
static void |
uniform1i(int location,
int value) |
static void |
uniform1i(int location,
java.nio.IntBuffer value) |
static void |
uniform2f(int location,
java.nio.FloatBuffer value) |
static void |
uniform2i(int location,
java.nio.IntBuffer value) |
static void |
uniform3f(int location,
java.nio.FloatBuffer value) |
static void |
uniform3i(int location,
java.nio.IntBuffer value) |
static void |
uniform4f(int location,
java.nio.FloatBuffer value) |
static void |
uniform4i(int location,
java.nio.IntBuffer value) |
static void |
uniformMatrix2f(int location,
boolean transpose,
java.nio.FloatBuffer value) |
static void |
uniformMatrix3f(int location,
boolean transpose,
java.nio.FloatBuffer value) |
static void |
uniformMatrix4f(int location,
boolean transpose,
java.nio.FloatBuffer value) |
static void |
useProgram(int program) |
static void |
vertexAttribPointer(int index,
int size,
int type,
boolean normalized,
int stride,
long pointer) |
static void |
vertexPointer(int size,
int type,
int stride,
long pointer)
Deprecated.
|
static void |
viewport(int x,
int y,
int width,
int height) |
private static final java.nio.FloatBuffer MATRIX_BUFFER
private static final GlStateManager.AlphaState ALPHA_TEST
private static final GlStateManager.BooleanState LIGHTING
private static final GlStateManager.BooleanState[] LIGHT_ENABLE
private static final GlStateManager.ColorMaterialState COLOR_MATERIAL
private static final GlStateManager.BlendState BLEND
private static final GlStateManager.DepthState DEPTH
private static final GlStateManager.FogState FOG
private static final GlStateManager.CullState CULL
private static final GlStateManager.PolygonOffsetState POLY_OFFSET
private static final GlStateManager.ColorLogicState COLOR_LOGIC
private static final GlStateManager.TexGenState TEX_GEN
private static final GlStateManager.ClearState CLEAR
private static final GlStateManager.StencilState STENCIL
private static final java.nio.FloatBuffer FLOAT_4_BUFFER
private static final Vector3f DIFFUSE_LIGHT_0
private static final Vector3f DIFFUSE_LIGHT_1
private static int activeTexture
private static final GlStateManager.TextureState[] TEXTURES
private static int shadeModel
private static final GlStateManager.BooleanState RESCALE_NORMAL
private static final GlStateManager.ColorMask COLOR_MASK
private static final GlStateManager.Color COLOR
private static GlStateManager.FramebufferExtension fboMode
public static float lastBrightnessX
public static float lastBrightnessY
@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 enableLight(int light)
@Deprecated public static void enableColorMaterial()
@Deprecated public static void disableColorMaterial()
@Deprecated public static void colorMaterial(int face, int mode)
@Deprecated public static void light(int light, int pname, java.nio.FloatBuffer params)
@Deprecated public static void lightModel(int pname, java.nio.FloatBuffer params)
@Deprecated public static void normal3f(float nx, float ny, float nz)
public static void disableDepthTest()
public static void enableDepthTest()
public static void depthFunc(int depthFunc)
public static void depthMask(boolean flagIn)
public static void disableBlend()
public static void enableBlend()
public static void blendFunc(int srcFactor, int dstFactor)
public static void blendFuncSeparate(int srcFactor, int dstFactor, int srcFactorAlpha, int dstFactorAlpha)
public static void blendColor(float red, float green, float blue, float alpha)
public static void blendEquation(int blendEquation)
public static java.lang.String init(org.lwjgl.opengl.GLCapabilities glCapabilities)
public static int getProgram(int program, int pname)
public static void attachShader(int program, int shaderIn)
public static void deleteShader(int shaderIn)
public static int createShader(int type)
public static void shaderSource(int shaderIn, java.lang.CharSequence source)
public static void compileShader(int shaderIn)
public static int getShader(int shaderIn, int pname)
public static void useProgram(int program)
public static int createProgram()
public static void deleteProgram(int program)
public static void linkProgram(int program)
public static int getUniformLocation(int program, java.lang.CharSequence name)
public static void uniform1i(int location, java.nio.IntBuffer value)
public static void uniform1i(int location, int value)
public static void uniform1f(int location, java.nio.FloatBuffer value)
public static void uniform2i(int location, java.nio.IntBuffer value)
public static void uniform2f(int location, java.nio.FloatBuffer value)
public static void uniform3i(int location, java.nio.IntBuffer value)
public static void uniform3f(int location, java.nio.FloatBuffer value)
public static void uniform4i(int location, java.nio.IntBuffer value)
public static void uniform4f(int location, java.nio.FloatBuffer value)
public static void uniformMatrix2f(int location, boolean transpose, java.nio.FloatBuffer value)
public static void uniformMatrix3f(int location, boolean transpose, java.nio.FloatBuffer value)
public static void uniformMatrix4f(int location, boolean transpose, java.nio.FloatBuffer value)
public static int getAttribLocation(int program, java.lang.CharSequence name)
public static int genBuffers()
public static void bindBuffer(int target, int buffer)
public static void bufferData(int target, java.nio.ByteBuffer data, int usage)
public static void deleteBuffers(int buffer)
public static void bindFramebuffer(int target, int framebufferIn)
public static void bindRenderbuffer(int p_227730_0_, int p_227730_1_)
public static void deleteRenderbuffers(int p_227735_0_)
public static void deleteFramebuffers(int p_227738_0_)
public static int genFramebuffers()
public static int genRenderbuffers()
public static void renderbufferStorage(int p_227678_0_, int p_227678_1_, int p_227678_2_, int p_227678_3_)
public static void framebufferRenderbuffer(int p_227693_0_, int p_227693_1_, int p_227693_2_, int p_227693_3_)
public static int checkFramebufferStatus(int p_227741_0_)
public static void framebufferTexture2D(int p_227645_0_, int p_227645_1_, int p_227645_2_, int p_227645_3_, int p_227645_4_)
public static void glActiveTexture(int textureIn)
@Deprecated public static void clientActiveTexture(int p_227747_0_)
@Deprecated public static void multiTexCoord2f(int p_227640_0_, float p_227640_1_, float p_227640_2_)
public static void glBlendFuncSeparate(int p_227706_0_, int p_227706_1_, int p_227706_2_, int p_227706_3_)
public static java.lang.String getShaderInfoLog(int p_227733_0_, int p_227733_1_)
public static java.lang.String getProgramInfoLog(int p_227736_0_, int p_227736_1_)
public static void setupOutline()
public static void teardownOutline()
public static void setupOverlayColor(int p_227739_0_, int p_227739_1_)
public static void teardownOverlayColor()
private static void color(int p_227751_0_, int p_227751_1_)
private static void color(int p_227720_0_, int p_227720_1_, int p_227720_2_, int p_227720_3_)
private static void alpha(int p_227754_0_, int p_227754_1_)
public static void setupWorldDiffuseLighting(Matrix4f p_227661_0_)
public static void setupGuiFlatDiffuseLighting()
public static void setupGui3DDiffuseLighting()
private static java.nio.FloatBuffer getBuffer(float p_227710_0_, float p_227710_1_, float p_227710_2_, float p_227710_3_)
public static void setupEndPortalTexGen()
public static void clearTexGen()
public static void mulTextureByProjModelView()
@Deprecated public static void enableFog()
@Deprecated public static void disableFog()
@Deprecated public static void fogMode(int fogMode)
@Deprecated public static void fogDensity(float param)
@Deprecated public static void fogStart(float param)
@Deprecated public static void fogEnd(float param)
@Deprecated public static void fog(int pname, float[] param)
@Deprecated public static void fogi(int pname, int param)
public static void enableCull()
public static void disableCull()
public static void polygonMode(int face, int mode)
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(int logicOperation)
@Deprecated public static void enableTexGen(GlStateManager.TexGen texGen)
@Deprecated public static void disableTexGen(GlStateManager.TexGen texGen)
@Deprecated public static void texGenMode(GlStateManager.TexGen texGen, int mode)
@Deprecated public static void texGenParam(GlStateManager.TexGen texGen, int pname, java.nio.FloatBuffer params)
@Deprecated private static GlStateManager.TexGenCoord getTexGen(GlStateManager.TexGen texGen)
public static void activeTexture(int textureIn)
public static void enableTexture()
public static void disableTexture()
@Deprecated public static void texEnv(int target, int parameterName, int parameters)
public static void texParameter(int target, int parameterName, float parameter)
public static void texParameter(int target, int parameterName, int parameter)
public static int getTexLevelParameter(int target, int level, int parameterName)
public static int genTexture()
public static void deleteTexture(int textureIn)
public static void bindTexture(int textureIn)
public static void texImage2D(int target, int level, int internalFormat, int width, int height, int border, int format, int type, @Nullable java.nio.IntBuffer pixels)
public static void texSubImage2D(int target, int level, int xOffset, int yOffset, int width, int height, int format, int type, long pixels)
public static void getTexImage(int tex, int level, int format, int type, long pixels)
@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 mask)
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 index)
public static void clear(int mask, boolean checkError)
@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 getMatrix(int pname, java.nio.FloatBuffer params)
@Deprecated public static void ortho(double left, double right, double bottom, double top, double zNear, double zFar)
@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(java.nio.FloatBuffer matrix)
@Deprecated public static void multMatrix(Matrix4f matrix)
@Deprecated public static void color4f(float red, float green, float blue, float alpha)
@Deprecated public static void clearCurrentColor()
@Deprecated public static void normalPointer(int type, int stride, long pointer)
@Deprecated public static void texCoordPointer(int size, int type, int stride, long pointer)
@Deprecated public static void vertexPointer(int size, int type, int stride, long pointer)
@Deprecated public static void colorPointer(int size, int type, int stride, long pointer)
public static void vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long pointer)
@Deprecated public static void enableClientState(int cap)
@Deprecated public static void disableClientState(int cap)
public static void enableVertexAttribArray(int index)
public static void glEnableVertexAttribArray(int index)
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 param, float value)
public static void readPixels(int x, int y, int width, int height, int format, int type, java.nio.ByteBuffer pixels)
public static int getError()
public static java.lang.String getString(int name)
public static int getInteger(int pname)