Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
al_create_shader(3)	   Library Functions Manual	   al_create_shader(3)

NAME
       al_create_shader	- Allegro 5 API

SYNOPSIS
	      #include <allegro5/allegro.h>

	      ALLEGRO_SHADER *al_create_shader(ALLEGRO_SHADER_PLATFORM platform)

DESCRIPTION
       Create a	shader object.

       The  platform argument is one of	the ALLEGRO_SHADER_PLATFORM(3) values,
       and specifies the type of shader	object to create, and  which  language
       is used to program the shader.

       The  shader  platform  must be compatible with the type of display that
       you will	use the	shader with.  For example, you cannot create and use a
       HLSL shader on an OpenGL	display, nor a GLSL shader on a	Direct3D  dis-
       play.

       The  ALLEGRO_SHADER_AUTO	 value	automatically  chooses the appropriate
       platform	for the	display	currently  targeted  by	 the  calling  thread;
       there  must  be	such  a	 display.  It will create a GLSL shader	for an
       OpenGL display, and a HLSL shader for a Direct3D	display.

       Returns the shader object on success.  Otherwise, returns NULL.

SINCE
       5.1.0

SEE ALSO
       al_attach_shader_source(3),	      al_attach_shader_source_file(3),
       al_build_shader(3),	 al_use_shader(3),	 al_destroy_shader(3),
       al_get_shader_platform(3)

Allegro	reference manual				   al_create_shader(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=al_create_shader&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help