Sign in to follow this  
coden4fun

How do I load a png in Allegro?

Recommended Posts

coden4fun    100
Hi, I'm making a Street Fighter clone in Allegro and would like png graphics or GIF when necessary, but Allegro only supports Bitmaps. How do I load these type of extensions in Allegro.

Share this post


Link to post
Share on other sites
jnbutler    131
Allegro natively supports the following graphics files
bmp, tga, pcx, and lbm.

Allegro has a load function for each of these formats
load_bitmap()
load_tga()
load_pcx()
load_lbm()

no png, you have to use that addon in konForce's post.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this