ziglibs / zgl

Zig OpenGL Wrapper
MIT License
425 stars 62 forks source link

Allow null for bufferData and namedBufferData #35

Closed BanchouBoo closed 3 years ago

BanchouBoo commented 3 years ago

Closes #23

ikskuh commented 3 years ago

I think this is a bad way as it introduces more footguns than it helps. I would either make two functions where one takes a length, the other takes a slice or make a function that takes a union(enum) { length: usize, data: []const T }

BanchouBoo commented 3 years ago

Made a new PR #36 that uses separate functions for uninitialized buffers