de.grogra.ray2
public interface Renderer
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Options opts,
ProgressMonitor progress)
Initializes the renderer.
|
void |
render(Scene scene,
Sensor camera,
Matrix4d cameraTransformation,
int width,
int height,
java.awt.image.ImageObserver obs)
Renders an image of a
scene. |
void |
stop()
This method is invoked from another thread to stop a running
renderer.
|
void initialize(Options opts, ProgressMonitor progress)
opts - options to use (may be null)progress - monitor to display rendering progress
(may be null)void render(Scene scene, Sensor camera, Matrix4d cameraTransformation, int width, int height, java.awt.image.ImageObserver obs)
scene.scene - scene to rendercamera - camera to usecameraTransformation - transformation from camera coordinates
to world coordinateswidth - width of imageheight - height of imageobs - the observer receives the image datavoid stop()
stop and the return from the invocation
of render.