Dear Mr. Donev,
I would appreciate your sending me the modified files you mention below.
Thank you,
Norm Clerman
[log in to unmask]
www.opconassociates.com
Aleksandar Donev wrote:
> Hello,
>
> I recently (OK, today) modified William Mitchell's f90gl interface to
> OpenGL, GLU and GLUT to work with the freeglut library:
>
> http://freeglut.sourceforge.net/
>
> which is an improved and open source version of the classical GLUT
> library.
>
> I had to do this mostly because the traditional GLUT has a very messed
> up flow of control in that the main event processing loop never exits
> but rather calls exit(0) directly. This is most annoying and Fortran
> unfriendly. FreeGLUT allows one to change that (done automatically in my
> version of f90gl) and also has more fine-grain event-processing loops,
> in particular glutMainLoopEvent which just takes one step of the loop
> and also glutLeaveMainLoop which can be placed in a callback to stop the
> event processing.
>
> Finally, I added things to both freeglut and f90gl to allow one to
> associate a pointer to "user data" (void*) so that one can get a handle
> for the object being plotted in callbacks.
>
> If anyone is interested in these things, let me know and I will send you
> the modified files.
>
> Best,
> Aleksandar
>
|