1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
.\" Automatically generated by Pandoc 1.19.2.4
.\"
.TH "al_get_default_shader_source" "3" "" "Allegro reference manual" ""
.hy
.SH NAME
.PP
al_get_default_shader_source \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro.h>
char\ const\ *al_get_default_shader_source(ALLEGRO_SHADER_PLATFORM\ platform,
\ \ \ ALLEGRO_SHADER_TYPE\ type)
\f[]
.fi
.SH DESCRIPTION
.PP
Returns a string containing the source code to Allegro\[aq]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
.PP
5.1.6
.SH SEE ALSO
.PP
al_attach_shader_source(3)
|