Cocoa Design Patterns
Learning OpenGL ES for iOS
Presentations
Buy at Amazon Now
  • Cocoa Design Patterns
    Cocoa Design Patterns
    by Erik M. Buck, Donald A. Yacktman
  • Learning OpenGL ES for iOS: A Hands-on Guide to Modern 3D Graphics Programming
    Learning OpenGL ES for iOS: A Hands-on Guide to Modern 3D Graphics Programming
    by Erik M. Buck
« Integrating Realistic 3D Physics Simulation for iOS | Main | Cosmic Thump »
Tuesday
Apr242012

Revised Sample Code (Beta 3) for "Learning OpenGL ES for iOS"

Check out the revised sample code for "Learning OpenGL ES for iOS". As always, comments and suggestions are appreciated. The samples may not make much sense to you without the accompanying chapter text available as a Rough Cut version through Safari now and at your favorite book store soon.

Reader Comments (2)

Great book! I'm looking forward to the final print version.

I have been playing with the sample code, using the Terrain Editor to make a new terrain. I then save this as trail2.binary and copy it the the Supporting Files of the Example OpenGLES_Ch10_2. Accordingly, I change the code for NSURL to:

NSURL *storeURL = [[NSBundle mainBundle]
URLForResource:@"trail2" withExtension:@"binary"];

However, whatever I try always gives a compile error:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Cannot create a binary store with a nil URL.'

Any help on why this happens would be much appreciated.

Many thanks!

Eric
June 29, 2012 | Unregistered CommenterEric
To answer my own query, I had forgotten to Copy the file to the Bundle Resources.

Eric
June 29, 2012 | Unregistered CommenterEric

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.