gestalt.demo.advanced
Class UsingMinimalRenderer
java.lang.Object
gestalt.shape.AbstractDrawable
gestalt.demo.advanced.UsingMinimalRenderer
- All Implemented Interfaces:
- Drawable
public class UsingMinimalRenderer
- extends AbstractDrawable
this demo shows a minimum gestalt setup.
it uses 'MinimalRenderer', the most primitive renderer.
instead of using gestalt shapes it uses plain opengl.
gestalt is just handling the window creation, the mouse-
and keyevents and of course the drawing of the drawables.
note that this is simplest way of using gestalt,
not the most efficient one.
|
Method Summary |
void |
display(GL gl,
GLU glu)
|
void |
draw(GLContext theContext)
this method is used to draw the drawable, when the context is ready. |
void |
init(GL gl,
GLU glu,
int theWidth,
int theHeight)
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UsingMinimalRenderer
public UsingMinimalRenderer()
draw
public void draw(GLContext theContext)
- Description copied from interface:
Drawable
- this method is used to draw the drawable, when the context is ready.
although the behavior sometimes varies and doesn t always need to
have a visual representation depending on the implementation.
- Parameters:
theContext - GLContext
init
public void init(GL gl,
GLU glu,
int theWidth,
int theHeight)
display
public void display(GL gl,
GLU glu)
main
public static void main(java.lang.String[] args)
processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009