1. Capture the mouse when working in object editor.
2. Initialize OpenGL context for new objects when rendering view.