Guest User

Untitled

a guest
May 7th, 2012
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. iOS: Confusion about texture coordinates for rendering a texture on the screen
  2. static const GLfloat squareVertices[] = {
  3. -1.0f, -1.0f,
  4. 1.0f, -1.0f,
  5. -1.0f, 1.0f,
  6. 1.0f, 1.0f,
  7. };
  8.  
  9. static const GLfloat textureVertices[] = {
  10. 1.0f, 1.0f,
  11. 1.0f, 0.0f,
  12. 0.0f, 1.0f,
  13. 0.0f, 0.0f,
  14. };
  15.  
  16. static const GLfloat textureVertices[] = {
  17. 0.0f, 1.0f,
  18. 1.0f, 1.0f,
  19. 0.0f, 0.0f,
  20. 1.0f, 0.0f,
  21. };
Advertisement
Add Comment
Please, Sign In to add comment