Beispiel #1
0
        /*
         * ==============
         * R_BeginEdgeFrame
         * ==============
         */
        static void R_BeginEdgeFrame()
        {
            int v;

            edge_p   = 0;
            edge_max = r_numallocatededges;

            surface_p = 1;            // background is surface 1,
            //  surface 0 is a dummy
            surfaces[0].spans = null; // no background spans yet
            surfaces[0].flags = model.SURF_DRAWBACKGROUND;

            // put the background behind everything in the world
            if (r_draworder.value != 0)
            {
                pdrawfunc       = R_GenerateSpansBackward;
                surfaces[0].key = 0;
                r_currentkey    = 1;
            }
            else
            {
                pdrawfunc       = R_GenerateSpans;
                surfaces[0].key = 0x7FFFFFFF;
                r_currentkey    = 0;
            }

            // FIXME: set with memset
            for (v = r_refdef.vrect.y; v < r_refdef.vrectbottom; v++)
            {
                newedges[v] = removeedges[v] = null;
            }
        }
Beispiel #2
0
        /*
        ==============
        R_BeginEdgeFrame
        ==============
        */
        static void R_BeginEdgeFrame()
        {
            int		v;

            edge_p = 0;
            edge_max = r_numallocatededges;

            surface_p = 1;	// background is surface 1,
                                        //  surface 0 is a dummy
            surfaces[0].spans = null;	// no background spans yet
            surfaces[0].flags = model.SURF_DRAWBACKGROUND;

            // put the background behind everything in the world
            if (r_draworder.value != 0)
            {
                pdrawfunc = R_GenerateSpansBackward;
                surfaces[0].key = 0;
                r_currentkey = 1;
            }
            else
            {
                pdrawfunc = R_GenerateSpans;
                surfaces[0].key = 0x7FFFFFFF;
                r_currentkey = 0;
            }

            // FIXME: set with memset
            for (v=r_refdef.vrect.y ; v<r_refdef.vrectbottom ; v++)
            {
                newedges[v] = removeedges[v] = null;
            }
        }