gestalt.demo.advanced
Class UsingMinimalRenderer

java.lang.Object
  extended by gestalt.shape.AbstractDrawable
      extended by 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.


Constructor Summary
UsingMinimalRenderer()
           
 
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 gestalt.shape.AbstractDrawable
add, getSortData, getSortValue, isActive, isSortable, setSortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsingMinimalRenderer

public UsingMinimalRenderer()
Method Detail

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