Tscope5
display04.c
////////////////////////////////////////////////////////////////////////////////
//
// __ ______
// / /_______________ ____ ___ / ____/
// / __/ ___/ ___/ __ \/ __ \/ _ \ /___ )
// / /_(__ ) /__/ /_/ / /_/ / __/ ____/ /
// \__/____/\___/\____/ .___/\___/ /_____/
// /_/
//
// display04.c
// - Open two windowed displays on two display adapters (if available).
// - Count back from 10 to 0 (alternate between the displays).
// - Wait for a click.
//
// - If only one display adapter is available the output
// of this example is identical to display03.c.
// - If you have two display adapters but the driver is set to
// mirrored Tscope5 will think there is only one display adapter.
////////////////////////////////////////////////////////////////////////////////
#include <tscope5.h>
int main()
{
// count the number of display adapters
// open the two displays on a different
// display adapter if possible.
// otherwise put them on the same
// display adapters.
if (n>1) {
}
else {
double w, h;
}
// the code to draw the stimuli is identical to display03.c
// i.e. to the user it makes no difference whether we have
// two display adapters or only one.
int i;
for (i=10; i>=0; i--) {
ts5_printf(0.0, 0.0, "%d", i);
ts5_wait(0.5);
}
// wait for a click
return 0;
}