SHARE
TWEET

Untitled

a guest Mar 14th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     glGenBuffers(1, &vb);
  2.     glBindBuffer(GL_ARRAY_BUFFER, vb);
  3.     glBufferData(GL_ARRAY_BUFFER, maxVertices * sizeof(MeshVertex), nullptr, GL_DYNAMIC_DRAW);
  4.  
  5.     glGenBuffers(1, &ib);
  6.     glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ib);
  7.     glBufferData(GL_ELEMENT_ARRAY_BUFFER, maxIndices * sizeof(uint16_t), nullptr, GL_DYNAMIC_DRAW);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top