home *** CD-ROM | disk | FTP | other *** search
- /*********************
- raybuff.cpp
- utilities for clearing the offscreen buffer and copying it to the screen
- *********************/
-
- #include "ray.h"
- #include "scrcntl.h"
- #include "mem.h"
- #include "globals.h"
- #include "scrconf.h"
- #include "osbuffer.h"
-
-
- poff_screen_buff the_os_buff;
-
- void Init_Buffer() {
- #ifndef DEBUG
- the_os_buff=Create_Offscreen_Buffer((video_data_ptr *)&buff);
- #else
- buff=(PUCHAR)0xa0000;
- #endif
- }
-
- void clearBuff() {
- #ifndef DEBUG
- Clear_Buffer(the_os_buff);
- #endif
- }
-
- void copyBuff() {
- #ifndef DEBUG
- Blt_Buffer(the_os_buff);
- #endif
- }
-
- // Remember, the force will be with you, always