How to load JPG/PNG Textures in an SDL/OpenGL App under OSX

后端 未结 4 1028
长情又很酷
长情又很酷 2020-12-10 06:27

i am writing an SDL / OpenGL application that runs under OSX. I have to use existing code which uses the DevIL library for loading JPG and PNG textures. Unfortunately, this

4条回答
  •  春和景丽
    2020-12-10 06:34

    If you're on Mac OS anyway, why not just use CGImageSource to do the loading? OS X natively supports loading many file formats including PNG and JPEG.

提交回复
热议问题