Skip to content

Instantly share code, notes, and snippets.

@yorung
Created July 6, 2015 15:22
Show Gist options
  • Save yorung/bad5644c275f5fc6c5dc to your computer and use it in GitHub Desktop.
Save yorung/bad5644c275f5fc6c5dc to your computer and use it in GitHub Desktop.
How to query attribute location
GLint positionIndex = glGetAttribLocation(program, "position");
GLint normalIndex = glGetAttribLocation(program, "normal");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment