// References public void rebuildReferences(RenderPipeline pipeline) { screen = pipeline.screen; zBuffer = pipeline.zBuffer; idBuffer = pipeline.idBuffer; width = screen.w; height = screen.h; useIdBuffer = pipeline.useIdBuffer; }
public Scene(int w, int h) { showInfo(); width = w; height = h; renderPipeline = new RenderPipeline(this, w, h); }
// References public void rebuildReferences(RenderPipeline pipeline) { screen = pipeline.screen; zBuffer = pipeline.zBuffer; idBuffer = pipeline.idBuffer; width = screen.w; height = screen.h; useIdBuffer = pipeline.useIdBuffer; }
// Constructor public Rasterizer(RenderPipeline pipeline) { rebuildReferences(pipeline); loadLightmap(pipeline.lightmap); }
public Scene(int w, int h) { showInfo(); width = w; height = h; renderPipeline = new RenderPipeline(this, w, h); }
// Constructor public Rasterizer(RenderPipeline pipeline) { rebuildReferences(pipeline); loadLightmap(pipeline.lightmap); }