Esempio n. 1
0
 // 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);
 }
Esempio n. 2
0
 // References
 public void rebuildReferences(RenderPipeline pipeline)
 {
     screen = pipeline.screen;
     zBuffer = pipeline.zBuffer;
     idBuffer = pipeline.idBuffer;
     width = screen.w;
     height = screen.h;
     useIdBuffer = pipeline.useIdBuffer;
 }