// References
 public void rebuildReferences(warp_RenderPipeline pipeline)
 {
     screen  = pipeline.screen;
     zBuffer = pipeline.zBuffer;
     width   = screen.width;
     height  = screen.height;
 }
        // Constructor
        public warp_Rasterizer(warp_RenderPipeline pipeline)
        {
            SHADED = P | E | T;

            rebuildReferences(pipeline);
            loadLightmap(pipeline.lightmap);
        }
Beispiel #3
0
 public warp_Scene(int w, int h)
 {
     width          = w;
     height         = h;
     renderPipeline = new warp_RenderPipeline(this, w, h);
     defaultCamera.setScreensize(w, h);
 }
Beispiel #4
0
        public void destroy()
        {
            objects = objectData.Count;
            foreach (warp_Object o in objectData.Values)
            {
                o.destroy();
            }

            objectData.Clear();
            lightData.Clear();
            materialData.Clear();
            cameraData.Clear();
            if (renderPipeline != null)
            {
                renderPipeline.Dispose();
            }
            renderPipeline = null;
            environment    = null;
            defaultCamera  = null;
            wobject        = null;
        }