public class Pipeline extends java.lang.Object
Scene
data structure
and a FrameBuffer
data structure. This renderer mutates
the FrameBuffer
's current viewport so that it is filled
in with the rendered image of the scene represented by the
Scene
object.
This implements our fifth rendering pipeline. This pipeline can
process the colors stored in each Vertex
. This renderer
has the same four pipeline stages but Vertex
color is
interpolated by the Clip
stage and Vertex
color
is also interpolated to pixels by the Rasterize
stage.
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
static boolean |
doAntialiasing |
Constructor and Description |
---|
Pipeline() |
Modifier and Type | Method and Description |
---|---|
static void |
render(Scene scene,
FrameBuffer fb)
Mutate the
FrameBuffer 's current viewport so that
it holds the rendered image of the Scene object. |
public static boolean debug
public static boolean doAntialiasing
public Pipeline()
public static void render(Scene scene, FrameBuffer fb)
FrameBuffer
's current viewport so that
it holds the rendered image of the Scene
object.scene
- Scene
object to renderfb
- FrameBuffer
to hold rendered image of the Scene