123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- #ifndef __R_MAIN__
- #define __R_MAIN__
- #include "d_player.h"
- #include "r_data.h"
- #ifdef __GNUG__
- #pragma interface
- #endif
- extern fixed_t viewcos;
- extern fixed_t viewsin;
- extern int viewwidth;
- extern int viewheight;
- extern int viewwindowx;
- extern int viewwindowy;
- extern int centerx;
- extern int centery;
- extern fixed_t centerxfrac;
- extern fixed_t centeryfrac;
- extern fixed_t projection;
- extern int validcount;
- extern int linecount;
- extern int loopcount;
- #define LIGHTLEVELS 16
- #define LIGHTSEGSHIFT 4
- #define MAXLIGHTSCALE 48
- #define LIGHTSCALESHIFT 12
- #define MAXLIGHTZ 128
- #define LIGHTZSHIFT 20
- extern lighttable_t* scalelight[LIGHTLEVELS][MAXLIGHTSCALE];
- extern lighttable_t* scalelightfixed[MAXLIGHTSCALE];
- extern lighttable_t* zlight[LIGHTLEVELS][MAXLIGHTZ];
- extern int extralight;
- extern lighttable_t* fixedcolormap;
- #define NUMCOLORMAPS 32
- extern int detailshift;
- extern void (*colfunc) ( lighttable_t * ds_colormap,
- byte * ds_source );
- extern void (*basecolfunc) ( lighttable_t * ds_colormap,
- byte * ds_source );
- extern void (*fuzzcolfunc) ( lighttable_t * ds_colormap,
- byte * ds_source );
- extern void (*spanfunc) (
- fixed_t xfrac,
- fixed_t yfrac,
- fixed_t ds_y,
- int ds_x1,
- int ds_x2,
- fixed_t ds_xstep,
- fixed_t ds_ystep,
- lighttable_t * ds_colormap,
- byte * ds_source );
- int
- R_PointOnSide
- ( fixed_t x,
- fixed_t y,
- node_t* node );
- int
- R_PointOnSegSide
- ( fixed_t x,
- fixed_t y,
- seg_t* line );
- angle_t
- R_PointToAngle
- ( fixed_t x,
- fixed_t y );
- angle_t
- R_PointToAngle2
- ( fixed_t x1,
- fixed_t y1,
- fixed_t x2,
- fixed_t y2 );
- fixed_t
- R_PointToDist
- ( fixed_t x,
- fixed_t y );
- fixed_t R_ScaleFromGlobalAngle (angle_t visangle);
- subsector_t*
- R_PointInSubsector
- ( fixed_t x,
- fixed_t y );
- void
- R_AddPointToBox
- ( int x,
- int y,
- fixed_t* box );
- void R_RenderPlayerView (player_t *player);
- void R_Init (void);
- void R_SetViewSize (int blocks, int detail);
- #endif
|