gergelydaniel / kgl

Lightweight OpenGL abstraction for Kotlin Multiplatform
MIT License
38 stars 9 forks source link

Make Buffer's backing ArrayBufferView accessible in JS #12

Closed xian closed 1 year ago

xian commented 1 year ago

It's necessary in order to use e.g. getBufferSubData(), which only exists in webgl2, and was thus a poor candidate for adding to the Kgl interface.

xian commented 1 year ago

Here's the relevant section in my code (currently on my own kgl fork); see here for background.