Main Page   Modules   Data Structures   Data Fields   Related Pages  

Using

To use the library MJpgAlleg, include the main header in your prog:

#include <allegro.h>
#include "mjpga.h"

int main(void) {
   allegro_init();
   install_keyboard();
   set_color_depth(16);
   set_gfx_mode(640, 480, 0, 0);
   // play until the end of movie file "the_movie.dat"
   return play_movie("the_movie.dat", screen, NULL);
} END_OF_MAIN(); 

and link with the libraries:

gcc -o example.exe example.c -lmjpga -lalmp3 -lalleg -lxvidcore 


Making a movie | MJpgAlleg - Main Page


Generated on Mon Apr 7 00:19:25 2003 for MJpgAlleg by doxygen1.2.18