我一直试图在这里上传纹理:
// The FileSystem::getPath(...) is part of the GitHub repository so we can find files on any IDE/platform; replace it with your own image path.
unsigned char *data = stbi_load(FileSystem::getPath("resources/textures/container.jpg").c_str(), &width, &height, &nrChannels, 0);
关于上面的评论,我如何用我自己的图像路径替换它?我试过这样的事情:
unsigned char *data = stbi_load("Desktop/container.jpg").c_str(), &width, &height, &nrChannels, 0);
但它没有用,当然,我的小脑袋现在超负荷了,我无法正常思考。那么...如何指定图像路径?