Re: [Vala] Allow passing ref/out as a pointer.
- From: Luca Bruno <lethalman88 gmail com>
- To: Tal Hadad <tal_hd hotmail com>
- Cc: Vala Mail List <vala-list gnome org>
- Subject: Re: [Vala] Allow passing ref/out as a pointer.
- Date: Sun, 15 Apr 2012 12:48:58 +0200
2012/4/15 Tal Hadad <tal_hd hotmail com>
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]