简体   繁体   English

没有GLKit的OpenGL ES 2

[英]OpenGL ES 2 without GLKit

I want to make an app that uses OpenGL ES 2.0. 我想制作一个使用OpenGL ES 2.0的应用程序。 Can I do this without using GLKit, since I want to deploy it to iOS 4.3? 我想不将GLKit部署到iOS 4.3才能执行此操作吗? I can't find any reference on this. 我找不到任何参考。 Is it even possible to use shaders etc without GLKit? 没有GLKit,甚至可以使用着色器等吗?

Thanks 谢谢

You can develop in OpenGL ES 2.0 with shader support without using GLKit. 您可以在不使用GLKit的情况下在支持着色器的OpenGL ES 2.0中进行开发。 GLKit is only there to make simple tasks easier but you don't have to use it at all. GLKit只是在这里使简单的任务变得容易,但是您根本不需要使用它。 For starters have a look at the guide provided by Apple that outlines different approaches: 首先,请参阅Apple提供的指南,其中概述了不同的方法:

https://developer.apple.com/library/ios/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008793 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: 苹果还提供了示例代码,例如,其中有一个ES 2.0渲染器,并且构建要求是iOS SDK 4.0或更高版本:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM