cleanup window <-> graph interface somewhat
save location of uniforms, move static uniforms to realize()