OpenGL® ES 2.0 Programming Guide - Book Website

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

This site is for the first edition of the book covering OpenGL ES 2.0. If you are looking for the OpenGL ES 3.0 Programming Guide please visit http://www.opengles-book.com.


Errata

This page contains a list of all known errata from the book. Please report any errata to errors@opengles-book.com

The following errors were present in the first printing of the OpenGL ES 2.0 Programming Guide, but were fixed in the second printing.
The following errors are present in the current printing of the OpenGL ES 2.0 Programming Guide:

but it should be:

glBindBuffer(GL_ARRAY_BUFFER, vboIds[0]);
glEnableVertexAttribArray(VETEX_POS_INDX);
glVertexAttribPointer(VERTEX_POS_INDX, VERTEX_POS_SIZE, GL_FLOAT, GL_FALSE, vtxStrides[0], 0);
glBindBuffer(GL_ARRAY_BUFFER, vboIds[1]);
glEnableVertexAttribArray(VETEX_NORMAL_INDX);
glVertexAttribPointer(VERTEX_NORMAL_INDX, VERTEX_NORMAL_SIZE, GL_FLOAT, GL_FALSE, vtxStrides[1], 0);
glBindBuffer(GL_ARRAY_BUFFER, vboIds[2]);
glEnableVertexAttribArray(VETEX_TEXCOORD0_INDX);
glVertexAttribPointer(VERTEX_TEXCOORD0_INDX, VERTEX_TEXCOORD0_SIZE, GL_FLOAT, GL_FALSE, vtxStrides[2], 0);

(reported by Michael Polster - added 3/27/10).

 GLubyte indices[36] = {
    0, 1, 2,
    0, 2, 3,
    0, 3, 4,
    0, 4, 5,
    0, 5, 6,
    0, 6, 1,
    7, 1, 6,
    7, 2, 1,
    7, 5, 4,
    7, 6, 5,
    7, 3, 2,
    7, 4, 3
};

(thanks to Martin Kraus for reporting this error - added 8/15/10).

Last Updated: 10/22/12