OpenGL® ES 2.0 Programming Guide - Book Website

Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner
Publisher: Addison-Wesley Professional
ISBN: 0321502795

 

Sample Code

The sample code from the book is now available for Windows and iPhone SDK 3.0. Please choose which you would like to download:

iPhone SDK 3.0 - Prerequisites

In order to be able to build and run the code samples, you will need:

The iPhone sample code is available for download from this link: OpenGL_ES_Programming_Guide_iPhone_v1.0.0.tar.gz.

Instructions for building and using the samples are in an e-Chapter on the iPhone 3G S available for download in PDF format from this link: OpenGL_ES_20_Programming_Guide_iPhone_eChapter.pdf


Windows - Prerequisites

In order to be able to build and run the code samples, you will need:

You will need to download and install the following:

  1. In order to build and run the code samples, you will need AMD's OpenGL ES 2.0 Emulator which can be downloaded from http://developer.amd.com/gpu/opengl/Pages/default.aspx.
  2. In order to view the RenderMonkey example workspaces, you will need to download and install RenderMonkey v1.81. This tool can be downloaded from AMD Developer Central at http://developer.amd.com/gpu/rendermonkey/Pages/default.aspx.
  3. In order to build and run the OpenKODE sample in Chapter 15, you will need Acrodea's OpenKODE 1.0 Implementation for Windows.  This can be downloaded from http://www.acrodea.co.jp/en/openkode/ (NOTE: if you do not care to build/run the OpenKODE sample in Chapter 15, you can skip this step).

Examples

All of the code samples and RenderMonkey workspaces can be downloaded from the following link:

http://www.opengles-book.com/OpenGL_ES_Programming_Guide_v1.0.2.zip

 

Setup Instructions

  1. Unzip OpenGL_ES_Programming_Guide_v1.0.1.zip to its own folder.
  2. If you have not done so already, install AMD's OpenGL ES 2.0 Emulator.
  3. Copy the following files from C:\program files\AMD\OpenGL ES 2.0 Emulator v1.1\bin to the \Bin folder:
    • libEGL.dll
    • libGLESv2.dll
  4. Copy the following files from C:\program files\AMD\OpenGL ES 2.0 Emulator v1.1\lib to the \Lib folder:
    • libEGL.lib
    • libGLESv2.lib
  5. For the OpenKODE sample in Chapter 15, place the following file from Acrodea's OpenKODE Implementation to the \Lib folder:
    • libKD.lib

Alternative: Setup Instructions Using the PowerVR SDK

  1. Unzip OpenGL_ES_Programming_Guide_v1.0.1.zip to its own folder.
  2. Download Imagination Technologies Khronos OpenGL ES 2.0 SDK from http://www.imgtec.com/powervr/insider/sdkdownloads/index.asp.
  3. Copy the following files from C:\Imagination Technologies\PowerVR SDK\OGLES2_WINDOWS_PCEMULATION_2.02.22.0756\Builds\OGLES2\WindowsPC\Lib to the \Bin folder:
    • libEGL.dll
    • libGLESv2.dll
  4. Copy the following files from C:\Imagination Technologies\PowerVR SDK\OGLES2_WINDOWS_PCEMULATION_2.02.22.0756\Builds\OGLES2\WindowsPC\Lib to the \Lib folder:
    • libEGL.lib
    • libGLESv2.lib
  5. Copy all of the files from C:\Imagination Technologies\PowerVR SDK\OGLES2_WINDOWS_PCEMULATION_2.02.22.0756\Builds\OGLES2\Include to the \Common\Include folder (overwriting the existing headers).
  6. For the OpenKODE sample in Chapter 15, place the following file from Acrodea's OpenKODE Implementation to the \Lib folder:
    • libKD.lib