home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / RAYCAST.ZIP / RAYBUFF.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-05  |  678 b   |  37 lines

  1. /********************* 
  2. raybuff.cpp
  3. utilities for clearing the offscreen buffer and copying it to the screen
  4. *********************/
  5.  
  6. #include "ray.h"
  7. #include "scrcntl.h"
  8. #include "mem.h"
  9. #include "globals.h"
  10. #include "scrconf.h"
  11. #include "osbuffer.h"
  12.  
  13.  
  14. poff_screen_buff the_os_buff;
  15.  
  16. void Init_Buffer() {
  17. #ifndef DEBUG
  18.    the_os_buff=Create_Offscreen_Buffer((video_data_ptr *)&buff);
  19. #else
  20.    buff=(PUCHAR)0xa0000;
  21. #endif
  22. }
  23.  
  24. void clearBuff()     {
  25. #ifndef DEBUG
  26.    Clear_Buffer(the_os_buff);
  27. #endif
  28. }  
  29.      
  30. void copyBuff()      { 
  31. #ifndef DEBUG
  32.    Blt_Buffer(the_os_buff);
  33. #endif
  34. }       
  35.  
  36. // Remember, the force will be with you, always
  37.