video and opengl

I need to superimpose graphics onto a video using opengl, and i’m trying to do it by modifying the code given in simplemovieGL.c (which comes on SGI O2 machines: /usr/share/src/dmedia/movie/miscGL)…is this possible? Is there a more straightforward way to do this?