Add key bindings for pause, message refresh.
[chocolate-doom.git] / src / r_draw.h
blobadaacd60f167637be0695e7227f3ad5dff12cc48
1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // Copyright(C) 1993-1996 Id Software, Inc.
5 // Copyright(C) 2005 Simon Howard
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 // 02111-1307, USA.
22 // DESCRIPTION:
23 // System specific interface stuff.
25 //-----------------------------------------------------------------------------
28 #ifndef __R_DRAW__
29 #define __R_DRAW__
34 extern lighttable_t* dc_colormap;
35 extern int dc_x;
36 extern int dc_yl;
37 extern int dc_yh;
38 extern fixed_t dc_iscale;
39 extern fixed_t dc_texturemid;
41 // first pixel in a column
42 extern byte* dc_source;
45 // The span blitting interface.
46 // Hook in assembler or system specific BLT
47 // here.
48 void R_DrawColumn (void);
49 void R_DrawColumnLow (void);
51 // The Spectre/Invisibility effect.
52 void R_DrawFuzzColumn (void);
53 void R_DrawFuzzColumnLow (void);
55 // Draw with color translation tables,
56 // for player sprite rendering,
57 // Green/Red/Blue/Indigo shirts.
58 void R_DrawTranslatedColumn (void);
59 void R_DrawTranslatedColumnLow (void);
61 void
62 R_VideoErase
63 ( unsigned ofs,
64 int count );
66 extern int ds_y;
67 extern int ds_x1;
68 extern int ds_x2;
70 extern lighttable_t* ds_colormap;
72 extern fixed_t ds_xfrac;
73 extern fixed_t ds_yfrac;
74 extern fixed_t ds_xstep;
75 extern fixed_t ds_ystep;
77 // start of a 64*64 tile image
78 extern byte* ds_source;
80 extern byte* translationtables;
81 extern byte* dc_translation;
84 // Span blitting for rows, floor/ceiling.
85 // No Sepctre effect needed.
86 void R_DrawSpan (void);
88 // Low resolution mode, 160x200?
89 void R_DrawSpanLow (void);
92 void
93 R_InitBuffer
94 ( int width,
95 int height );
98 // Initialize color translation tables,
99 // for player rendering etc.
100 void R_InitTranslationTables (void);
104 // Rendering function.
105 void R_FillBackScreen (void);
107 // If the view size is not full screen, draws a border around it.
108 void R_DrawViewBorder (void);
112 #endif