View Full Version : Use of Bitmaps in OpenGL

01-07-2001, 10:13 PM
I am a total OpenGL novice. Im writing an aplication to view and manipulate Hyperspectral images. I`ve been using the MFC CBitmap class and functions like BitBlt e.a to visualise the images. I want to know if OpenGL will enable me to view bitmaps more effectively and if I should be looking at texture mapping or something else ?

01-08-2001, 01:16 AM
At first, you must declare
pointer of AUX_RGBImageRec;
Example: AUX_RGBImageRec* bmp;
To load use auxDIBImageLoad(const char *path);

To draw you can use glBitmap or glDrawPixels.

01-09-2001, 04:03 AM
If you only want to display images, I think OpenGL is the wrong API. OpenGL is mainly used for 3D. You should look for some 2D specialized API instead. I don't know of any APIs, so can't give you any names, sorry.