org.sunflow.core
Interface ImageSampler
- BucketRenderer, ProgressiveRenderer, SimpleRenderer
public interface ImageSampler
This interface represents an image sampling algorithm capable of rendering
the entire image. Implementations are responsible for anti-aliasing and
filtering.
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.
|
prepare
public boolean prepare(Options options,
Scene scene,
int w,
int h)
Prepare the sampler for rendering an image of w x h pixels
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.
display
- Display driver to send image data to