草庐IT

ilLoadImage

全部标签

C++ DevIL 函数 ilLoadImage - 程序退出,访问冲突

我的文件路径是这样定义的:constchar*GROUND_TEXTURE_FILE="objects/textures/grass.jpg";这是我用来加载图像的函数:boolloadTexImage2D(conststring&fileName,GLenumtarget){...//thiswillloadimagedatatothecurrentlyboundimage//atfirst,wemustconvertfileName,forascii,thismethodisfine?wstringfile(fileName.begin(),fileName.end());if(i