refactored to draw with heirarchical scenegraph and custom shaders.
correct window sizes and window selection not implemented