gzz.gfx.gl
Class IrregularFrame

java.lang.Object
  |
  +--gzz.gfx.gl.IrregularFrame

public abstract class IrregularFrame
extends java.lang.Object

Encapsulate the python class for creating irregularframe renderables.

The irregularframe renderables should be placed in two different coordinate systems, the first being the coordinate system of the rectangle of which the irregularframe is a cutout. The second coordinate system gives the edges of the cutout as its unit square.


Constructor Summary
IrregularFrame()
           
 
Method Summary
static IrregularFrame create(float x0, float y0, float x1, float y1, float border, float ripple)
           
static IrregularFrame create(float x0, float y0, float x1, float y1, float border, float ripple, int type)
           
abstract  Vob getBlank()
          Get a renderable which will draw over ALL pixels drawn by the renderables returned by getContent() and getFrame(), and possibly others, but probably faster.
abstract  Vob getContent()
          Return the renderable which will touch the pixels that should be inside the frame.
abstract  Vob getFrame()
          Return the renderable which will draw the frame.
static void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IrregularFrame

public IrregularFrame()
Method Detail

getContent

public abstract Vob getContent()
Return the renderable which will touch the pixels that should be inside the frame.


getFrame

public abstract Vob getFrame()
Return the renderable which will draw the frame. May draw pixels inside the getContent() area as well.


getBlank

public abstract Vob getBlank()
Get a renderable which will draw over ALL pixels drawn by the renderables returned by getContent() and getFrame(), and possibly others, but probably faster. Useful for clearing the stencil buffer.


init

public static void init()

create

public static IrregularFrame create(float x0,
                                    float y0,
                                    float x1,
                                    float y1,
                                    float border,
                                    float ripple)

create

public static IrregularFrame create(float x0,
                                    float y0,
                                    float x1,
                                    float y1,
                                    float border,
                                    float ripple,
                                    int type)