9780596804824
ch00_id36000677.html

Preface

How to Read This Book

"It makes programming fun again!" is a cliché among geeks; all too often it's used to extol the virtues of some new-fangled programming language or platform. But I honestly think there's no better aphorism to describe iPhone graphics programming. Whether you're a professional or a hobbyist, I hope this book can play a small role in helping you to re-discover the joy of programming.

This book is not an OpenGL manual, but it does teach many basic OpenGL concepts as a means to an end: namely, 3D graphics programming on the iPhone and iPod Touch. Much of the book is written in a tutorial style, and I encourage you to download the sample code and play with it. Readers don't need a graphics background, nor do they need any experience with the iPhone SDK. A sound understanding of C++ is required; fluency in Objective C is useful but not necessary. A smidgen of Python is used in Chapter 7, Sprites and Text, but don't let it scare you off.

I tried to avoid making this book math-heavy, but, as with any 3D graphics book, you at least need a fearless attitude towards basic linear algebra. I'll hold your hand and jog your memory along the way.

If you're already familiar with 3D graphics, but haven't done much with the iPhone, you can still learn a thing or two from this book. There are certain sections that you can probably skip over. Much of Chapter 2, Math and Metaphors is an overview of general 3D graphics concepts; I won't be offended if you just skim through it. Conversely, if you have iPhone experience but are new to 3D graphics, you can gloss over some of the Objective C and Xcode overviews given in Chapter 1, Quick Start Guide.

In any case, I hope you enjoy reading the book as much as I enjoyed writing it!

Conventions Used in This Book

The following typographical conventions are used in this book:

Italic

Indicates new terms, URLs, email addresses, filenames, and file extensions.

Constant width

Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.

Constant width bold

Shows commands or other text that should be typed literally by the user.

Constant width italic

Shows text that should be replaced with user-supplied values or by values determined by context.

Note

This icon signifies a tip, suggestion, or general note.

Warning

This icon indicates a warning or caution.

Using Code Examples

This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission.

We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “iPhone 3D Programming by Philip Rideout. Copyright 2010 O’Reilly Media, Inc., 978-0-596-80482-4.”

If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .

Safari® Books Online

Note

When you see a Safari® Books Online icon on the cover of your favorite technology book, that means the book is available online through the O’Reilly Network Safari Bookshelf.

Safari offers a solution that’s better than e-books. It’s a virtual library that lets you easily search thousands of top tech books, cut and paste code samples, download chapters, and find quick answers when you need the most accurate, current information. Try it for free at http://my.safaribooksonline.com.

How to Contact Us

Please address comments and questions concerning this book to the publisher:

O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707 829-0104 (fax)

We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at:

http://oreilly.com/catalog/9780596804831

To comment or ask technical questions about this book, send email to:

For more information about our books, conferences, Resource Centers, and the O’Reilly Network, see our web site at:

http://www.oreilly.com

Acknowledgements

This book exists only because of the logical AND of the existence of a number of different people, including Harsha Kuntur, whose rabid iPhone enthusiasm is the seed for this book; Stephen Holmes, who unintentionally made me into an Apple fanboy; David Banks, who got me into graphics in the first place.

I'd also like to thank my editor and personal champion at O'Reilly, Brian Jepson. Much thanks to both John T. Kennedy and Jon C. Kennedy for their valuable suggestions (can't the Irish be more creative with names?). I was joyous when Serban Porumbescu agreed to review my book — I needed his experience. I'm also supremely grateful to Alex MacPhee and David Schmitt of Medical Simulation Corporation, who have been accomodating and patient as I tried to juggle my time with this book.

Finally I'd like to thank Mona, who had 1-800-DIVORCE on speed dial while I was having an affair with this book, but managed to resist the temptation. In fact, without her limitless support and encouragement, there's absolutely no way I could've done this.

Site last updated on: June 8, 2011 at 08:46:33 AM PDT