Please start using const char * as arguments, std::string::c_str returns a const pointer.
Lack of "const char *" renders my code very ugly when I use std::string
fn = new char[filename.length()+1];
result = ilutGLLoadImage(fn);
Yeah, sorry about that. DevIL doesn't modify the string it gets, so you can do
Just as ugly, but at least it's shorter.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.