[Vala] Binding an OpenGL function with GLchar* parameters
- From: Tristin Celestin <tristin_celestin yahoo com>
- To: vala-list gnome org
- Subject: [Vala] Binding an OpenGL function with GLchar* parameters
- Date: Sat, 13 Mar 2010 07:32:03 -0800 (PST)
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]