|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object codeanticode.glgraphics.GLState
public class GLState
Field Summary | |
---|---|
static boolean |
fboMultisampleAvailable
|
static boolean |
fbosAvailable
|
static boolean |
floatTexAvailable
|
static boolean |
fragShadersAvailable
|
static boolean |
geoShadersAvailable
|
static GL |
gl
|
static boolean |
glsl100Available
|
static GLU |
glu
|
static boolean |
multiTexAvailable
|
static boolean |
nonTwoPowTexAvailable
|
static boolean |
shadersAvailable
|
static boolean |
vbosAvailable
|
static boolean |
vertShadersAvailable
|
Fields inherited from interface processing.core.PConstants |
---|
A, AB, ADD, AG, ALPHA, ALPHA_MASK, ALT, AMBIENT, AR, ARC, ARGB, ARROW, B, BACKSPACE, BASELINE, BEEN_LIT, BEVEL, BILINEAR, BLEND, BLUE_MASK, BLUR, BOTTOM, BOX, BURN, CENTER, CENTER_DIAMETER, CENTER_RADIUS, CHATTER, CLAMP, CLOSE, CMYK, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CUSTOM, DA, DARKEST, DB, DEG_TO_RAD, DELETE, DG, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_ACCURATE_TEXTURES, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_2X_SMOOTH, DISABLE_OPENGL_ERROR_REPORT, DODGE, DOWN, DR, DXF, DYNAMIC, EB, EDGE, EG, ELLIPSE, ENABLE_ACCURATE_TEXTURES, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_2X_SMOOTH, ENABLE_OPENGL_4X_SMOOTH, ENABLE_OPENGL_ERROR_REPORT, ENTER, EPSILON, ER, ERODE, ERROR_BACKGROUND_IMAGE_FORMAT, ERROR_BACKGROUND_IMAGE_SIZE, ERROR_PUSHMATRIX_OVERFLOW, ERROR_PUSHMATRIX_UNDERFLOW, ERROR_TEXTFONT_NULL_PFONT, ESC, EXCLUSION, FIXED, G, GIF, GRAY, GREEN_MASK, HALF_PI, HAND, HARD_LIGHT, HAS_NORMAL, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINEAR, LINES, LINUX, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, NORMALIZED, NX, NY, NZ, OPAQUE, OPEN, OPENGL, OPENGL2, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, platformNames, POINT, POINT_SPRITES, POINTS, POLYGON, POSTERIZE, PROBLEM, PROG_GL2, PROG_GL3, PROG_GL4, PROJECT, PROJECTION, QUAD, QUAD_STRIP, QUADRATIC, QUADS, QUARTER_PI, R, RAD_TO_DEG, RADIUS, RECT, RED_MASK, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SA, SB, SCREEN, SG, SHAPE, SHIFT, SHINE, SOFT_LIGHT, SPB, SPG, SPHERE, SPOT, SPR, SQUARE, SR, STATIC, STREAM, SUBTRACT, SW, TAB, TARGA, TEXT, TEXTURE2D, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TRILINEAR, TWO_PI, TX, TY, TZ, U, UP, V, VERTEX_FIELD_COUNT, VW, VX, VY, VZ, WAIT, WHITESPACE, WINDOWS, X, Y, Z |
Constructor Summary | |
---|---|
GLState(GL gl)
|
Method Summary | |
---|---|
void |
clearColorBuffer(int color)
|
void |
clearTex(int glid,
int target,
int color)
|
void |
copyTex(GLTexture srcTex,
GLTexture destTex)
|
static java.lang.Object |
createCGResource(int type)
|
static java.lang.Object |
createCGResource(int type,
CGcontext context,
java.lang.String source)
|
static java.lang.Object |
createCGResource(int type,
CGcontext context,
java.lang.String source,
int profile)
|
static int |
createGLResource(int type)
|
static int |
createGLResource(int type,
int param)
|
static void |
deleteAllGLResources()
|
static void |
deleteCGResource(java.lang.Object id,
int type)
|
static void |
deleteGLResource(int id,
int type)
|
static void |
disablePopFramebuffer()
|
static void |
disablePushFramebuffer()
|
static void |
disableSingleFBO()
|
static void |
enablePopFramebuffer()
|
static void |
enablePushFramebuffer()
|
static void |
enableSingleFBO()
|
static int |
getGLMajor()
|
static int |
getGLMinor()
|
static java.lang.String |
getGLSLVersion()
|
static java.lang.String |
getGLVersion()
|
static boolean |
isFramebufferFixed()
|
static boolean |
isPopFramebufferEnabled()
|
static boolean |
isPushFramebufferEnabled()
|
static boolean |
isSingleFBO()
|
void |
paintTex(int glid,
int target,
int w,
int h,
int color)
|
void |
restoreGLMatrices()
|
void |
restoreGLState()
|
void |
restoreView()
|
void |
saveGLMatrices()
|
void |
saveGLState()
|
void |
saveView()
|
static void |
setFramebufferFixed(boolean newVal)
|
void |
setOrthographicView(int w,
int h)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean multiTexAvailable
public static boolean vbosAvailable
public static boolean fbosAvailable
public static boolean shadersAvailable
public static boolean geoShadersAvailable
public static boolean vertShadersAvailable
public static boolean fragShadersAvailable
public static boolean glsl100Available
public static boolean floatTexAvailable
public static boolean nonTwoPowTexAvailable
public static boolean fboMultisampleAvailable
public static GL gl
public static GLU glu
Constructor Detail |
---|
public GLState(GL gl)
Method Detail |
---|
public static int createGLResource(int type)
public static int createGLResource(int type, int param)
public static java.lang.Object createCGResource(int type)
public static java.lang.Object createCGResource(int type, CGcontext context, java.lang.String source)
public static java.lang.Object createCGResource(int type, CGcontext context, java.lang.String source, int profile)
public static void deleteGLResource(int id, int type)
public static void deleteCGResource(java.lang.Object id, int type)
public static void deleteAllGLResources()
public void setOrthographicView(int w, int h)
public void saveView()
public void restoreView()
public void saveGLState()
public void restoreGLState()
public void saveGLMatrices()
public void restoreGLMatrices()
public void clearColorBuffer(int color)
public void copyTex(GLTexture srcTex, GLTexture destTex)
public void clearTex(int glid, int target, int color)
public void paintTex(int glid, int target, int w, int h, int color)
public static void enableSingleFBO()
public static void disableSingleFBO()
public static boolean isSingleFBO()
public static void enablePopFramebuffer()
public static void disablePopFramebuffer()
public static boolean isPopFramebufferEnabled()
public static void enablePushFramebuffer()
public static void disablePushFramebuffer()
public static boolean isPushFramebufferEnabled()
public static void setFramebufferFixed(boolean newVal)
public static boolean isFramebufferFixed()
public static java.lang.String getGLVersion()
public static int getGLMajor()
public static int getGLMinor()
public static java.lang.String getGLSLVersion()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |