// Constructor
        public warp_Rasterizer(warp_RenderPipeline pipeline)
        {
            shaded = P | E | T;

            rebuildReferences(pipeline);
            loadLightmap(pipeline.lightmap);
        }
Example #2
0
		public warp_Scene(int w, int h)
		{
			showInfo();
			width=w;
			height=h;
			renderPipeline = new warp_RenderPipeline(this,w,h);
		}
 // References
 public void rebuildReferences(warp_RenderPipeline pipeline)
 {
     screen=pipeline.screen;
     zBuffer=pipeline.zBuffer;
     idBuffer=pipeline.idBuffer;
     width=screen.width;
     height=screen.height;
     useIdBuffer=pipeline.useId;
 }
 public warp_Scene(int width, int height)
 {
     renderPipeline = new warp_RenderPipeline(this, width, height);
 }