Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to draw vertex data (i.e. gl.drawArrays)? #74

Open
hrbigelow opened this issue Jul 29, 2021 · 0 comments
Open

Is it possible to draw vertex data (i.e. gl.drawArrays)? #74

hrbigelow opened this issue Jul 29, 2021 · 0 comments

Comments

@hrbigelow
Copy link

Hi,

Is it possible to draw vertices? For instance, with this [vertex shader]](https://github.com/hrbigelow/wij-wemnan/blob/master/shaders/scatter-v.cc), I eventually call it with:

write_to_gl: function() {
      this.gl.bindBuffer(this.gl.ARRAY_BUFFER, this.glbuf);
      this.gl.bufferData(this.gl.ARRAY_BUFFER, this.jsbuf, this.gl.STATIC_DRAW);
      this.gl.bindBuffer(this.gl.ARRAY_BUFFER, null);
}

But I don't see any part of glslCanvas API that allows sending vertex data to it, is there?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant