- First compile the resource file.
set root=%CD%
cd resources
rc.exe /V resource.rc
cd %root%
- Now compile the program with resource file.
cl.exe /EHsc /DUNICODE /Zi viewportPlacement.cpp /link resources\resource.res user32.lib kernel32.lib gdi32.lib openGL32.lib
- Press
Esc
key to quit. - Press
f
key to toggle fullscreen mode. - Press
0
key to make viewport take full width and height. - Press
1
key to place viewport at left bottom. - Press
2
key to place viewport at right bottom. - Press
3
key to place viewport at right top. - Press
4
key to place viewport at left top. - Press
5
key to place viewport at left half. - Press
6
key to place viewport at right half. - Press
7
key to place viewport at bottom half. - Press
8
key to place viewport at top half. - Press
9
key to place viewport at center.