home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
gondwana.ecr.mu.oz.au/pub/
/
Graphics.tar
/
Graphics
/
VOGLE.ZIP
/
SRC
/
BUFFER.C
< prev
next >
Wrap
C/C++ Source or Header
|
2000-02-11
|
673b
|
47 lines
#include "vogle.h"
/*
* backbuffer
*
* swap drawing to backbuffer - returns -1 if no
* backbuffer is available.
*/
int
backbuffer()
{
vdevice.inbackbuffer = 1;
vdevice.sync = 0;
return((*vdevice.dev.Vbackb)());
}
/*
* frontbuffer
*
* start drawing in the front buffer again. This
* will always work!
*/
void
frontbuffer()
{
(*vdevice.dev.Vfrontb)();
vdevice.inbackbuffer = 0;
vdevice.sync = 1;
}
/*
* swapbuffers
*
* swap the back and front buffers - returns -1 if
* no backbuffer is available.
*/
int
swapbuffers()
{
if (vdevice.inbackbuffer != 1)
return(-1);
return((*vdevice.dev.Vswapb)());
}