Oooh this won't be easy. glpaint is an OpenGLES app, so you'd want to draw the background using OpenGLES. You could create a quad using 2 triangles and apply the background as a texture map, but perhaps there might be an easier way.
I think it's possible to overlay a transparent OpenGL view on top of a regular view, but you'll need to deal with the fact that OpenGL uses premultiplied alpha. I remember playing with this once but could never get it to work right. You're probably much better off doing all your compositing in OpenGL instead of a hybrid Quartz/OpenGL approach.
|