On Mar 21, 2012, at 11:16 AM, Rodrigo 'r2d2rigo' Diaz wrote:
> But there aren't any references to Mono.Constants or something alike in 
> MonoDroid. Is this possible?

The constant isn't present, so you just need to use a different string. The 
/system/lib/libGLESv2.so file on my Xoom contains a glGetProgramInfoLog() 
export, so this might work:

        [DllImport("/system/lib/libGLESv2.so")]
        static extern void glGetProgramInfoLog(uint program, int bufsize, ref 
int length, StringBuilder infolog);

However, not all systems may have that library (e.g. it looks like it's in GLES 
v2.0 support, so platforms supporting only GLES v1.1 will fail); attempting to 
call glGetProgramInfoLog() on such a system will result in an exception 
(probably DllNotFoundException).

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to