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
|
.TH "ALLEGRO_SHADER" "3" "" "Allegro reference manual" ""
.SH NAME
.PP
ALLEGRO_SHADER \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro.h>
typedef\ struct\ ALLEGRO_SHADER\ ALLEGRO_SHADER;
\f[]
.fi
.SH DESCRIPTION
.PP
An ALLEGRO_SHADER(3) is a program that runs on the GPU.
It combines both a vertex and a pixel shader.
(In OpenGL terms, an ALLEGRO_SHADER(3) is actually a \f[I]program\f[]
which has one or more \f[I]shaders\f[] attached.
This can be confusing.)
.PP
The source code for the underlying vertex or pixel shader can be
provided either as GLSL or HLSL, depending on the value of
ALLEGRO_SHADER_PLATFORM(3) used when creating it.
.SH SINCE
.PP
5.1.0
|