It should actually be possible with QuickTime 7, although it wouldn't be easy. This would also limit your app to supporting OS X 10.3.9 and Tiger only. Basically, you would use the new "Visual Contexts" in QuickTime to render directly to an OpenGL texture. If you've heard of the new Core Video technology, that's exactly what this is referring to. After you've got your video as a texture, you can then apply it to a polygon in OpenGL. That should allow you to use QuickTime to render to a surface in both Max2D and plain OpenGL. If I get some time, I might actually give that a try.
If you want to support QuickTime 6.5 and older versions, it could still be possible, but I don't have the slightest clue how. Before QuickTime 7, I believe QuickTime actually rendered its video through QuickDraw, the old graphics API that was invented for the original Macintosh. You would have to find a way to connect QuickDraw, QuickTime and OpenGL (i.e. Max2D) together for that to work. I don't think this a very easy task in plain C and Carbon, much less Blitz.
|