不含GLKit的OpenGL ES 2 [英] OpenGL ES 2 without GLKit

查看:105
本文介绍了不含GLKit的OpenGL ES 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个使用OpenGL ES 2.0的应用程序. 既然我想将其部署到iOS 4.3,可以不使用GLKit来执行此操作吗?我找不到任何参考. 在没有GLKit的情况下甚至可以使用着色器等吗?

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?

谢谢

推荐答案

您可以在不使用GLKit的情况下在支持着色器的OpenGL ES 2.0中进行开发. GLKit只是为了简化简单的任务,而您根本不必使用它.首先,请看一下Apple提供的指南,其中概述了不同的方法:

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:

Apple还提供了示例代码,例如,其中有一个ES 2.0渲染器,并且构建要求是iOS SDK 4.0或更高版本:

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

这篇关于不含GLKit的OpenGL ES 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆