Added per-thing render hooks

This commit is contained in:
ZZYZX 2017-01-22 07:04:35 +02:00
commit 302af61686
5 changed files with 97 additions and 20 deletions

View file

@ -37,6 +37,7 @@
#include "a_pickups.h"
#include "d_player.h"
#include "g_levellocals.h"
#include "events.h"
#include "gl/system/gl_interface.h"
#include "gl/system/gl_framebuffer.h"
@ -649,6 +650,8 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal)
if (thing == nullptr)
return;
DRenderEventHandler::AutoThing autoRenderThingEvent(thing);
// [ZZ] allow CustomSprite-style direct picnum specification
bool isPicnumOverride = thing->picnum.isValid();