I\'m trying to load a bmp file for reusing it in opengl.
I\'ve found some code via google on how to load a bmp file.
I took this code and put in a class Bitmap in my project.
Th
#pragma pack(2) // Add this
typedef struct
{
unsigned short bfType;
unsigned int bfSize;
unsigned short bfReserved1;
unsigned short bfReserved2;
unsigned int bfOffBits;
} BITMAPFILEHEADER;
#pragma pack() // and this