doom

a minimalistic implementation of doom
git clone git://ssnf.xyz/doom
Log | Files | Refs

r_draw.h (1063B)


      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_DRAW__
     24 #define __R_DRAW__
     25 
     26 
     27 #ifdef __GNUG__
     28 #pragma interface
     29 #endif
     30 
     31 
     32 extern lighttable_t*	dc_colormap;
     33 extern int		dc_x;
     34 extern int		dc_yl;
     35 extern int		dc_yh;
     36 extern fixed_t		dc_iscale;
     37 extern fixed_t		dc_texturemid;
     38 
     39 
     40 extern byte*		dc_source;		
     41 
     42 
     43 
     44 
     45 
     46 void 	R_DrawColumn (void);
     47 void 	R_DrawColumnLow (void);
     48 
     49 
     50 void 	R_DrawFuzzColumn (void);
     51 void 	R_DrawFuzzColumnLow (void);
     52 
     53 
     54 
     55 
     56 void	R_DrawTranslatedColumn (void);
     57 void	R_DrawTranslatedColumnLow (void);
     58 
     59 void
     60 R_VideoErase
     61 ( unsigned	ofs,
     62   int		count );
     63 
     64 extern int		ds_y;
     65 extern int		ds_x1;
     66 extern int		ds_x2;
     67 
     68 extern lighttable_t*	ds_colormap;
     69 
     70 extern fixed_t		ds_xfrac;
     71 extern fixed_t		ds_yfrac;
     72 extern fixed_t		ds_xstep;
     73 extern fixed_t		ds_ystep;
     74 
     75 
     76 extern byte*		ds_source;		
     77 
     78 extern byte*		translationtables;
     79 extern byte*		dc_translation;
     80 
     81 
     82 
     83 
     84 void 	R_DrawSpan (void);
     85 
     86 
     87 void 	R_DrawSpanLow (void);
     88 
     89 
     90 void
     91 R_InitBuffer
     92 ( int		width,
     93   int		height );
     94 
     95 
     96 
     97 
     98 void	R_InitTranslationTables (void);
     99 
    100 
    101 
    102 
    103 void R_FillBackScreen (void);
    104 
    105 
    106 void R_DrawViewBorder (void);
    107 
    108 
    109 
    110 #endif
    111 
    112 
    113 
    114 
    115