Skip to content

Instantly share code, notes, and snippets.

@flagoworld
Created February 24, 2013 08:51
Show Gist options
  • Save flagoworld/5023156 to your computer and use it in GitHub Desktop.
Save flagoworld/5023156 to your computer and use it in GitHub Desktop.
glBindTexture(GL_TEXTURE_2D,entity->model->texture->texture);
glUseProgram(entity->model->texture->shader->program);
glBindVertexArray(entity->model->vao);
glUniformMatrix4fv(entity->model->texture->shader->m_mvp,1,GL_FALSE,matrix_position(matrix,entity->pos.x,entity->pos.y,0,0,0,0));
glBindVertexArray(0);
glUseProgram(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment