Initial (buggy OpenGL) canvas code for wgen