Re: [Vala] Exit out of a Vala OpenGL program by using the ESC key



If this uses freeglut, you couldalao use glutLeaveMainLoop:

this works perfectly,

Thanks
Tom


On 07/04/2013 12:31 PM, Simon Kågedal Reimer wrote:

If this uses freeglut, you couldalao use glutLeaveMainLoop:

http://freeglut.sourceforge.net/docs/api.php#EventProcessing

You might also consider embedding your OpenGL in a GTK+ program, instead of using glut. Some pointers here:

http://stackoverflow.com/questions/3815806/gtk-and-opengl-bindings

/simon

Den 4 jul 2013 19.10, "Evan Nemerson" <evan coeus-group com <mailto:evan coeus-group com>> skrev:

On Thu, 2013-07-04 at 11:32 -0500, Thomas F Steinhauer wrote:
> Ok,
>
> This is a tough one to figu...

exit is bound as GLib.Process.exit.  And Posix.exit.


-Evan


_______________________________________________
vala-list mailing list
vala-list gnome org <mailto:vala-list gnome org>
https://...




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]