src/mesh.c

changeset 311
87ff4c57955d
parent 304
afe83f4642cc
equal deleted inserted replaced
310:9212be32d7a2 311:87ff4c57955d
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);

mercurial