开发者

Are there any good OpenGL ES 2.0 examples for the iPhone?

开发者 https://www.devze.com 2023-01-11 01:50 出处:网络
Starting with the iPhone 3G S, OpenGL ES 2.0 has been supported on iOS devices.However, I can\'t find much in the way of sample code for OpenGL ES 2.0 aimed at the iPhone, or even some generic example

Starting with the iPhone 3G S, OpenGL ES 2.0 has been supported on iOS devices. However, I can't find much in the way of sample code for OpenGL ES 2.0 aimed at the iPhone, or even some generic examples. Where can I find 开发者_如何学编程sample code or tutorials about OpenGL ES 2.0 for the iPhone?


For a very basic example, the OpenGL ES Application template in the latest iOS SDK creates a basic application with two rendering paths, one OpenGL ES 1.1-based, the other using OpenGL ES 2.0.

Aside from that, I recommend watching the WWDC 2010 video session 417 - "OpenGL ES Shading and Advanced Rendering" for some examples of OpenGL ES 2.0 shaders on the iPhone. The book "iPhone 3D Programming" by Philip Rideout walks you through the use of OpenGL ES 2.0 shaders in an iPhone application.

Finally, I believe that "OpenGL Shading Language" by Randi Rost is still considered the definitive reference for the shaders used in OpenGL ES 2.0.

0

精彩评论

暂无评论...
验证码 换一张
取 消