native opengl painting