私は現在、iOS の OpenGL でプログラミングする方法を学ぼうとしています。私が読んでいる本は Xcode 3 (Learning iOS Game Programming) 向けに作成されており、Xcode v3 と v4.5 の間で OpenGL を統合する際に、OpenGL v1 と v2 の分離、OpenGL を取り除くことで大きな飛躍があることがわかりました。ライブラリと古いテンプレートを取り除きます。3 次元の正方形を見るのではなく、新しい標準の OpenGL テンプレートに変換された元の OpenGL テンプレート (2D の正方形が上下に移動するもの) を見ることができれば、出発点を得るのに本当に役立つと思います。何が何に翻訳されているかがわかります。彼らがビューを変更した理由はわかりませんが (可能性を示すためですか?)、古いテンプレートと比較して、何がどこにあるのかを相互参照するのが非常に難しくなっています。
1 に答える
The template that is included in xcode 4.5 uses openGL es 2. It shows 2 approaches. The first one is by using OpenGL ES 2.0 natively, shaders and everything that people are used to. The other is by using the special apple framework (GLKit). This one is made to ease the leap between OpenGL 1 and 2. (The transition between fixed and programable pipeline). My suggestion is to change completely your sources. Focus completely on OpenGL ES 2.0 by using other internet sources.
This link here explains the basics using the new template:
http://www.raywenderlich.com/5223/beginning-opengl-es-2-0-with-glkit-part-1