Does anyone know whether or not XCode has a framework (library) for reading and writing jpeg files, and what is the library/framework name? I want to load this jpg image for a texture mappin开发者_如何学编程g in OpenGL. If you have done texture mapping using jpg image, do you mind to share the code as well?
I found a good example here, however it is using a .raw file instead of .jpg file. Of course the open gl codes would be the same. Only the image loader function would be different. http://www.nullterminator.net/gltexture.htmlYou can use SOIL. Its a header file that can load JPG (and most other image formats).
Its used by lots of real games.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论