|
static void | frontFace (PGraphics pg, int mode) |
|
static void | cullFace (PGraphics pg, int mode) |
|
static void | enable (PGraphics pg, int cap) |
|
static void | disable (PGraphics pg, int cap) |
|
|
static final boolean | GL_FALSE = false |
|
static final boolean | GL_TRUE = true |
|
static final int | GL_CW = 0x0900 |
|
static final int | GL_CCW = 0x0901 |
|
static final int | GL_FRONT = 0x0404 |
|
static final int | GL_BACK = 0x0405 |
|
static final int | GL_FRONT_AND_BACK = 0x0408 |
|
static final int | GL_CULL_FACE = 0x0B44 |
|
Some experimental methods to control face culling. I havn't got them to work in Processing yet.
- Author
- Peter Lager
static void shapes3d.utils.GL.cullFace |
( |
PGraphics |
pg, |
|
|
int |
mode |
|
) |
| |
|
static |
Indicates which polygons should be discarded (culled) before they are converted to screen coordinates. The mode is either GL_FRONT, GL_BACK, or G_FRONT_AND_BACK to indicate front-facing, back-facing or all polygons. Culling can be enabled / disabled with the glEnable(boolean) or glDisable(boolean) methods.
- Parameters
-
pg | the OpenGL drawing surface |
mode | GL_TRUE or GL_FALSE |
static void shapes3d.utils.GL.disable |
( |
PGraphics |
pg, |
|
|
int |
cap |
|
) |
| |
|
static |
- Parameters
-
pg | the OpenGL drawing surface |
cap | capability |
static void shapes3d.utils.GL.enable |
( |
PGraphics |
pg, |
|
|
int |
cap |
|
) |
| |
|
static |
- Parameters
-
pg | the OpenGL drawing surface |
cap | capability |
static void shapes3d.utils.GL.frontFace |
( |
PGraphics |
pg, |
|
|
int |
mode |
|
) |
| |
|
static |
Controls how front-facing polygons are determined. By default, mode is GL_CCW, which corresponds to a counterclockwise orientation of the ordered vertices of a projected polygon in window coordinates. If mode is GL_CW, faces with a clockwise orientation are considered front-facing.
- Parameters
-
pg | the OpenGL drawing surface |
mode | either GL_CCW or GL_CW |
The documentation for this class was generated from the following file:
- /Users/peter/git/shapes3d-repos/Shapes 3D/src/shapes3d/utils/GL.java