# Correct the needed linklibs in curl-config also.
[AROS-Contrib.git] / Games / Doom / r_plane.h
blobaad18c1f7e31e2420ab72d5ae6626813a5235633
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 // Refresh, visplane stuff (floor, ceilings).
20 //-----------------------------------------------------------------------------
23 #ifndef __R_PLANE__
24 #define __R_PLANE__
27 #include "doomdef.h"
28 #include "r_data.h"
30 #ifdef __GNUG__
31 #pragma interface
32 #endif
35 // Visplane related.
36 extern short* lastopening;
39 typedef void (*planefunction_t) (int top, int bottom);
41 extern planefunction_t floorfunc;
42 extern planefunction_t ceilingfunc_t;
44 //extern short floorclip[SCREENWIDTH];
45 //extern short ceilingclip[SCREENWIDTH];
46 extern short *floorclip;
47 extern short *ceilingclip;
49 //extern FAR fixed_t yslope[SCREENHEIGHT];
50 //extern FAR fixed_t distscale[SCREENWIDTH];
51 extern fixed_t *yslope;
52 extern fixed_t *distscale;
54 void resinit_r_plane (void); //called before anything else
56 void R_InitPlanes (void);
57 void R_ClearPlanes (void);
59 void
60 R_MapPlane
61 ( int y,
62 int x1,
63 int x2 );
65 void
66 R_MakeSpans
67 ( int x,
68 int t1,
69 int b1,
70 int t2,
71 int b2 );
73 void R_DrawPlanes (void);
75 visplane_t*
76 R_FindPlane
77 ( fixed_t height,
78 int picnum,
79 int lightlevel );
81 visplane_t*
82 R_CheckPlane
83 ( visplane_t* pl,
84 int start,
85 int stop );
89 #endif
90 //-----------------------------------------------------------------------------
92 // $Log$
93 // Revision 1.1 2000/02/29 18:21:06 stegerg
94 // Doom port based on ADoomPPC. Read README.AROS!
97 //-----------------------------------------------------------------------------