• Advertisement
Sign in to follow this  

DevIL

This topic is 4292 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
But i wan't to do this like i said because it will be more easy for me
but please tell me how i can do it

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement