diff options
author | James Haley | 2010-08-29 14:50:13 +0000 |
---|---|---|
committer | James Haley | 2010-08-29 14:50:13 +0000 |
commit | 0044cf8336b5a623b5a56a2827a938276363770e (patch) | |
tree | b4188bf352de1804db7f475290510fc227209017 /src/v_video.h | |
parent | bc72291b8270486f7b608a569b9675ab63bd80fb (diff) | |
download | chocolate-doom-0044cf8336b5a623b5a56a2827a938276363770e.tar.gz chocolate-doom-0044cf8336b5a623b5a56a2827a938276363770e.tar.bz2 chocolate-doom-0044cf8336b5a623b5a56a2827a938276363770e.zip |
Added patch clipping callback mechanism, since Strife needs to modify
all the V_DrawPatch functions that it uses to return if the patch
overlaps the edge of or is completely outside of the framebuffer. This
could be extended to handle Final DOOM as well if it proves
satisfactory.
Subversion-branch: /branches/strife-branch
Subversion-revision: 1972
Diffstat (limited to 'src/v_video.h')
-rw-r--r-- | src/v_video.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/v_video.h b/src/v_video.h index 0c722478..f7952eaa 100644 --- a/src/v_video.h +++ b/src/v_video.h @@ -46,6 +46,13 @@ extern int dirtybox[4]; extern byte *tinttable; +// haleyjd 08/28/10: implemented for Strife support +// haleyjd 08/28/10: Patch clipping callback, implemented to support Choco +// Strife. +typedef boolean (*vpatchclipfunc_t)(patch_t *, int, int); +void V_SetPatchClipCallback(vpatchclipfunc_t func); + + // Allocates buffer screens, call before R_Init. void V_Init (void); |