Re: [MacRuby-devel] Passing a string buffer to a C function

2010-05-05 Thread Laurent Sansonetti
Hi Mike, Thanks for the report. I think this is because GLchar* is typed in the runtime as a C-style string. The compiler should allow Pointer objects for this runtime type. Currently, it only allows nil, symbols and strings. Could you file a bug? We will track this... Thanks, Laurent On May

[MacRuby-devel] Passing a string buffer to a C function

2010-05-05 Thread Mike Taylor
Hi all, I'm trying to do some GLSL shaders with MacRuby. However, I'm a bit stumped as to how to call glGetShaderInfoLog if the shader compilation fails. The C function's prototype is: void glGetShaderInfoLog(GLuint shader, GLsizei maxLength, GLsizei * length, GLchar * infoLog); I couldn't