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



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]