r_draw.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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.
  11. //
  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.
  16. //
  17. // DESCRIPTION:
  18. // System specific interface stuff.
  19. //
  20. //-----------------------------------------------------------------------------
  21. #ifndef __R_DRAW__
  22. #define __R_DRAW__
  23. #ifdef __GNUG__
  24. #pragma interface
  25. #endif
  26. extern lighttable_t* dc_colormap;
  27. extern int dc_x;
  28. extern int dc_yl;
  29. extern int dc_yh;
  30. extern fixed_t dc_iscale;
  31. extern fixed_t dc_texturemid;
  32. // first pixel in a column
  33. extern byte* dc_source;
  34. // The span blitting interface.
  35. // Hook in assembler or system specific BLT
  36. // here.
  37. void R_DrawColumn (void);
  38. void R_DrawColumnLow (void);
  39. // The Spectre/Invisibility effect.
  40. void R_DrawFuzzColumn (void);
  41. void R_DrawFuzzColumnLow (void);
  42. // Draw with color translation tables,
  43. // for player sprite rendering,
  44. // Green/Red/Blue/Indigo shirts.
  45. void R_DrawTranslatedColumn (void);
  46. void R_DrawTranslatedColumnLow (void);
  47. void
  48. R_VideoErase
  49. ( unsigned ofs,
  50. int count );
  51. extern int ds_y;
  52. extern int ds_x1;
  53. extern int ds_x2;
  54. extern lighttable_t* ds_colormap;
  55. extern fixed_t ds_xfrac;
  56. extern fixed_t ds_yfrac;
  57. extern fixed_t ds_xstep;
  58. extern fixed_t ds_ystep;
  59. // start of a 64*64 tile image
  60. extern byte* ds_source;
  61. extern byte* translationtables;
  62. extern byte* dc_translation;
  63. // Span blitting for rows, floor/ceiling.
  64. // No Sepctre effect needed.
  65. void R_DrawSpan (void);
  66. // Low resolution mode, 160x200?
  67. void R_DrawSpanLow (void);
  68. void
  69. R_InitBuffer
  70. ( int width,
  71. int height );
  72. // Initialize color translation tables,
  73. // for player rendering etc.
  74. void R_InitTranslationTables (void);
  75. // Rendering function.
  76. void R_FillBackScreen (void);
  77. // If the view size is not full screen, draws a border around it.
  78. void R_DrawViewBorder (void);
  79. #endif
  80. //-----------------------------------------------------------------------------
  81. //
  82. // $Log:$
  83. //
  84. //-----------------------------------------------------------------------------