29 #include "ascension/context.h" |
29 #include "ascension/context.h" |
30 #include "ascension/texture.h" |
30 #include "ascension/texture.h" |
31 #include "ascension/filesystem.h" |
31 #include "ascension/filesystem.h" |
32 |
32 |
33 #include <assert.h> |
33 #include <assert.h> |
34 #include <cx/utils.h> |
|
35 #include <GL/glew.h> |
34 #include <GL/glew.h> |
36 #include <SDL2/SDL_image.h> |
35 #include <SDL2/SDL_image.h> |
37 |
36 |
38 void asc_texture_bind(AscTexture const *tex, int uniform_location, int unit) { |
37 void asc_texture_bind(AscTexture const *tex, int uniform_location, int unit) { |
39 glActiveTexture(GL_TEXTURE0 + unit); |
38 glActiveTexture(GL_TEXTURE0 + unit); |