public class GLState
extends java.lang.Object
| Constructor and Description |
|---|
GLState() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bindBuffer(int target,
int id) |
static void |
bindElementBuffer(int id) |
static void |
bindFramebuffer(int id) |
static void |
bindTex2D(int id) |
static void |
bindVertexBuffer(int id) |
static void |
blend(boolean enable) |
static void |
enableVertexArrays(int va1,
int va2)
Enable or disable vertex arrays.
|
static int |
getFramebuffer() |
static int |
getTexture() |
static int |
getViewportHeight() |
static int |
getViewportWidth() |
static void |
setClearColor(float[] color) |
static void |
test(boolean depthTest,
boolean stencilTest) |
static void |
testDepth(boolean enable) |
static boolean |
useProgram(int shaderProgram) |
static void |
viewport(int width,
int height) |
public static final int DISABLED
public static final int UNBIND
public static boolean useProgram(int shaderProgram)
public static void blend(boolean enable)
public static void testDepth(boolean enable)
public static void test(boolean depthTest,
boolean stencilTest)
public static void enableVertexArrays(int va1,
int va2)
DISABLED,
0: enable first,
1: enable second.public static void bindFramebuffer(int id)
public static int getFramebuffer()
public static void bindTex2D(int id)
public static int getTexture()
public static void setClearColor(float[] color)
public static void bindBuffer(int target,
int id)
public static void bindElementBuffer(int id)
public static void bindVertexBuffer(int id)
public static void viewport(int width,
int height)
public static int getViewportWidth()
public static int getViewportHeight()