Tscope5
Main Page
Related Pages
Files
Examples
display01.cpp
////////////////////////////////////////////////////////////////////////////////
//
// __ ______
// / /_______________ ____ ___ / ____/
// / __/ ___/ ___/ __ \/ __ \/ _ \ /___ )
// / /_(__ ) /__/ /_/ / /_/ / __/ ____/ /
// \__/____/\___/\____/ .___/\___/ /_____/
// /_/
//
// display01.cpp
// - C++ example
// - Open a display, count from 10 to 0
// - NOTE: When using c++
// the argc/argv command line arguments are always necessary
// even when they are not used.
////////////////////////////////////////////////////////////////////////////////
#include <tscope5.h>
int
main(
int
argc,
char
**argv)
{
ts5_install_display
();
int
i;
for
(i=10; i>=0; i--) {
ts5_printf
(0.0, 0.0,
"%d"
, i);
ts5_flip_display
();
ts5_wait
(0.1);
ts5_clear_display
();
}
ts5_draw_mouse_button
(0.0,0.0);
return
0;
}