🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Allegro
hrmpf... how do you open and load a bmp file?
an exampel would be fine... :C)
Mvh Wardrobeprogrammer
#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