home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
gnu
/
gchsrc31
/
atarilib
/
doublebu.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-27
|
904b
|
43 lines
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Atari Machine Specific Library,
// and is Copyright 1992 by Warwick W. Allison.
//
// You are free to copy and modify these sources, provided you acknoledge
// the origin by retaining this notice, and adhere to the conditions
// described in the file COPYING.
//
//////////////////////////////////////////////////////////////////////////////
#include "doublebuffer.h"
#include <osbind.h>
DoubleBuffer *Pages;
DoubleBuffer::DoubleBuffer()
{
Canvas[0]=new Screen;
Canvas[1]=new Screen;
Pulse=0;
}
DoubleBuffer::DoubleBuffer(Screen& a, Screen& b)
{
Canvas[0]=&a;
Canvas[1]=&b;
Pulse=0;
}
void DoubleBuffer::Flip()
{
Canvas[Pulse]->Show();
Vsync();
Pulse=1-Pulse;
}
void DoubleBuffer::Flop()
{
Canvas[Pulse]->Show();
Pulse=1-Pulse;
}