Hi,
On Wednesday, March 21, 2012 at 3:16 PM, Rodrigo 'r2d2rigo' Diaz wrote:
> I'm currently porting some MonoTouch code over to MonoDroid. It would be nice
> if I could use Vertex Array Objects in Android (the target platform supports
> the GL_OES_vertex_array_object extension) but there are no available bindings.
>
It looks like these methods aren't exposed publically in the GL bindings class.
We'll add them there, but in the meantime you should be able to access them
directly via DllImport
> I have already made my own bindings in MonoTouch with DllImport, with code
> like this:
>
> [DllImport(MonoTouch.Constants.OpenGLESLibrary)]
> static extern void glGetProgramInfoLog(uint program, int bufsize, ref int
> length, StringBuilder infolog);
GetProgramInfoLog is available from the OpenTK.Graphics.ES10[11/20].GL class.
Many other non-egl calls are available from that class as well (not all
though).
> But there aren't any references to Mono.Constants or something alike in
> MonoDroid. Is this possible?
>
>
>
Yes, it's just that the constant isn't declared. We'll add it, but in the
meantime, you can use the library name directly, DllImport("libGLESv1_CM.dll")
or DllImport("libGLESv2.dll") (egl 1 or 2)
andreia gaita
-------------------
blog.worldofcoding.com
github.com/andreiagaita
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid