Package renderer.pipeline
Class Pipeline
- java.lang.Object
-
- renderer.pipeline.Pipeline
-
public final class Pipeline extends Object
This renderer takes as its input aScenedata structure and aFrameBuffer.Viewportwithin aFrameBufferdata structure. This renderer mutates theFrameBuffer.Viewportso that it is filled in with the rendered image of the geometric scene represented by theSceneobject.This implements our sixth rendering pipeline. It adds a view volume normalization stage,
View2Camera, that converts aCamera's configurable view volume into the normalized view volume used by theClippipeline stage. Coordinates relative to theCamera's arbitrary view volume are called "view coordinates" and coordinates relative to the normalized view volume are called "camera coordinates", so the new pipeline stage converts vertex coordinates from view coordinates to camera coordinates. There are six pipeline stages.
-
-
Field Summary
Fields Modifier and Type Field Description static ColorDEFAULT_COLOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidrender(Scene scene, FrameBuffer fb)Mutate theFrameBuffer's defaultFrameBuffer.Viewportso that it holds the rendered image of theSceneobject.static voidrender(Scene scene, FrameBuffer.Viewport vp)Mutate theFrameBuffer's givenFrameBuffer.Viewportso that it holds the rendered image of theSceneobject.
-
-
-
Field Detail
-
DEFAULT_COLOR
public static Color DEFAULT_COLOR
-
-
Method Detail
-
render
public static void render(Scene scene, FrameBuffer fb)
Mutate theFrameBuffer's defaultFrameBuffer.Viewportso that it holds the rendered image of theSceneobject.- Parameters:
scene-Sceneobject to renderfb-FrameBufferto hold rendered image of theScene
-
render
public static void render(Scene scene, FrameBuffer.Viewport vp)
Mutate theFrameBuffer's givenFrameBuffer.Viewportso that it holds the rendered image of theSceneobject.- Parameters:
scene-Sceneobject to rendervp-FrameBuffer.Viewportto hold rendered image of theScene
-
-