OSDN Git Service

hk
[psychlops/cpp_document.git] / Psychlops.manual / sample_cpp_file / 2�� / 2.1.3_Canvas�̃����o�擾�ƕϐ�1.cpp
1 #include <psychlops.h>
2 using namespace Psychlops;
3
4 void psychlops_main() {
5
6         Canvas sampleA(Canvas::fullscreen);
7         
8         sampleA.getCenter();
9         sampleA.getHcenter();
10         sampleA.getVcenter();
11         sampleA.getHeight();
12         sampleA.getWidth();
13         sampleA.getColorDepth();
14         sampleA.getRefreshRate();
15         sampleA.getDisplayHorizontalPixelNumber();
16         sampleA.getDisplayVerticalPixelNumber();
17                 
18         sampleA.flip();
19         while(!Input::get(Keyboard::spc));
20 }