TENSOR
01-20-2012, 09:21 AM
Hi,
I need to develop an application which do the following:
1. The program will read in an image from disk and display it.
2. The program will process the image.
3. The program will also display the the processed the image.
In step 2 and step 3, I also need the original image being
displayed until the user close the image window or close the
application.
The problem is that, if I use glutmainloop() to display the
first picture, the program keep trapped with the loop and do
not proceed to process the image; while If I put the glutmainloop() after I processed the image, it violates my purpose since the I cannt got the image be displayed before
it was being processed.
In one words: I need a method to display an image (and keep
the window open) while proceed to process this image and then displayed the processed image in a second window.
Could anyone just tell me how can I do this?
Thanks a lot.
I need to develop an application which do the following:
1. The program will read in an image from disk and display it.
2. The program will process the image.
3. The program will also display the the processed the image.
In step 2 and step 3, I also need the original image being
displayed until the user close the image window or close the
application.
The problem is that, if I use glutmainloop() to display the
first picture, the program keep trapped with the loop and do
not proceed to process the image; while If I put the glutmainloop() after I processed the image, it violates my purpose since the I cannt got the image be displayed before
it was being processed.
In one words: I need a method to display an image (and keep
the window open) while proceed to process this image and then displayed the processed image in a second window.
Could anyone just tell me how can I do this?
Thanks a lot.