Set OpenGL view as part of a layout