You're right! The problem is that I forgot to gl_begin () also in initialization(i.e. before game loop). Thanks all! Tal
Date: Sun, 15 Apr 2012 12:48:58 +0200 Subject: Re: [Vala] Allow passing ref/out as a pointer. From: [email protected] To: [email protected] CC: [email protected] 2012/4/15 Tal Hadad <[email protected]> Thanks, but this code doesn't work either: GLuint[2] a = {20000,50000}; glGenBuffers (2, &a[0]); stdout.printf ("Buffers: " + ((uint)a[0]).to_string () + ", "+ ((uint)a[1]).to_string () + "\n"); ... public extern void glGenBuffers (GLsizei n, GLuint * ids); Output(same): Buffers: 20000, 50000 Someone knows why? The generated C call is correct with glGenBuffers (a), with the vapi I mentioned earlier. Maybe it doesn't work because you are missing some GL context? Also, try with zeros instead of those numbers? -- www.debian.org - The Universal Operating System
_______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
