r_plane.h (819B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #ifndef __R_PLANE__ 24 #define __R_PLANE__ 25 26 27 #include "r_data.h" 28 29 #ifdef __GNUG__ 30 #pragma interface 31 #endif 32 33 34 35 extern short* lastopening; 36 37 38 typedef void (*planefunction_t) (int top, int bottom); 39 40 extern planefunction_t floorfunc; 41 extern planefunction_t ceilingfunc_t; 42 43 extern short floorclip[SCREENWIDTH]; 44 extern short ceilingclip[SCREENWIDTH]; 45 46 extern fixed_t yslope[SCREENHEIGHT]; 47 extern fixed_t distscale[SCREENWIDTH]; 48 49 void R_InitPlanes (void); 50 void R_ClearPlanes (void); 51 52 void 53 R_MapPlane 54 ( int y, 55 int x1, 56 int x2 ); 57 58 void 59 R_MakeSpans 60 ( int x, 61 int t1, 62 int b1, 63 int t2, 64 int b2 ); 65 66 void R_DrawPlanes (void); 67 68 visplane_t* 69 R_FindPlane 70 ( fixed_t height, 71 int picnum, 72 int lightlevel ); 73 74 visplane_t* 75 R_CheckPlane 76 ( visplane_t* pl, 77 int start, 78 int stop ); 79 80 81 82 #endif 83 84 85 86 87