PDA

View Full Version : Display of image?



pran1
03-11-2004, 02:59 AM
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

pran1
03-11-2004, 04:07 AM
I managed to get it display to the size of the image.

Thanks
pran

pran1
03-11-2004, 04:16 AM
False alarm it craches badly...!!!!!

Please help me http://www.opengl.org/discussion_boards/ubb/frown.gif(

Thanks
pran

dvm
03-11-2004, 05:21 AM
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.