On Monday, April 2, 2012 at 7:53 PM, kuma wrote: > Hi, > I am trying to understand how to work openTK with es 2.0 in mono android. > > When I make a new project with opentk work fine, but default project run > with version 1.1 > if I force version with 2.0 the project don't work fine, OnUpdate and > OnRender don't start. > If you create a project with the default 1.1 version and call Run(), it works, but if you set 2.0, it doesn't? Are you running it on an emulator? The emulators don't support egl 2.0, so it will crash at runtime. Check the logcat for opengl exceptions, if things are crashing it will show up there.
> Then I found a xamarin sample called GLtriangle20 (it's work with opengl es > 2.0) but I see that draw triangle one time and OnRender not exsist! > > how to make a good project with 2.0 that call OnRender and OnUpdate without > problem? > Those samples are showing how to use opengl without the render thread, that's why you don't see Render and Update callbacks. You can change it to use the Run method and Render/Update callbacks instad (like the GLCube sample, for instance). andreia gaita ------------------- blog.worldofcoding.com (http://blog.worldofcoding.com) github.com/andreiagaita (http://github.com/andreiagaita)
_______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
