2D Drawing & Opengl
2D Drawing & Opengl
OpenGL
• Outline
• World Space & Screen Space
Matrices
• Intro to OpenGL & GLUT
• 2D Texture Mapping
Screen Space
GLUT
Windows API
X Windows under Unix / Linux
Apple QuickDraw
OpenGL
World Space
• Often, we want to structure our graphics
independent of screen or window sizes.
• We do so by defining world space where
we specify our graphics.
• World space provides the natural
coordinate system for the problem at
hand.
Normalized Device Coordinates
• For x coordinates:
World to NDC Mapping