unsigned char* image = SOIL_load_image("container.jpg", &width, &height, 0, SOIL_LOAD_RGB);glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, image);类似于fd的传递,本来内容是cpu打开的,然后现在opengl已经可以找到这块地址了,后续还要对jpg进行采样