home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / RAYCAST.ZIP / RAYRT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-20  |  855 b   |  46 lines

  1. #ifndef _RAYRT_
  2. #define _RAYRT_
  3. #include "ray.h"
  4.  
  5. typedef USHORT clip_info_list;
  6. typedef SHORT vb_node_index;
  7. typedef struct VB_NODE * pvb_node;
  8.  
  9. typedef struct WALL_RUN_INFO {
  10.    short ray;
  11.    short top;
  12.    short scale;
  13.    short column;
  14.    long clip;
  15.    long increment;
  16.    Ptr texture;
  17.    Byte * light;
  18.    short bound_val;
  19.    Byte width_shift;
  20.    } wall_run_info;
  21.  
  22. typedef struct FLOOR_RUN_INFO {
  23.    Ptr texture;
  24.    Byte * light;
  25.    SHORT screen_x;
  26.    SHORT screen_y;
  27.    SHORT scale;
  28.    MYFIXED x_inc;
  29.    MYFIXED y_inc;
  30.    MYFIXED map_x;
  31.    MYFIXED map_y;
  32.    } floor_run_info;
  33.  
  34. typedef struct CLIP_INFO_NODE {
  35.    LONG y_val;
  36.    SHORT WIN_TOP, WIN_BOTTOM;
  37.    clip_info_list next_node;
  38. } clip_info_node;
  39.  
  40. typedef struct VB_NODE {
  41.    SHORT left, right;
  42.    vb_node_index next_node, back_node;
  43. } vb_node;
  44.  
  45. #endif
  46.