This is exactly what I meant when I post this thread.
I use your advice and use pointers for binding, so it's alternative to must
have arrays.
Even though Luca binding(array_length_pos=-1) is great for modern language
syntax,
it is less powerful than the old C fashion way.
Tal
Date: Sun, 15 Ap
Thanks, Luca, I've just cloned Vala from Git, built from source and
everything works now.
W dniu 15 kwietnia 2012 21:26 użytkownik Luca Bruno
napisał:
> 2012/4/15 Leszek Godlewski
>>
>> OK, I tracked the problem down to the mismatch between the .vapi and
>> the Gtk headers I have installed on my
2012/4/15 Leszek Godlewski
> OK, I tracked the problem down to the mismatch between the .vapi and
> the Gtk headers I have installed on my system (up-to-date Debian,
> testing branch):
>
> The question remains - which one is wrong and/or not up-to-date?
>
Bindings are always the one that are wro
OK, I tracked the problem down to the mismatch between the .vapi and
the Gtk headers I have installed on my system (up-to-date Debian,
testing branch):
inequation@spearhead:~/projects/PerceptVala/src$ grep gtk_font_chooser
`locate *gtk*.h`
/usr/include/gtk-3.0/gtk/gtkfontchooser.h: * @data: (closu
I'm trying to adapt the second Pango/Cairo sample
(http://live.gnome.org/Vala/PangoCairoSample) to my needs. I'm stuck
at setting the font with a FontButton (i.e. getting the
FontDescription from the FontChooser interface), though:
CharacterRenderer.vala:20.32-20.59: error: The name `get_font_desc
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
2012/
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);
>
>
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);
Output(same):
Buffers: 2, 5
S
I've written a vapi for GLEW that addresses most of the issues the GL
vapi has. In the end I ended up using pointers everywhere since it's
much simpler.
I've used it in my projects for a while now, if you want I can put it up
somewhere.
Am Sonntag, den 15.04.2012, 12:53 +0300 schrieb Tal Hadad:
>
Luca, when I test it now I get that the method don't do anything (and
it should).
Test code:
GLuint[2] a = {2,5};
glGenBuffers (a);
stdout.printf ("Buffers: " + ((uint)a[0]).to_string () + ", "+
((uint)a[1]).to_string () + "\n");
public extern void glGenBuffers ([CCode (array_length_
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);
>
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);
public static void glDeleteBuffe
2012/4/15 Tal Hadad
>
> Can't you use Bullet C API?
> http://code.google.com/p/bullet/issues/detail?id=43
>
It's incomplete, it's not even 1/100 of the bullet c++ api.
--
www.debian.org - The Universal Operating System
___
vala-list mailing list
vala
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
Can't you use Bullet C API?
http://code.google.com/p/bullet/issues/detail?id=43
> Date: Thu, 12 Apr 2012 22:51:11 +0200
> From: dura...@gmail.com
> To: lethalma...@gmail.com
> CC: vala-list@gnome.org
> Subject: Re: [Vala] Vala for physics simulations?
>
> Luca, I'm not using any physics engine.
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: tal...@hotmail.co
16 matches
Mail list logo