combining input/output and drawing to the Window

Who knows if this is the right way, but it's going to make sense to me,
i think
refactored to use new OGLWindow class