Re: [Vala] Allow passing ref/out as a pointer.
- From: Tal Hadad <tal_hd hotmail com>
- To: Vala Mail List <vala-list gnome org>
- Subject: Re: [Vala] Allow passing ref/out as a pointer.
- Date: Sun, 15 Apr 2012 13:57:06 +0300
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: lethalman88 gmail com
To: tal_hd hotmail com
CC: vala-list gnome org
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]