// C O N S T R U C T O R S public RenderPipeline(Scene scene, int w, int h) { System.Drawing.Color.Black.ToArgb(); this.scene = scene; screen = new Screen(w, h); zBuffer = new uint[screen.w * screen.h]; rasterizer = new Rasterizer(this); }
// References public void rebuildReferences(RenderPipeline pipeline) { screen = pipeline.screen; zBuffer = pipeline.zBuffer; idBuffer = pipeline.idBuffer; width = screen.w; height = screen.h; useIdBuffer = pipeline.useIdBuffer; }