OSDN Git Service

hk
[psychlops/cpp_document.git] / Psychlops.manual / sample_cpp_file / 2�� / 2.2.3_�l�p�`�̕`��4.cpp
1 #include <psychlops.h>
2 using namespace Psychlops;
3
4 Psychlops::Rectangle rect1,rect2,rect3;
5
6 void psychlops_main() {
7
8         Canvas sampleA(Canvas::fullscreen);
9         rect1.set(200,100);
10         rect2.set(rect1);
11         rect3.set(rect1);
12         rect2.centering();
13         rect3.centering().shift(200,200);
14         sampleA.rect(rect1,Color::white);
15         sampleA.rect(rect2,Color::white);
16         sampleA.rect(rect3,Color::white);
17         sampleA.flip();
18         while(!Input::get(Keyboard::spc));
19 }