public class Pipeline extends 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 third rendering pipeline. It is essentially the
same as the previous renderer but it adds an optional antialiasing
rasterizing stage, RasterizeAntialias
, that is an alternative
to the regular rasterizing stage, Rasterize
. (So there are
still just four pipeline stages.)
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
static boolean |
debug_visible |
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 debug_visible
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