Esempio n. 1
0
        /*
         * ===============
         * D_SetupFrame
         * ===============
         */
        public static void D_SetupFrame()
        {
            int i;

            if (render.r_dowarp)
            {
                d_viewbuffer = render.r_warpbuffer;
            }
            else
            {
                d_viewbuffer = screen.vid.buffer;
            }

            if (render.r_dowarp)
            {
                screenwidth = WARP_WIDTH;
            }
            else
            {
                screenwidth = (int)screen.vid.rowbytes;
            }

            d_roverwrapped = false;

            d_minmip = (int)d_mipcap.value;
            if (d_minmip > 3)
            {
                d_minmip = 3;
            }
            else if (d_minmip < 0)
            {
                d_minmip = 0;
            }

            for (i = 0; i < (NUM_MIPS - 1); i++)
            {
                d_scalemip[i] = basemip[i] * d_mipscale.value;
            }

            d_pdrawspans = D_DrawSpans8;
        }
Esempio n. 2
0
        /*
        ===============
        D_SetupFrame
        ===============
        */
        public static void D_SetupFrame()
        {
            int		i;

            if (render.r_dowarp)
                d_viewbuffer = render.r_warpbuffer;
            else
                d_viewbuffer = screen.vid.buffer;

            if (render.r_dowarp)
                screenwidth = WARP_WIDTH;
            else
                screenwidth = (int)screen.vid.rowbytes;

            d_roverwrapped = false;

            d_minmip = (int)d_mipcap.value;
            if (d_minmip > 3)
                d_minmip = 3;
            else if (d_minmip < 0)
                d_minmip = 0;

            for (i=0 ; i<(NUM_MIPS-1) ; i++)
                d_scalemip[i] = basemip[i] * d_mipscale.value;

            d_pdrawspans = D_DrawSpans8;
        }