Advertisement

glut / glui / jpg

Started by November 08, 2000 02:33 PM
5 comments, last by delta 24 years ago
Hi all, At first, I apologize for my very bad frenglish. Hope u can understand what I mean. I am writing a small application which aims to represent implicit surface. My GUI choice is glui because, as I am not a programmer, glui is really simple to use for me. Moreover glui is writed at top of glut in ANSI c++, and so, it is OS independant. It can be found at: http://www.cs.unc.edu/~rademach/glui/ Don t know if GUI has an importance in my pb but ... ;-) Have 2 questions: - When the main function runs (hard evaluation on maths functions), glui window is not properly redrawn or maintained. How can I do that ? (keep in mind that glui is similar to glut in fact). Any example anywhere ? - Does any of u have already coded a jpeg (or bmp) saver ? I mean, I have a glut window; how can I save this graphical contents in a jpg file ? a basic example ? It is essential to me that solution r universal (not particular to a particular OS, or implementation or whatsoever) Thx u all. P.S.: keep good work NeHe. U r reallly cool guy my friend. And, very important for all of us. Have a nice day, Jeff :-)
Best not to use JPG''s....use TGA''s or BMP''s instead

--Ched--
chris@ched45.com
--Ched--chris@ched45.com
Advertisement
Not really the pb Ched.

If u have a code doing that with .bmp instead of .jpg, directe me to it because I m insteresting in, if it is simple.

Thx Ched.

About GLUT not updating the window frequently enough... I get around that by putting a call to my display function in my idle func.
Thx AP ... but do u have a piece of code about it. I can t make it work.

Thx all.
stick this in your main function after glutDisaplyFunc(display)
"glutIdleFunc(display)"

this is what you''ll do in glut donno bout glui though mate

http://members.xoom.com/myBollux
Advertisement
Help NeHe :-(

can t get glui update properly the window. Really, I already tried a lot of things :-(

Also, does it mean that nobody needed a jpeg (or bmp or another) simple portable library ?

I can t believe it :-(

Am I completly stupid ?

This topic is closed to new replies.

Advertisement