Re: [Vala] Binding an OpenGL function with GLchar* parameters
- From: Frederik <scumm_fredo gmx net>
- To: vala-list gnome org
- Subject: Re: [Vala] Binding an OpenGL function with GLchar* parameters
- Date: Sat, 13 Mar 2010 18:25:09 +0100
Am 13.03.2010 16:32, Tristin Celestin wrote:
I have a OpenGL function with this declaration:
GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index,
GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar
*name);
The parameters length, size, type, and name are all outputs of the function. My question is how to deal
with the name parameter. A GLchar* is just a char*.
Is this the correct way to bind the above function?
public static void glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, out GLsizei length,
out GLint size, out GLenum type, out string name);
Just 'string', not 'out string', otherwise it woule be 'GLchar **'.
Best regards,
Frederik
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]