Added: prototype event system

This commit is contained in:
ZZYZX 2017-01-22 02:33:53 +02:00
commit ce616f9c06
7 changed files with 258 additions and 0 deletions

View file

@ -59,6 +59,7 @@
#include "r_data/colormaps.h"
#include "p_maputl.h"
#include "r_thread.h"
#include "events.h"
CVAR (String, r_viewsize, "", CVAR_NOSET)
CVAR (Bool, r_shadercolormaps, true, CVAR_ARCHIVE)
@ -840,6 +841,9 @@ void R_RenderActorView (AActor *actor, bool dontmaplines)
R_SetupBuffer ();
R_SetupFrame (actor);
// [ZZ] call event hook
E_RenderCamera();
// Clear buffers.
R_ClearClipSegs (0, viewwidth);
R_ClearDrawSegs ();