Download BMP in opengl visual cpp

I need to apply a texture in a polygon. So I searched, and I found many sources, but most of them I had problems turning on and loading the BMP image. (development at the visual level cpp 10). So can anyone tell me an easy way to load a BMP file and how to apply the texture?

+3
source share
1 answer

A simple way is to use the GDI + class Bitmap:

http://msdn.microsoft.com/en-us/library/ms534420%28v=vs.85%29.aspx

, , , , LockBits(). , OpenGL.

+1

All Articles