error C2664 and C2597 in OpenGL and DevIL in C++
问题 I guess this is a two part problem, which is why I couldn't find a more suitable title for the post. I am loading an image using DevIL and then converting it to a familiar format. Here is the part of my code I am having troubles with: //Copy to OpenGL texture if(!ilConvertImage(IL_RGBA, IL_UNSIGNED_BYTE)) { throw runtime_error(std::string("Unable to convert image") +filename +std::string(" to display friendly format")); } glGenTextures(1, &Main::texture); glBindTexture(GL_TEXTURE_2D, Main: