OpenGL ES 2 without GLKit

寵の児 提交于 2019-12-08 07:35:53

问题


I want to make an app that uses OpenGL ES 2.0. Can I do this without using GLKit, since I want to deploy it to iOS 4.3? I can't find any reference on this. Is it even possible to use shaders etc without GLKit?

Thanks


回答1:


You can develop in OpenGL ES 2.0 with shader support without using GLKit. GLKit is only there to make simple tasks easier but you don't have to use it at all. For starters have a look at the guide provided by Apple that outlines different approaches:

https://developer.apple.com/library/ios/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008793

Apple also provides sample code, for example this one has a renderer for ES 2.0 and the build requirements are iOS SDK 4.0 or higher:

https://developer.apple.com/library/ios/samplecode/GLEssentials/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010104



来源:https://stackoverflow.com/questions/22969809/opengl-es-2-without-glkit

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