Created
July 11, 2017 17:16
-
-
Save copygirl/0a4ba312f717e6b51b6114b273492810 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc data*[T](buffer: Buffer, data: ref openArray[T], | |
usage = BufferUsageHint.StaticDraw) = | |
glBufferData(buffer.target, data.len * sizeof(T), addr(data[0]), usage) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment