Game Development Reference
In-Depth Information
Getting ready
Xcode provides a built-in OpenGL-ES project template; still, we think it will be confusing
for beginners to start with that template. A typical approach is to write the code step-by-
step, in order to understand how the code works and the functionality of each function.
Here, we will write all the code from scratch, which will help you to understand the nitty-
gritty of each and every line of code written to render views using OpenGL. To add frame-
works, perform the following steps:
1. Start up Xcode. Make a single-view application and click on Next . Name your pro-
ject OpenGLSample, click on Next , choose a folder to save it in, and click on
Create .
2. Now, we will add all the required frameworks in the project. To add the frame-
works, the first step is to add the two required frameworks for our OpenGL project.
They are OpenGLES.frameworks and GLKit.framework .
3. To add these frameworks in Xcode 6, click on your OpenGLSample project in the
Groups & Files tree, and select the OpenGLSample target. Expand the Link Bin-
ary with the Libraries section, click on the plus button, and select
OpenGLES.framework . Repeat for GLKit.framework as well, as shown in the
following screenshot:
Search WWH ::




Custom Search