
i
i
i
i
i
i
i
i
15.6. Playing Movies or Live Video into Textures 415
Figure 15.6. Rendering video into a texture (twice). A small main window carries a
menu to control the display windows. Two child windows display the video (from
movie files) by playing them into a texture and rendering that texture onto mesh
models. The window on the left illustrates this being done using OpenGL and the
one on the right using Direct3D.
Commands from the menu also stop/start the movie, close the
child windo ws and delete the FilterGraphs.
We have already discussed how to implement the application framework, ini-
tialize OpenGL and Direct3D and render textured meshes in both ...