- separation of software renderer from the rest of the code complete. All external access to the renderer is routed through the FRenderer interface class now, with two exceptions (2D texture drawing to a canvas and polymost testing code) that are handled by #defines.

SVN r3263 (trunk)
This commit is contained in:
Christoph Oelckers 2011-07-07 15:37:47 +00:00
commit 5bfcaab25c
37 changed files with 1677 additions and 1224 deletions

View file

@ -63,6 +63,7 @@
#include "gstrings.h"
#include "farchive.h"
#include "r_data/colormaps.h"
#include "r_renderer.h"
// MACROS ------------------------------------------------------------------
@ -523,7 +524,7 @@ bool AActor::SetState (FState *newstate, bool nofunction)
if (screen != NULL)
{
screen->StateChanged(this);
Renderer->StateChanged(this);
}
return true;
}
@ -3607,7 +3608,7 @@ AActor *AActor::StaticSpawn (const PClass *type, fixed_t ix, fixed_t iy, fixed_t
}
if (screen != NULL)
{
screen->StateChanged(actor);
Renderer->StateChanged(actor);
}
return actor;
}