How to load a bmp on GLUT to use it as a texture?

前端 未结 4 712
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 12:30

I\'ve been searching all around for a simple solution to add sprites to my OpenGl GLUT simple moon lander game in c++ and it appears I must use bmp\'s since they\'re easiest

4条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 13:11

    You can use library GLAUX and SOIL(Simple OpenGL Image Library) . There are also other image libriries for OpenGL.

提交回复
热议问题