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 to load and use them as textures on a rectangle.
How exactly can I load the bmp’s as textures though?
Look my simple c implementation function to load texture.
Above function returns the texture data. Store the texture data in variable
Now you can bind the texture using glBindTexture