Skip to main content
GameDev.net gamedev.net
🔒 Locked

DevIL

Started by Zen721 Apr 22, 2006 at 1:16 PM 3 replies 550+ views
Original Post
Zen721
Zen721
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 ... }
bubu LV
bubu LV
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
Zen721
Zen721
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
owiley
owiley
If I remeber right DevIL has an one function call to load and bind textures for opengl.
Bring more Pain

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.