| 35 #include "ascension/constants.h" |
35 #include "ascension/constants.h" |
| 36 |
36 |
| 37 #include <GL/glew.h> |
37 #include <GL/glew.h> |
| 38 |
38 |
| 39 |
39 |
| 40 struct asc_sprite_shader_s { |
40 typedef struct asc_sprite_shader_s { |
| 41 AscShaderProgram program; |
41 AscShaderProgram program; |
| 42 int tex; |
42 int tex; |
| 43 }; |
43 } AscSpriteShader; |
| 44 |
|
| 45 typedef struct asc_sprite_shader_s AscSpriteShader; |
|
| 46 |
44 |
| 47 static void *asc_sprite_shader_create(bool rect) { |
45 static void *asc_sprite_shader_create(bool rect) { |
| 48 AscShaderCodes codes; |
46 AscShaderCodes codes; |
| 49 if (asc_shader_load_code_files((AscShaderCodeInfo){ |
47 if (asc_shader_load_code_files((AscShaderCodeInfo){ |
| 50 .files.vtx = "sprite_vtx.glsl", |
48 .files.vtx = "sprite_vtx.glsl", |