Pro OpenGL ES for iOS

(singke) #1

CHAPTER 5: Textures (^149)
Figure 5-15. The texture coordinates have a one-to-one mapping with the geometric ones.
Now change the texture coordinates to the following. Can you guess what will happen
(Figure 5-16)?
static GLfloat textureCoords[] =
{
0.0, 0.0,
2.0, 0.0,
0.0, 2.0,
2.0, 2.0
};

Free download pdf