Re: [Vala] Exit out of a Vala OpenGL program by using the ESC key
- From: Andrew Benton <andrew benton675 gmail com>
- To: Simon Kågedal Reimer <skagedal gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Exit out of a Vala OpenGL program by using the ESC key
- Date: Thu, 04 Jul 2013 17:00:46 -0400
You can also add this line to your vala file so that you can use the
exit(int) method.
extern void exit(int exit_code);
via: https://mail.gnome.org/archives/vala-list/2010-July/msg00168.html
On 7/4/2013 1: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> 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
https://...
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]