Move software renderer into its own namespace to isolate its globals and make

any access explicit. This reveals the places in the code where they are being
accessed where they shouldn't and prevents accidental usage.
This commit is contained in:
Magnus Norddahl 2016-12-01 02:38:32 +01:00
commit 9416d436fe
37 changed files with 231 additions and 157 deletions

View file

@ -47,6 +47,9 @@
#include "r_things.h"
#include "v_video.h"
namespace swrenderer
{
// I should have commented this stuff better.
//
// dc_temp is the buffer R_DrawColumnHoriz writes into.
@ -1130,3 +1133,5 @@ void R_FillColumnHorizP_C (void)
dest += 8;
} while (--count);
}
}