Re: [Vala] How to bitwise math and implement a jagged array in Vala?

2013-07-04 Thread Nor Jaidi Tuah
On Thu, 2013-07-04 at 00:29 -0500, Thomas F Steinhauer wrote: Ok, you lost me some how checkImage = makeCheckImage() checkImage is declared twice. The global one is not initialized to anything. Nice day Nor Jaidi Tuah PRIVILEGED/CONFIDENTIAL information may be contained in this message.

Re: [Vala] Gee [ANNOUNCE] Libgee 0.11.0 - GObject collection library

2013-07-04 Thread Luca Bruno
On 04/07/2013 00:12, Maciej Piechotka wrote: Currently we added a futures and promises which are not exactly collections. Should the description by changed to utility library? I'd say collection and utility. Saying only utility seems that it's not worth using it for collections.

Re: [Vala] How to bitwise math and implement a jagged array in Vala?

2013-07-04 Thread Thomas F Steinhauer
Hey everybody, Thank you for the help, I finally got it to work. Tom On 07/03/2013 11:55 PM, Simon Kågedal Reimer wrote: Hi! Evan's makeCheckImage function creates a new array and passes it to the caller as a return value. You need to store it in the variable that is passed to glTexImage2D;

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

2013-07-04 Thread Thomas F Steinhauer
Ok, This is a tough one to figure out. This code does not work: void keyboard(uchar key, int x, int y) { switch (key) { case 27: exit(0); break; default : break; } } I understand that the exit(0) call does not work in vala, so what do I replace it with so

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

2013-07-04 Thread Evan Nemerson
On Thu, 2013-07-04 at 11:32 -0500, Thomas F Steinhauer wrote: Ok, This is a tough one to figure out. This code does not work: void keyboard(uchar key, int x, int y) { switch (key) { case 27: exit(0); break; default : break; } } I understand

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

2013-07-04 Thread Andrew Benton
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