Skip to content

Latest commit

 

History

History

viewportPlacement

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Viewport Placement

How to compile
  • 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
Keyboard shortcuts
  • 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.
Preview
  • Viewport Placement Full viewportPlacementFull

  • Viewport Placement Left Bottom viewportPlacementLeftBottom

  • Viewport Placement Right Bottom viewportPlacementRightBottom

  • Viewport Placement Right Top viewportPlacementRightTop

  • Viewport Placement Left Top viewportPlacementLeftTop

  • Viewport Placement Left Half viewportPlacementLeftHalf

  • Viewport Placement Right Half viewportPlacementRightHalf

  • Viewport Placement Bottom Half viewportPlacementBottomHalf

  • Viewport Placement Top Half viewportPlacementTopHalf

  • Viewport Placement Center viewportPlacementCenter