@Environment(value=CLIENT) public class GlStateManager extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GlStateManager.AlphaTestState
Deprecated.
|
(package private) static class |
GlStateManager.BlendFuncState |
(package private) static class |
GlStateManager.CapabilityTracker |
(package private) static class |
GlStateManager.class_5518 |
(package private) static class |
GlStateManager.Color4
Deprecated.
|
(package private) static class |
GlStateManager.ColorMask |
(package private) static class |
GlStateManager.ColorMaterialState
Deprecated.
|
(package private) static class |
GlStateManager.CullFaceState |
(package private) static class |
GlStateManager.DepthTestState |
static class |
GlStateManager.DstFactor |
static class |
GlStateManager.FBOBlitMode |
static class |
GlStateManager.FBOMode |
static class |
GlStateManager.FogMode
Deprecated.
|
(package private) static class |
GlStateManager.FogState
Deprecated.
|
static class |
GlStateManager.LogicOp |
(package private) static class |
GlStateManager.LogicOpState |
(package private) static class |
GlStateManager.PolygonOffsetState |
static class |
GlStateManager.SrcFactor |
(package private) static class |
GlStateManager.StencilState |
(package private) static class |
GlStateManager.StencilSubState |
static class |
GlStateManager.TexCoord
Deprecated.
|
(package private) static class |
GlStateManager.TexGenCoordState
Deprecated.
|
(package private) static class |
GlStateManager.TexGenState
Deprecated.
|
(package private) static class |
GlStateManager.Texture2DState |
static class |
GlStateManager.Viewport |
Constructor and Description |
---|
GlStateManager() |
Modifier and Type | Method and Description |
---|---|
static void |
activeTexture(int texture) |
static void |
activeTextureUntracked(int texture) |
static void |
alphaFunc(int func,
float ref)
Deprecated.
|
static void |
attachShader(int program,
int shader) |
static void |
bindBuffers(int target,
int buffer) |
static void |
bindFramebuffer(int target,
int framebuffer) |
static void |
bindTexture(int texture) |
static void |
blendColor(float red,
float green,
float blue,
float alpha) |
static void |
blendEquation(int mode) |
static void |
blendFunc(int srcFactor,
int dstFactor) |
static void |
blendFuncSeparate(int srcFactorRGB,
int dstFactorRGB,
int srcFactorAlpha,
int dstFactorAlpha) |
static void |
blendFuncSeparateUntracked(int srcFactorRGB,
int dstFactorRGB,
int srcFactorAlpha,
int dstFactorAlpha) |
static void |
blitFramebuffer(int int2,
int int3,
int int4,
int int5,
int int6,
int int7,
int int8,
int int9,
int int10,
int int11) |
static void |
bufferData(int target,
ByteBuffer data,
int usage) |
static int |
checkFramebufferStatus(int target) |
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 stencil) |
static void |
clearTexGen() |
static void |
clientActiveTexture(int texture)
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 |
colorPointer(int size,
int type,
int stride,
long pointer)
Deprecated.
|
private static void |
combineAlpha(int combineAlpha,
int source0Alpha) |
private static void |
combineColor(int combineColor,
int source0Color) |
private static void |
combineColor(int combineColor,
int source0Color,
int source1Color,
int source2Color) |
static void |
compileShader(int shader) |
static void |
copyTexSubImage2d(int int2,
int int3,
int int4,
int int5,
int int6,
int int7,
int int8,
int int9) |
static int |
createProgram() |
static int |
createShader(int type) |
static void |
deleteBuffers(int buffer) |
static void |
deleteFramebuffers(int framebuffers) |
static void |
deleteProgram(int program) |
static void |
deleteShader(int shader) |
static void |
deleteTexture(int texture) |
static void |
depthFunc(int func) |
static void |
depthMask(boolean mask) |
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.TexCoord coord)
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.TexCoord coord)
Deprecated.
|
static void |
enableTexture() |
static void |
enableVertexAttribArray(int index) |
static void |
fog(int pname,
float[] params)
Deprecated.
|
static void |
fogDensity(float density)
Deprecated.
|
static void |
fogEnd(float end)
Deprecated.
|
static void |
fogi(int pname,
int param)
Deprecated.
|
static void |
fogMode(int mode)
Deprecated.
|
static void |
fogStart(float start)
Deprecated.
|
static void |
framebufferTexture2D(int target,
int attachment,
int textureTarget,
int texture,
int level) |
static int |
genBuffers() |
static int |
genFramebuffers() |
static int |
genTextures() |
static int |
getActiveBoundTexture()
Deprecated.
|
static int |
getAttribLocation(int program,
CharSequence name) |
private static FloatBuffer |
getBuffer(float a,
float b,
float c,
float d) |
static int |
getError() |
static void |
getFloat(int pname,
FloatBuffer params)
Deprecated.
|
static int |
getFramebufferDepthAttachment() |
private static GlStateManager.TexGenCoordState |
getGenCoordState(GlStateManager.TexCoord coord)
Deprecated.
|
static int |
getInteger(int pname) |
static int |
getProgram(int program,
int pname) |
static String |
getProgramInfoLog(int program,
int maxLength) |
static int |
getShader(int shader,
int pname) |
static String |
getShaderInfoLog(int shader,
int maxLength) |
static String |
getString(int name) |
static void |
getTexImage(int target,
int level,
int format,
int type,
long pixels) |
static int |
getTexLevelParameter(int target,
int level,
int pname) |
static int |
getUniformLocation(int program,
CharSequence name) |
static String |
initFramebufferSupport(org.lwjgl.opengl.GLCapabilities capabilities)
Configures the frame buffer and populates
FramebufferInfo with the appropriate constants
for the current GLCapabilities. |
static void |
light(int light,
int pname,
FloatBuffer params)
Deprecated.
|
static void |
lightModel(int pname,
FloatBuffer params)
Deprecated.
|
static void |
lineWidth(float width) |
static void |
linkProgram(int program) |
static void |
loadIdentity()
Deprecated.
|
static void |
logicOp(int op) |
static void |
matrixMode(int mode)
Deprecated.
|
static void |
method_22607(int index) |
static void |
method_30498(int[] int2) |
static void |
method_30499(int[] int2) |
static void |
method_31317(int int2,
int int3,
int int4,
int int5) |
static void |
method_31318() |
static void |
method_31319() |
static void |
mulTextureByProjModelView() |
static void |
multiTexCoords2f(int texture,
float s,
float t)
Deprecated.
|
static void |
multMatrix(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 l,
double r,
double b,
double t,
double n,
double f)
Deprecated.
|
static void |
pixelStore(int pname,
int param) |
static void |
pixelTransfer(int pname,
float param) |
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,
ByteBuffer pixels) |
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(Vector3f vector3f,
Vector3f vector3f2) |
static void |
setupGuiFlatDiffuseLighting(Vector3f vector3f,
Vector3f vector3f2) |
static void |
setupLevelDiffuseLighting(Vector3f vector3f,
Vector3f vector3f2,
Matrix4f matrix4f) |
static void |
setupOutline() |
static void |
setupOverlayColor(int texture,
int size) |
static void |
shadeModel(int mode)
Deprecated.
|
static void |
shaderSource(int shader,
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 boolean |
supportsGl30() |
static void |
teardownOutline() |
static void |
teardownOverlayColor() |
static void |
texCoordPointer(int size,
int type,
int stride,
long pointer)
Deprecated.
|
static void |
texEnv(int target,
int pname,
int param)
Deprecated.
|
static void |
texGenMode(GlStateManager.TexCoord coord,
int mode)
Deprecated.
|
static void |
texGenParam(GlStateManager.TexCoord coord,
int pname,
FloatBuffer params)
Deprecated.
|
static void |
texImage2D(int target,
int level,
int internalFormat,
int width,
int height,
int border,
int format,
int type,
IntBuffer pixels) |
static void |
texParameter(int target,
int pname,
float param) |
static void |
texParameter(int target,
int pname,
int param) |
static void |
texSubImage2D(int target,
int level,
int offsetX,
int offsetY,
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 |
uniform1(int location,
FloatBuffer value) |
static void |
uniform1(int location,
int value) |
static void |
uniform1(int location,
IntBuffer value) |
static void |
uniform2(int location,
FloatBuffer value) |
static void |
uniform2(int location,
IntBuffer value) |
static void |
uniform3(int location,
FloatBuffer value) |
static void |
uniform3(int location,
IntBuffer value) |
static void |
uniform4(int location,
FloatBuffer value) |
static void |
uniform4(int location,
IntBuffer value) |
static void |
uniformMatrix2(int location,
boolean transpose,
FloatBuffer value) |
static void |
uniformMatrix3(int location,
boolean transpose,
FloatBuffer value) |
static void |
uniformMatrix4(int location,
boolean transpose,
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 FloatBuffer MATRIX_BUFFER
private static final GlStateManager.AlphaTestState ALPHA_TEST
private static final GlStateManager.CapabilityTracker LIGHTING
private static final GlStateManager.CapabilityTracker[] LIGHT_ENABLE
private static final GlStateManager.ColorMaterialState COLOR_MATERIAL
private static final GlStateManager.BlendFuncState BLEND
private static final GlStateManager.DepthTestState DEPTH
private static final GlStateManager.FogState FOG
private static final GlStateManager.CullFaceState CULL
private static final GlStateManager.PolygonOffsetState POLY_OFFSET
private static final GlStateManager.LogicOpState COLOR_LOGIC
private static final GlStateManager.TexGenState TEX_GEN
private static final GlStateManager.StencilState STENCIL
private static final GlStateManager.class_5518 field_26839
private static final FloatBuffer colorBuffer
private static int activeTexture
private static final GlStateManager.Texture2DState[] TEXTURES
private static int modelShadeMode
private static final GlStateManager.CapabilityTracker RESCALE_NORMAL
private static final GlStateManager.ColorMask COLOR_MASK
private static final GlStateManager.Color4 COLOR
private static GlStateManager.FBOMode fboMode
private static GlStateManager.FBOBlitMode fboBlitMode
@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, FloatBuffer params)
@Deprecated public static void lightModel(int pname, FloatBuffer params)
@Deprecated public static void normal3f(float nx, float ny, float nz)
public static void method_31318()
public static void method_31319()
public static void method_31317(int int2, int int3, int int4, int int5)
public static void disableDepthTest()
public static void enableDepthTest()
public static void depthFunc(int func)
public static void depthMask(boolean mask)
public static void disableBlend()
public static void enableBlend()
public static void blendFunc(int srcFactor, int dstFactor)
public static void blendFuncSeparate(int srcFactorRGB, int dstFactorRGB, int srcFactorAlpha, int dstFactorAlpha)
public static void blendColor(float red, float green, float blue, float alpha)
public static void blendEquation(int mode)
public static String initFramebufferSupport(org.lwjgl.opengl.GLCapabilities capabilities)
FramebufferInfo
with the appropriate constants
for the current GLCapabilities.IllegalStateException
- if no known frame buffer technology is supportedpublic static int getProgram(int program, int pname)
public static void attachShader(int program, int shader)
public static void deleteShader(int shader)
public static int createShader(int type)
public static void shaderSource(int shader, CharSequence source)
public static void compileShader(int shader)
public static int getShader(int shader, 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, CharSequence name)
public static void uniform1(int location, IntBuffer value)
public static void uniform1(int location, int value)
public static void uniform1(int location, FloatBuffer value)
public static void uniform2(int location, IntBuffer value)
public static void uniform2(int location, FloatBuffer value)
public static void uniform3(int location, IntBuffer value)
public static void uniform3(int location, FloatBuffer value)
public static void uniform4(int location, IntBuffer value)
public static void uniform4(int location, FloatBuffer value)
public static void uniformMatrix2(int location, boolean transpose, FloatBuffer value)
public static void uniformMatrix3(int location, boolean transpose, FloatBuffer value)
public static void uniformMatrix4(int location, boolean transpose, FloatBuffer value)
public static int getAttribLocation(int program, CharSequence name)
public static int genBuffers()
public static void bindBuffers(int target, int buffer)
public static void bufferData(int target, ByteBuffer data, int usage)
public static void deleteBuffers(int buffer)
public static void copyTexSubImage2d(int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9)
public static void bindFramebuffer(int target, int framebuffer)
public static int getFramebufferDepthAttachment()
public static void blitFramebuffer(int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9, int int10, int int11)
public static void deleteFramebuffers(int framebuffers)
public static int genFramebuffers()
public static int checkFramebufferStatus(int target)
public static void framebufferTexture2D(int target, int attachment, int textureTarget, int texture, int level)
@Deprecated public static int getActiveBoundTexture()
public static void activeTextureUntracked(int texture)
@Deprecated public static void clientActiveTexture(int texture)
@Deprecated public static void multiTexCoords2f(int texture, float s, float t)
public static void blendFuncSeparateUntracked(int srcFactorRGB, int dstFactorRGB, int srcFactorAlpha, int dstFactorAlpha)
public static String getShaderInfoLog(int shader, int maxLength)
public static String getProgramInfoLog(int program, int maxLength)
public static void setupOutline()
public static void teardownOutline()
public static void setupOverlayColor(int texture, int size)
public static void teardownOverlayColor()
private static void combineColor(int combineColor, int source0Color)
private static void combineColor(int combineColor, int source0Color, int source1Color, int source2Color)
private static void combineAlpha(int combineAlpha, int source0Alpha)
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)
private static FloatBuffer getBuffer(float a, float b, float c, float d)
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 mode)
@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[] params)
@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 op)
@Deprecated public static void enableTexGen(GlStateManager.TexCoord coord)
@Deprecated public static void disableTexGen(GlStateManager.TexCoord coord)
@Deprecated public static void texGenMode(GlStateManager.TexCoord coord, int mode)
@Deprecated public static void texGenParam(GlStateManager.TexCoord coord, int pname, FloatBuffer params)
@Deprecated private static GlStateManager.TexGenCoordState getGenCoordState(GlStateManager.TexCoord coord)
public static void activeTexture(int texture)
public static void enableTexture()
public static void disableTexture()
@Deprecated public static void texEnv(int target, int pname, int param)
public static void texParameter(int target, int pname, float param)
public static void texParameter(int target, int pname, int param)
public static int getTexLevelParameter(int target, int level, int pname)
public static int genTextures()
public static void method_30498(int[] int2)
public static void deleteTexture(int texture)
public static void method_30499(int[] int2)
public static void bindTexture(int texture)
public static void texImage2D(int target, int level, int internalFormat, int width, int height, int border, int format, int type, @Nullable IntBuffer pixels)
public static void texSubImage2D(int target, int level, int offsetX, int offsetY, int width, int height, int format, int type, long pixels)
public static void getTexImage(int target, 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 stencil)
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 getFloat(int pname, FloatBuffer params)
@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(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 method_22607(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 pname, float param)
public static void readPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels)
public static int getError()
public static String getString(int name)
public static int getInteger(int pname)
public static boolean supportsGl30()