Package renderer.pipeline
Class Pipeline2
- java.lang.Object
-
- renderer.pipeline.Pipeline2
-
public final class Pipeline2 extends Object
This renderer takes as its input aScene
data structure and aFrameBuffer.Viewport
within aFrameBuffer
data structure. This renderer mutates theFrameBuffer.Viewport
so that it is filled in with the rendered image of the geometric scene represented by theScene
object.This implements our seventh rendering pipeline. It converts the transformation stage
Model2World
to useMatrix
transformations instead of just usingVector
translations. There are still seven pipeline stages.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
render(Scene scene, FrameBuffer fb)
Mutate theFrameBuffer
's defaultFrameBuffer.Viewport
so that it holds the rendered image of theScene
object.static void
render(Scene scene, FrameBuffer.Viewport vp)
Mutate theFrameBuffer
's givenFrameBuffer.Viewport
so that it holds the rendered image of theScene
object.
-
-
-
Method Detail
-
render
public static void render(Scene scene, FrameBuffer fb)
Mutate theFrameBuffer
's defaultFrameBuffer.Viewport
so that it holds the rendered image of theScene
object.- Parameters:
scene
-Scene
object to renderfb
-FrameBuffer
to hold rendered image of theScene
-
render
public static void render(Scene scene, FrameBuffer.Viewport vp)
Mutate theFrameBuffer
's givenFrameBuffer.Viewport
so that it holds the rendered image of theScene
object.- Parameters:
scene
-Scene
object to rendervp
-FrameBuffer.Viewport
to hold rendered image of theScene
-
-