The number of components in the composite image, ie, the number of times
to call the draw method.
public abstract java.lang.String getComponentFrameName(int frameNum)
Give each component a name, such as "left" and "right" for anaglyph
public boolean copyFrameNumber(int frameNum)
Communicate to Camera3D instance if frame pixels should be copied to
This will almost always be true but some Generators can improve
performance by skipping the loadPixels() call and the System.arraycopy()
Call generateCompositeFrame several times with pixelStorage setup as
empty (black) images for all but one of the pixel arrays. This lets us
see how the generator is modifying each of the components. This is super
helpful for debugging a new generator.
For most generators this will work as intended. If for some reason it
does not work for your custom generator, override this method and write
something that works correctly.
public abstract void completedDraw(int frameNum,
This is called once after each call to the user's draw method. Typically
this is not needed.
public abstract void cleanup(processing.core.PApplet parent)
This is called after the last call to the user's draw method and before
the user's postDraw method. This should put the camera back so other
libraries like ControlP5 can function correctly.
public java.lang.String insertFrame(java.lang.String what,