Allegro
hrmpf... how do you open and load a bmp file?
an exampel would be fine... :C)
Mvh Wardrobeprogrammer
"Att skita eller skitas? DET är frågan"-herman hedning
#include "allegro.h"
main()
{
BITMAP *image;
PALETTE pal;
allegro_init();
set_gfx_mode(GFX_SAFE, 320,200,0,0); // set graphice mode
image = load_bitmap("picture.bmp", pal); //load file
set_palette(pal);
blit(image, screen, 0,0,0,0,320,200); //draw to screen
}
These will do :-)
main()
{
BITMAP *image;
PALETTE pal;
allegro_init();
set_gfx_mode(GFX_SAFE, 320,200,0,0); // set graphice mode
image = load_bitmap("picture.bmp", pal); //load file
set_palette(pal);
blit(image, screen, 0,0,0,0,320,200); //draw to screen
}
These will do :-)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement