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.