我需要将图像上传到我的背景中...有人知道该怎么做吗?我知道我必须执行以下步骤:
1) Load image data into system memory
2) Generate a texture name with glGenTextures
3) Bind the texture name with gBindTexture
4) Set wrapping and filtering mode with glTexParameter
5) call glTexImage2D with the right parameters depending on the image nature to load image data into video memory
但我不知道如何将它们放入opengl