generator: begin to work on egl support