vandycs/pygears — Issue #25: Relative Positions
Author: russ-
Created: 2011-11-09 00:07:17+00:00
State: open

All positions are currently specified in pixels. To allow for window resizing, we want to use normalized dimensions, instead. So, instead of saying the ball is at 200, 400 in a 400x800 window (therefore, the center of the window), we say it's at 0.5, 0.5.

This change should be focused on the Window class -- initializeGL and resizeGL should be rewritten to specify to OpenGL that the viewport dimensions are 1.0x1.0. Additionally, window should letterbox the rendering surface such that a fixed aspect is maintained.