Package org.sunflow.core.renderer
Class SimpleRenderer
java.lang.Object
org.sunflow.core.renderer.SimpleRenderer
- All Implemented Interfaces:
ImageSampler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Prepare the sampler for rendering an image of w x h pixelsvoid
Render the image to the specified display.void
renderBucket
(int bx, int by, IntersectionState istate)
-
Constructor Details
-
SimpleRenderer
public SimpleRenderer()
-
-
Method Details
-
prepare
Description copied from interface:ImageSampler
Prepare the sampler for rendering an image of w x h pixels- Specified by:
prepare
in interfaceImageSampler
w
- width of the imageh
- height of the image
-
render
Description copied from interface:ImageSampler
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.- Specified by:
render
in interfaceImageSampler
- Parameters:
display
- Display driver to send image data to
-
renderBucket
-