Guest User

Untitled

a guest
May 20th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. glBindVertexArray(vaoId);
  2.  
  3. // ... tell OpenGL to draw on first window
  4.  
  5. glClear(GL_COLOR_BUFFER_BIT);
  6. glDrawArrays(...);
  7.  
  8. // ... swap first window buffers
  9.  
  10. // ... tell OpenGL to draw on second window
  11.  
  12. glClear(GL_COLOR_BUFFER_BIT);
  13. glDrawArrays(...);
  14.  
  15. // ... swap second window buffers
  16.  
  17. glBindVertexArray(0);
Add Comment
Please, Sign In to add comment