# Correct the needed linklibs in curl-config also.
[AROS-Contrib.git] / Games / Doom / r_draw.h
blob9ce8237e95fdea54d31284e3860794fcdc0f5445
1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // $Id$
5 //
6 // Copyright (C) 1993-1996 by id Software, Inc.
7 //
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
15 // for more details.
17 // DESCRIPTION:
18 // System specific interface stuff.
20 //-----------------------------------------------------------------------------
23 #ifndef __R_DRAW__
24 #define __R_DRAW__
26 #ifdef AMIGA
27 #include "amiga_macros.h"
28 #endif
30 #ifdef __GNUG__
31 #pragma interface
32 #endif
35 extern lighttable_t* dc_colormap;
36 extern int dc_x;
37 extern int dc_yl;
38 extern int dc_yh;
39 extern fixed_t dc_iscale;
40 extern fixed_t dc_texturemid;
42 // first pixel in a column
43 extern byte* dc_source;
46 void resinit_r_draw (void);
49 // The span blitting interface.
50 // Hook in assembler or system specific BLT
51 // here.
52 void R_DrawColumn (void);
53 void R_DrawColumnLow (void);
55 // The Spectre/Invisibility effect.
56 void R_DrawFuzzColumn (void);
57 void R_DrawFuzzColumnLow (void);
59 // Draw with color translation tables,
60 // for player sprite rendering,
61 // Green/Red/Blue/Indigo shirts.
62 void R_DrawTranslatedColumn (void);
63 void R_DrawTranslatedColumnLow (void);
65 void
66 R_VideoErase
67 ( unsigned ofs,
68 int count );
70 extern int ds_y;
71 extern int ds_x1;
72 extern int ds_x2;
74 extern lighttable_t* ds_colormap;
76 extern fixed_t ds_xfrac;
77 extern fixed_t ds_yfrac;
78 extern fixed_t ds_xstep;
79 extern fixed_t ds_ystep;
81 // start of a 64*64 tile image
82 extern byte* ds_source;
84 extern byte* translationtables;
85 extern byte* dc_translation;
88 // Span blitting for rows, floor/ceiling.
89 // No Sepctre effect needed.
90 void R_DrawSpan (void);
92 // Low resolution mode, 160x200?
93 void R_DrawSpanLow (void);
95 void
96 R_InitBuffer
97 ( int width,
98 int height );
101 // Initialize color translation tables,
102 // for player rendering etc.
103 void R_InitTranslationTables (void);
107 // Rendering function.
108 void R_FillBackScreen (void);
110 // If the view size is not full screen, draws a border around it.
111 void R_DrawViewBorder (void);
115 #endif
116 //-----------------------------------------------------------------------------
118 // $Log$
119 // Revision 1.1 2000/02/29 18:21:06 stegerg
120 // Doom port based on ADoomPPC. Read README.AROS!
123 //-----------------------------------------------------------------------------