| 39 typedef struct asc_text_shader_s { |
39 typedef struct asc_text_shader_s { |
| 40 AscShaderProgram program; |
40 AscShaderProgram program; |
| 41 asc_uniform_loc tex; |
41 asc_uniform_loc tex; |
| 42 } AscTextShader; |
42 } AscTextShader; |
| 43 |
43 |
| 44 static void asc_text_shader_init(AscShaderProgram *p, cx_attr_unused int flags) { |
44 static void asc_text_shader_init(AscShaderProgram *p, CX_UNUSED int flags) { |
| 45 asc_shader_set_uniform_loc_by_name(p, AscTextShader, tex); |
45 asc_shader_set_uniform_loc_by_name(p, AscTextShader, tex); |
| 46 } |
46 } |
| 47 |
47 |
| 48 static AscShaderProgram *asc_text_shader_create(int flags) { |
48 static AscShaderProgram *asc_text_shader_create(int flags) { |
| 49 return asc_shader_create((AscShaderCodes){ |
49 return asc_shader_create((AscShaderCodes){ |