Book Image

iOS Game Programming Cookbook

Book Image

iOS Game Programming Cookbook

Overview of this book

Table of Contents (19 chapters)
iOS Game Programming Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Introducing OpenGL


OpenGL stands for Open Graphics Library. This is a widely used library for visualizing two-dimensional and three-dimensional objects. This is a standard multipurpose two-dimensional and three-dimensional content creation graphics library. It is used in various streams, such as mechanical design, architectural design, gaming, prototyping, flight simulation, and many more. OpenGL is used to configure and submit three-dimensional graphics data to the device. All the data is prepared in the form of matrices and they are transformed to vertices, which are transformed and assembled to produce two-dimensional rasterized images. Two-dimensional graphics have two axes, which are x and y; however, in the case of three-dimensional graphics, we have three-dimensional axes, which are x, y, and z, where z is the depth.

This library is designed to compile normal function calls into graphical commands, which will get executed on the graphics rendering hardware. All the graphics hardware...