c# - How to embed SDL video in an existing OpenGL project -


i'm working on opengl game, , play video on 3d surfaces within game. sdl seems excellent choice video playback, possible create surface inside of existing opengl context? how go doing this?

sdl has, knowledge, no functions video playback; don't fooled api names sdl_video. used window management.

what need using video decoder library decode video image buffers, pass these image buffers opengl texture. open source video player mplayer (which internally uses ffmpeg libavformat , libavcodec libraries video/audio decoding) has opengl video output module. suggest fetch mplayer source code , take opengl video output module, idea how this.

edit:

since you're using sdldotnet, suggest using sdldotnet.graphics.surfacegl target surface sdldotnet.graphics.movie.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -