public class SimpleRenderer extends java.lang.Object implements ImageSampler
Constructor and Description |
---|
SimpleRenderer() |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
renderBucket(int bx,
int by,
IntersectionState istate) |
public boolean prepare(Options options, Scene scene, int w, int h)
ImageSampler
prepare
in interface ImageSampler
w
- width of the imageh
- height of the imagepublic void render(Display display)
ImageSampler
render
in interface ImageSampler
display
- Display driver to send image data topublic void renderBucket(int bx, int by, IntersectionState istate)