开发者

Android Mixing OpenGLES 1.0 and OpenGLES 2.0

I've been asked to create shaders for our Android engine and I'm a little confused. So far the engine has been built on the premise that we use GL10 instances to be responsbile for the drawing of everything. But because shaders are OpenGL 2.0 if I were to set the context client version to 2.0 and draw a simple scene (say a cube) nothing appears whereas it does if I use the default 1.0.

I'm not entirely sure how I should proceed - do I need to create different engines based on the highest level version of OpenGLES supported by the device? Use the higest possible regardless of what it can support (assuming backwar开发者_开发知识库d compatibility)?

Any help/suggestions appreciated...


OpenGL ES 2.x is not backward compatible with OpenGL ES 1.x. You have to write different code to support both of them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜