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 third rendering pipeline. This pipeline can process the colors stored in each
Model
. This renderer has the same four pipeline stages butVertex
colors are now interpolated to pixels by the raterization stage.This second version of the rendering pipeline does each stage of the pipeline on the entire scene before it moves on to the next stage. So each stage of the pipeline produces a new Scene object that is the transformation of the Scene object from the previous stage.
-
-
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
-
-