xcode 绘制一个 3D 立方体并旋转它

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15572493/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:02:28  来源:igfitidea点击:

Drawing a 3D cube and rotating it

iosobjective-cxcodeopengl-es3d

提问by riccardolardi

For an iOS app I want to draw a 3D cube and be able to rotate it with swipe gestures. Where can I find a tutorial or something for such a basic scenario? All I can find are deep reads for openGL but I think there must be something easier?

对于 iOS 应用程序,我想绘制一个 3D 立方体并能够使用滑动手势旋转它。我在哪里可以找到有关此类基本场景的教程或其他内容?我所能找到的只是对 openGL 的深度读取,但我认为一定有更简单的方法吗?

采纳答案by Adis

Cocos3dis a good framework to start with, and rather simple to use. Check the demo for examples, I think they have a rotating object inside as well.

Cocos3d是一个很好的入门框架,而且使用起来相当简单。查看演示以获取示例,我认为它们内部也有一个旋转对象。