Shapes 3D  3.0
 All Classes Functions Variables Pages
shapes3d.utils.GL Class Reference

Static Public Member Functions

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 Public Attributes

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
 

Detailed Description

Some experimental methods to control face culling. I havn't got them to work in Processing yet.

Author
Peter Lager

Member Function Documentation

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
pgthe OpenGL drawing surface
modeGL_TRUE or GL_FALSE
static void shapes3d.utils.GL.disable ( PGraphics  pg,
int  cap 
)
static
Parameters
pgthe OpenGL drawing surface
capcapability
static void shapes3d.utils.GL.enable ( PGraphics  pg,
int  cap 
)
static
Parameters
pgthe OpenGL drawing surface
capcapability
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
pgthe OpenGL drawing surface
modeeither GL_CCW or GL_CW

The documentation for this class was generated from the following file: