Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. };