org.sunflow.core.renderer
Class ProgressiveRenderer
java.lang.Object
org.sunflow.core.renderer.ProgressiveRenderer
- ImageSampler
public class ProgressiveRenderer
extends java.lang.Object
boolean | prepare(Options options, Scene scene, int w, int h) - Prepare the sampler for rendering an image of w x h pixels
|
void | render(Display display) - Render the image to the specified display.
|
ProgressiveRenderer
public ProgressiveRenderer()
prepare
public boolean prepare(Options options,
Scene scene,
int w,
int h)
Prepare the sampler for rendering an image of w x h pixels
- prepare in interface ImageSampler
w
- width of the imageh
- height of the image
render
public void render(Display display)
Render the image to the specified display. The sampler can assume the
display has been opened and that it will be closed after the method
returns.
- render in interface ImageSampler
display
- Display driver to send image data to