OpenGL 2.0 Drawing with Monodroid (using OpenTK)

孤人 提交于 2019-12-23 02:36:57

问题


I'm attempting to setup a cross platform application that uses OpenTK-1.0 to draw some basic 3D objects using the programmable pipeline approach in OpenGL ES 2.0. I have the iOS side of the application working perfectly but the Android facing application keeps hitting calling unimplemented OpenGL ES API errors.

I believe this is happening because the Android side of the application is not being setup properly to target OpenGL ES 2.0. I've updated the AndroidManifest.xml with the appropriate <uses-feature> tag but I'm unable to set GLContextVersion = GLContextVersion.Gles2_0; in the overridden CreateFrameBuffer() function for AndroidGameView.

For some reason the GLContextVersion property doesn't seem to exist in OpenTK version 1.0, but did exist in 0.9.9.3. How do I go about setting the context to target OpenGL ES 2.0 using OpenTK-1.0?


回答1:


As per Dykam's comment above, the GL context version is now set to handle GL ES 2.0 by using ContextRenderingApi = GLVersion.ES2; in CreateFrameBuffer().



来源:https://stackoverflow.com/questions/15070872/opengl-2-0-drawing-with-monodroid-using-opentk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!