Display of image?

Hi I have posted this question before but it was right at the bottom of another querry so just typing it again and for all of you who have read this querry before I am really sorry for making you read it again.

The querry is - Is it possible to display image with the actual size of the image using glutInitWindowSize() and what parameters do I need to pass for it to happen.

Many Thanks
pran

I managed to get it display to the size of the image.

Thanks
pran

False alarm it craches badly…!!!

Please help me (

Thanks
pran

Good to see the ol’ forums back on line. As to your question I suppose you want to load an image file like .bmp for example. I suggest you open and read your file before you initialize the glut window so you know before hand the dimensions of your window. Also for the crash, after creating the window, do you close the file? Once you send your texture down the pipeline, there’s no need to keep the file open. Post some code. Try to do some debugging and see what causes the crash.