XenevaOS
Loading...
Searching...
No Matches
r_draw.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 2005-2014 Simon Howard
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// DESCRIPTION:
16// System specific interface stuff.
17//
18
19
20#ifndef __R_DRAW__
21#define __R_DRAW__
22
23
24
25
27extern int dc_x;
28extern int dc_yl;
29extern int dc_yh;
30extern fixed_t dc_iscale;
32
33// first pixel in a column
34extern byte* dc_source;
35
36
37// The span blitting interface.
38// Hook in assembler or system specific BLT
39// here.
40void R_DrawColumn (void);
41void R_DrawColumnLow (void);
42
43// The Spectre/Invisibility effect.
44void R_DrawFuzzColumn (void);
45void R_DrawFuzzColumnLow (void);
46
47// Draw with color translation tables,
48// for player sprite rendering,
49// Green/Red/Blue/Indigo shirts.
50void R_DrawTranslatedColumn (void);
52
53void
55( unsigned ofs,
56 int count );
57
58extern int ds_y;
59extern int ds_x1;
60extern int ds_x2;
61
63
64extern fixed_t ds_xfrac;
65extern fixed_t ds_yfrac;
66extern fixed_t ds_xstep;
67extern fixed_t ds_ystep;
68
69// start of a 64*64 tile image
70extern byte* ds_source;
71
72extern byte* translationtables;
73extern byte* dc_translation;
74
75
76// Span blitting for rows, floor/ceiling.
77// No Sepctre effect needed.
78void R_DrawSpan (void);
79
80// Low resolution mode, 160x200?
81void R_DrawSpanLow (void);
82
83
84void
86( int width,
87 int height );
88
89
90// Initialize color translation tables,
91// for player rendering etc.
92void R_InitTranslationTables (void);
93
94
95
96// Rendering function.
97void R_FillBackScreen (void);
98
99// If the view size is not full screen, draws a border around it.
100void R_DrawViewBorder (void);
101
102
103
104#endif
int fixed_t
Definition m_fixed.h:32
byte lighttable_t
Definition r_defs.h:298
void R_DrawSpanLow(void)
Definition r_draw.c:719
byte * dc_source
Definition r_draw.c:90
byte * ds_source
Definition r_draw.c:582
fixed_t dc_texturemid
Definition r_draw.c:87
void R_InitTranslationTables(void)
Definition r_draw.c:530
int dc_yh
Definition r_draw.c:85
lighttable_t * ds_colormap
Definition r_draw.c:574
void R_DrawTranslatedColumn(void)
Definition r_draw.c:424
void R_DrawSpan(void)
Definition r_draw.c:590
int dc_x
Definition r_draw.c:83
fixed_t ds_xfrac
Definition r_draw.c:576
void R_DrawTranslatedColumnLow(void)
Definition r_draw.c:468
int dc_yl
Definition r_draw.c:84
void R_DrawColumn(void)
Definition r_draw.c:102
fixed_t ds_yfrac
Definition r_draw.c:577
void R_DrawFuzzColumnLow(void)
Definition r_draw.c:342
byte * dc_translation
Definition r_draw.c:421
int ds_x2
Definition r_draw.c:572
int ds_x1
Definition r_draw.c:571
void R_DrawColumnLow(void)
Definition r_draw.c:208
fixed_t dc_iscale
Definition r_draw.c:86
void R_FillBackScreen(void)
Definition r_draw.c:812
fixed_t ds_xstep
Definition r_draw.c:578
fixed_t ds_ystep
Definition r_draw.c:579
byte * translationtables
Definition r_draw.c:422
int ds_y
Definition r_draw.c:570
void R_VideoErase(unsigned ofs, int count)
Definition r_draw.c:920
void R_DrawViewBorder(void)
Definition r_draw.c:941
void R_InitBuffer(int width, int height)
Definition r_draw.c:778
lighttable_t * dc_colormap
Definition r_draw.c:82
void R_DrawFuzzColumn(void)
Definition r_draw.c:283