1al_get_default_shader_source(3) al_get_default_shader_source(3)
2
3
4
6 al_get_default_shader_source - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 char const *al_get_default_shader_source(ALLEGRO_SHADER_PLATFORM platform,
12 ALLEGRO_SHADER_TYPE type)
13
15 Returns a string containing the source code to Allegro's default vertex
16 or pixel shader appropriate for the passed platform. The ALLE‐
17 GRO_SHADER_AUTO value means GLSL is used if OpenGL is being used other‐
18 wise HLSL. ALLEGRO_SHADER_AUTO requires that there is a current dis‐
19 play set on the calling thread. This function can return NULL if Alle‐
20 gro was built without support for shaders of the selected platform.
21
23 5.1.6
24
26 al_attach_shader_source(3)
27
28
29
30Allegro reference manual al_get_default_shader_source(3)