OpenGL ES 2 without GLKit

2019-06-08 05:07发布

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条回答
闹够了就滚
2楼-- · 2019-06-08 05:14

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

查看更多
登录 后发表回答