PDA

View Full Version : Use of Bitmaps in OpenGL



HanoBotha
01-07-2001, 11:13 PM
Hi
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 ?

FoxDie
01-08-2001, 02:16 AM
At first, you must declare
pointer of AUX_RGBImageRec;
Example: AUX_RGBImageRec* bmp;
To load use auxDIBImageLoad(const char *path);
Example:bmp=auxDIBImageLoad("E:/Stone.bmp");

To draw you can use glBitmap or glDrawPixels.

Bob
01-09-2001, 05: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.