Sign in to follow this  
Zen721

DevIL

Recommended Posts

Zen721    157
i want to do a function where i can write a patch to image but i don't know what i need more: ILvoid Picture::LoadImage(const char *FileName) { const char *File = FileName; ilGenImages(1, &texid); ilBindImage(texid); success = ilLoadImage(getch(&File)); // what to do here ... }

Share this post


Link to post
Share on other sites
bubu LV    1436
DevIL includes funcion that automatically loads image from file and binds it to texture:
http://openil.sourceforge.net/docs/ilut/f00194.htm

Also check some tutorials for DevIL: http://openil.sourceforge.net/tuts/index.htm

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