home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / 3DENGINE.ZIP / Screen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-03  |  904 b   |  40 lines

  1. //===========================================================================
  2. //
  3. // CONSTANTS
  4. //
  5. //===========================================================================
  6. const SCREEN_WIDTH=320,SCREEN_HEIGHT=200;
  7.  
  8. //===========================================================================
  9. //
  10. // FUNCTION PROTOTYPES
  11. //
  12. //===========================================================================
  13. extern "C" {
  14.     void cls(char far *screen_adr);
  15.     void setmode(int mode);
  16.     void setpalette(char far *color_regs);
  17.     void putwindow(int,int,int,int,char far *);
  18.     void clrwin(int,int,int,int,char far *);
  19.   void blitscreen(char far *);
  20.   void putimage(int,int,int,int,char far *,char far *);
  21. }
  22.  
  23. void waitvbi(void);
  24.  
  25. void waitvbi()
  26. {
  27.     asm mov dx, 0x3DA;
  28.     test_1:
  29.     asm {
  30.         in al, dx
  31.         test al,0x8
  32.         jnz test_1
  33.     }
  34.     test_2:
  35.     asm {
  36.         in al, dx
  37.         test al,0x8
  38.         jz test_2
  39.     }
  40. }