summaryrefslogtreecommitdiff
path: root/src/v_video.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/v_video.h')
-rw-r--r--src/v_video.h103
1 files changed, 39 insertions, 64 deletions
diff --git a/src/v_video.h b/src/v_video.h
index 3782b4eb..0c722478 100644
--- a/src/v_video.h
+++ b/src/v_video.h
@@ -32,10 +32,8 @@
#include "doomtype.h"
-#include "doomdef.h"
-
// Needed because we are refering to patches.
-#include "r_data.h"
+#include "v_patch.h"
//
// VIDEO
@@ -44,78 +42,55 @@
#define CENTERY (SCREENHEIGHT/2)
-// Screen 0 is the screen updated by I_Update screen.
-// Screen 1 is an extra buffer.
+extern int dirtybox[4];
+extern byte *tinttable;
+// Allocates buffer screens, call before R_Init.
+void V_Init (void);
-extern byte *screens[5];
+// Draw a block from the specified source screen to the screen.
-extern int dirtybox[4];
+void V_CopyRect(int srcx, int srcy, byte *source,
+ int width, int height,
+ int destx, int desty);
-extern const byte gammatable[5][256];
-extern int usegamma;
+void V_DrawPatch(int x, int y, patch_t *patch);
+void V_DrawPatchFlipped(int x, int y, patch_t *patch);
+void V_DrawTLPatch(int x, int y, patch_t *patch);
+void V_DrawAltTLPatch(int x, int y, patch_t * patch);
+void V_DrawShadowedPatch(int x, int y, patch_t *patch);
+void V_DrawPatchDirect(int x, int y, patch_t *patch);
+// Draw a linear block of pixels into the view buffer.
-// Allocates buffer screens, call before R_Init.
-void V_Init (void);
+void V_DrawBlock(int x, int y, int width, int height, byte *src);
+void V_MarkRect(int x, int y, int width, int height);
-void
-V_CopyRect
-( int srcx,
- int srcy,
- int srcscrn,
- int width,
- int height,
- int destx,
- int desty,
- int destscrn );
-
-void
-V_DrawPatch
-( int x,
- int y,
- int scrn,
- patch_t* patch);
-
-void
-V_DrawPatchDirect
-( int x,
- int y,
- int scrn,
- patch_t* patch );
+// Draw a raw screen lump
+void V_DrawRawScreen(byte *raw);
-// Draw a linear block of pixels into the view buffer.
-void
-V_DrawBlock
-( int x,
- int y,
- int scrn,
- int width,
- int height,
- byte* src );
-
-// Reads a linear block of pixels into the view buffer.
-void
-V_GetBlock
-( int x,
- int y,
- int scrn,
- int width,
- int height,
- byte* dest );
-
-
-void
-V_MarkRect
-( int x,
- int y,
- int width,
- int height );
-
-void V_ScreenShot(void);
+// Temporarily switch to using a different buffer to draw graphics, etc.
+
+void V_UseBuffer(byte *buffer);
+
+// Return to using the normal screen buffer to draw graphics.
+
+void V_RestoreBuffer(void);
+
+// Save a screenshot of the current screen to a file, named in the
+// format described in the string passed to the function, eg.
+// "DOOM%02i.pcx"
+
+void V_ScreenShot(char *format);
+
+// Load the lookup table for translucency calculations from the TINTTAB
+// lump.
+
+void V_LoadTintTable(void);
#endif
+