Skip to content

creating buffer info without initial attrib values #201

Answered by greggman
Vadi asked this question in Q&A
Discussion options

You must be logged in to vote

It's not really clear what you're trying to do. For now you could do this

  const arrays = {
    position: {numComponents:2,  data: new Float32Array(6)},
    indices: new Uint16Array(numIndices),
  };

twgl does not provide a way to update indices. For that you'll have to use raw WebGL.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Vadi
Comment options

Answer selected by Vadi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants