Skip to content

Instantly share code, notes, and snippets.

@tgfrerer
Created March 19, 2013 16:30
Show Gist options
  • Save tgfrerer/5197641 to your computer and use it in GitHub Desktop.
Save tgfrerer/5197641 to your computer and use it in GitHub Desktop.
if(bUsingTexCoords) {
glBindBuffer(GL_ARRAY_BUFFER, texCoordId);
ofEnableTexCoords();
if(ofGLIsFixedPipeline()){
glTexCoordPointer(2, GL_FLOAT, texCoordStride, 0);
}else{
glVertexAttribPointer(ofGetAttrLocationTexCoord(), 2, GL_FLOAT, GL_FALSE, texCoordStride, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment