Package renderer.pipeline
Class Pipeline2
- java.lang.Object
-
- renderer.pipeline.Pipeline2
-
public final class Pipeline2 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 seventh rendering pipeline. It converts the transformation stage
Model2Worldto useMatrixtransformations instead of just usingVectortranslations. There are still seven pipeline stages.
-
-
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.
-
-
-
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
-
-