.\" Automatically generated by Pandoc 3.1.11.1 .\" .TH "al_get_default_shader_source" "3" "" "Allegro reference manual" "" .SH NAME al_get_default_shader_source \- Allegro 5 API .SH SYNOPSIS .IP .EX #include char const *al_get_default_shader_source(ALLEGRO_SHADER_PLATFORM platform, ALLEGRO_SHADER_TYPE type) .EE .SH DESCRIPTION Returns a string containing the source code to Allegro\[cq]s default vertex or pixel shader appropriate for the passed platform. The ALLEGRO_SHADER_AUTO value means GLSL is used if OpenGL is being used otherwise HLSL. ALLEGRO_SHADER_AUTO requires that there is a current display set on the calling thread. This function can return NULL if Allegro was built without support for shaders of the selected platform. .SH SINCE 5.1.6 .SH SEE ALSO al_attach_shader_source(3)