OK, but it’s too simple!
◼
For more complicated transform
◼
e.g.) Center is at (15, 15). Window size is 10 x 10.
→ It’s better if visible range can be directory specified.
◼
glOrtho(left,right,bottom,top,near,far)
◼
More direct and easier to use
◼
For above case, visible range can be specified with:
glOrtho(10.0f, 20.0f, 10.0f, 20.0f, -1.0f, 1.0f)
Computer Graphics Course @Waseda University