How do I load textures to OpenGL using FreeImage library?
问题 I'm learning OpenGL in C++ using NeHe tutorials, but I'm trying to do them with FreeImage library, instead of Glaux or SOIL. The good point I see in using FreeImage is thar it's last update was in October last year, while SOIL hasn't been updated in 5 years. The problem I have is that I'm not able to load textures correctly. Here is my code: static GLuint texture = 0; if (texture == 0) { FIBITMAP* bitmap = FreeImage_Load( FreeImage_GetFileType("textures/test/nehe_06.png", 0), "textures/test