[Vala] Binding an OpenGL function with GLchar* parameters



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);


      



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]