doom

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

v_video.h (700B)


      1 #ifndef __V_VIDEO__
      2 #define __V_VIDEO__
      3 
      4 #include "doomdef.h"
      5 #include "doomdef.h"
      6 #include "r_data.h"
      7 
      8 #define CENTERY (SCREENHEIGHT/2)
      9 
     10 extern byte* screens[5];
     11 extern int   dirtybox[4];
     12 extern byte  gammatable[5][256];
     13 extern int   usegamma;
     14 
     15 void V_Init();
     16 void V_CopyRect(int srcx, int srcy, int srcscrn, int width, int height, int destx, int desty, int destscrn);
     17 void V_DrawPatch(int x, int y, int scrn, patch_t* patch);
     18 void V_DrawPatch(int x, int y, int scrn, patch_t* patch);
     19 void V_DrawBlock(int x, int y, int scrn, int width, int height, byte* src);
     20 void V_GetBlock(int x, int y, int scrn, int width, int height, byte* dest);
     21 void V_MarkRect(int x, int y, int width, int height);
     22 
     23 #endif