开发者

Playing video in background of openGl application on iPhone

开发者 https://www.devze.com 2023-01-10 15:25 出处:网络
I found some tutorials about playing a fullscreen video on the iPhone, but I wond开发者_StackOverflower if it is possible to play an embedded movie in the background of a openGl animated app?

I found some tutorials about playing a fullscreen video on the iPhone, but I wond开发者_StackOverflower if it is possible to play an embedded movie in the background of a openGl animated app?

The movie should just loop seamlessly and should not have any control buttons like play/pause/volume popping up while being played. If possible, then how about performance?


  1. Decode next video frame
  2. Upload frame bitmap to texture
  3. Disable depth buffer reads/writes
  4. Draw screen-sized textured quad using frame texture
  5. Re-enable depth buffer reads/writes
  6. Render your regular scene
  7. Go to #1
0

精彩评论

暂无评论...
验证码 换一张
取 消