1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
6 // Copyright (C) 1993-1996 by id Software, Inc.
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
18 // Gamma correction LUT.
19 // Functions to draw patches (by post) directly to screen.
20 // Functions to blit a block to the screen.
22 //-----------------------------------------------------------------------------
32 // Needed because we are refering to patches.
39 #define CENTERY (SCREENHEIGHT/2)
42 // Screen 0 is the screen updated by I_Update screen.
43 // Screen 1 is an extra buffer.
47 extern byte* screens[5];
49 extern int dirtybox[4];
51 extern byte gammatable[5][256];
56 // Allocates buffer screens, call before R_Init.
86 // Draw a linear block of pixels into the view buffer.
96 // Reads a linear block of pixels into the view buffer.
115 //-----------------------------------------------------------------------------
119 //-----------------------------------------------------------------------------