私はopenglで(手動で)レンダービットマップファイルについて問題を抱えています:glDrawPixels関数でそれらを使用するためにunsigned charポインターからデータを取得する方法は?(unsigned char *bitmap_Image)
class bitmap
{
private:
unsigned long BPP;
unsigned long width;
unsigned long height;
unsigned long size;
unsigned char *bitmap_Image; // how use this member??
unsigned int bps;
public:
bitmap();
~bitmap();
bool Load(const char *filename);
#pragma pack(push,1)
typedef struct
{
WORD bfType;
DWORD bfSize;
DWORD bfReserved;
DWORD bfOffBits;
}BITMAPFILEHEADER;
//BITMAPINFOHEADER
typedef struct
{
DWORD biSize;
LONG biWidth;
LONG biHeight;
WORD biPlanes;
WORD biBitCount;
DWORD biCompression;
DWORD biSizeImage;
LONG biXPelsPerMeter;
LONG biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
}BITMAPINFOHEADER;
#pragma pack(pop)
BITMAPFILEHEADER FileHeader;
BITMAPINFOHEADER InfoHeader;
};