| 29 #include "ascension/error.h" |
29 #include "ascension/error.h" |
| 30 #include "ascension/mesh.h" |
30 #include "ascension/mesh.h" |
| 31 |
31 |
| 32 #include <cx/allocator.h> |
32 #include <cx/allocator.h> |
| 33 |
33 |
| 34 #include <GL/glew.h> |
34 #include "glad.h" |
| 35 |
35 |
| 36 int asc_mesh_allocate_buffers(AscMesh *mesh, unsigned count) { |
36 int asc_mesh_allocate_buffers(AscMesh *mesh, unsigned count) { |
| 37 GLuint buffers[count]; |
37 GLuint buffers[count]; |
| 38 GLuint arrays[count]; |
38 GLuint arrays[count]; |
| 39 glGenBuffers(count, buffers); |
39 glGenBuffers(count, buffers); |