home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser-CD 2000 January / LCD_01_2000.iso / games / doom / pmdoom / include / v_video.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-12-17  |  2.7 KB  |  151 lines

  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. /*     Gamma correction LUT. */
  19. /*     Functions to draw patches (by post) directly to screen. */
  20. /*     Functions to blit a block to the screen. */
  21. /*  */
  22. /* ----------------------------------------------------------------------------- */
  23.  
  24.  
  25. #ifndef __V_VIDEO__
  26. #define __V_VIDEO__
  27.  
  28. #include "doomtype.h"
  29.  
  30. #include "doomdef.h"
  31.  
  32. /*  Needed because we are refering to patches. */
  33. #include "r_data.h"
  34.  
  35. /*  */
  36. /*  VIDEO */
  37. /*  */
  38.  
  39. #define CENTERY            (SCREENHEIGHT/2)
  40.  
  41.  
  42. /*  Screen 0 is the screen updated by I_Update screen. */
  43. /*  Screen 1 is an extra buffer. */
  44.  
  45.  
  46.  
  47. extern    byte*        screens[5];
  48.  
  49. extern  int    dirtybox[4];
  50.  
  51. extern    byte    gammatable[5][256];
  52. extern    int    usegamma;
  53.  
  54.  
  55.  
  56. /*  Allocates buffer screens, call before R_Init. */
  57. void V_Init (void);
  58.  
  59.  
  60. void
  61. V_CopyRect
  62. ( int        srcx,
  63.   int        srcy,
  64.   int        srcscrn,
  65.   int        width,
  66.   int        height,
  67.   int        destx,
  68.   int        desty,
  69.   int        destscrn );
  70.  
  71. void
  72. V_DrawPatch8
  73. ( int        x,
  74.   int        y,
  75.   int        scrn,
  76.   patch_t*    patch);
  77.  
  78. void
  79. V_DrawPatchFlipped8
  80. ( int        x,
  81.   int        y,
  82.   int        scrn,
  83.   patch_t*    patch);
  84.  
  85. void
  86. V_DrawPatch16
  87. ( int        x,
  88.   int        y,
  89.   int        scrn,
  90.   patch_t*    patch);
  91.  
  92. void
  93. V_DrawPatchFlipped16
  94. ( int        x,
  95.   int        y,
  96.   int        scrn,
  97.   patch_t*    patch);
  98.  
  99. void
  100. V_DrawPatch24
  101. ( int        x,
  102.   int        y,
  103.   int        scrn,
  104.   patch_t*    patch);
  105.  
  106. void
  107. V_DrawPatchFlipped24
  108. ( int        x,
  109.   int        y,
  110.   int        scrn,
  111.   patch_t*    patch);
  112.  
  113. void
  114. V_DrawPatch32
  115. ( int        x,
  116.   int        y,
  117.   int        scrn,
  118.   patch_t*    patch);
  119.  
  120. void
  121. V_DrawPatchFlipped32
  122. ( int        x,
  123.   int        y,
  124.   int        scrn,
  125.   patch_t*    patch);
  126.  
  127. /*  Draw a linear block of pixels into the view buffer. */
  128. void
  129. V_DrawBlock
  130. ( int        x,
  131.   int        y,
  132.   int        scrn,
  133.   int        width,
  134.   int        height,
  135.   byte*        src );
  136.  
  137.  
  138. void
  139. V_MarkRect
  140. ( int        x,
  141.   int        y,
  142.   int        width,
  143.   int        height );
  144.  
  145. #endif
  146. /* ----------------------------------------------------------------------------- */
  147. /*  */
  148. /*  $Log:$ */
  149. /*  */
  150. /* ----------------------------------------------------------------------------- */
  151.