问题
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