Re: [Vala] Allow passing ref/out as a pointer.

2012-04-15 Thread Tal Hadad
n, 15 Apr 2012 20:38:23 +0200 From: j...@vdnberg.net To: tal...@hotmail.com Subject: Re: [Vala] Allow passing ref/out as a pointer. On 04/15/2012 12:57 PM, Tal Hadad wrote: You're right! The problem is that I forgot to gl_begin () also in initialization(i.e. be

Re: [Vala] Allow passing ref/out as a pointer.

2012-04-15 Thread Tal Hadad
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: lethalma...@gmail.com To: tal...@hotmail.com CC: vala-list@gnome.org

Re: [Vala] Allow passing ref/out as a pointer.

2012-04-15 Thread Luca Bruno
2012/4/15 Tal Hadad > > Thanks, but this code doesn't work either: > GLuint[2] a = {2,5}; > 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); > >

Re: [Vala] Allow passing ref/out as a pointer.

2012-04-15 Thread Tal Hadad
); Output(same): Buffers: 2, 5 Someone knows why? Thanks Tal > Subject: Re: [Vala] Allow passing ref/out as a pointer. > From: sergej.re...@googlemail.com > To: tal...@hotmail.com > CC: vala-list@gnome.org > Date: Sun, 15 Apr 2012 12:17:15 +0200 > > I've writte

Re: [Vala] Allow passing ref/out as a pointer.

2012-04-15 Thread Sergej Reich
;drivers are fine. > The other GL code in my program display a simple triangle that > works 100%, and so is Compiz Fusion. > > Do you know what is the problem? > > Tal > > Date: Sun, 15 Apr 2012 11:26:41 +0200 > Subject: Re: [Vala] Allow passing ref/out as a pointer. > Fro

Re: [Vala] Allow passing ref/out as a pointer.

2012-04-15 Thread Tal Hadad
nd so is Compiz Fusion. Do you know what is the problem? Tal Date: Sun, 15 Apr 2012 11:26:41 +0200 Subject: Re: [Vala] Allow passing ref/out as a pointer. From: lethalma...@gmail.com To: tal...@hotmail.com CC: vala-list@gnome.org 2012/4/15 Tal Hadad There's two GL vapis in ExternalBi

Re: [Vala] Allow passing ref/out as a pointer.

2012-04-15 Thread Luca Bruno
2012/4/15 Tal Hadad > > There's two GL vapis in ExternalBinding page. I'm talking about > the one inside the brackets[0]. This is part of the vapi: > public static void glGenBuffers (GL.GLsizei n, [CCode (array_length = > false, array_null_terminated = true)] out unowned GL.GLuint[] buffers); >

Re: [Vala] Allow passing ref/out as a pointer.

2012-04-15 Thread Tal Hadad
uot;? Tal [0] http://blazt.sablun.org/tmp/gl.vapi Date: Sun, 15 Apr 2012 10:47:17 +0200 Subject: Re: [Vala] Allow passing ref/out as a pointer. From: lethalma...@gmail.com To: tal...@hotmail.com CC: vala-list@gnome.org 2012/4/15 Tal Hadad Hello Luca Even thought there are replacement for that, don&#

Re: [Vala] Allow passing ref/out as a pointer.

2012-04-15 Thread Luca Bruno
2012/4/15 Tal Hadad > Hello Luca > Even thought there are replacement for that, don't you think that this > option is good? > Vala has full support of pointers except this. > I don't know unless you paste some code of what you're doing and of the vapi. -- www.debian.org - The Universal Operati

Re: [Vala] Allow passing ref/out as a pointer.

2012-04-15 Thread Tal Hadad
Hello Luca Even thought there are replacement for that, don't you think that this option is good? Vala has full support of pointers except this. Tal Date: Thu, 12 Apr 2012 19:32:46 +0200 Subject: Re: [Vala] Allow passing ref/out as a pointer. From: lethalma...@gmail.com To

Re: [Vala] Allow passing ref/out as a pointer.

2012-04-12 Thread Luca Bruno
2012/4/12 Tal Hadad > > Can you please allow to cast a pointer type into ref/out? > I mean to allow this: > method ((ref) pointer,...) > Same for the out keyword. > Because sometimes there are binding issue. > For example, glGenBuffers in gl.vapi(external) cause errors. > If it causes errors the

[Vala] Allow passing ref/out as a pointer.

2012-04-12 Thread Tal Hadad
Can you please allow to cast a pointer type into ref/out? I mean to allow this: method ((ref) pointer,...) Same for the out keyword. Because sometimes there are binding issue. For example, glGenBuffers in gl.vapi(external) cause errors. Tal __