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

FreeBSD Manual Pages

  
 
  

home | help
al_get_def...der_source(3) Library Functions Manual al_get_def...der_source(3)

NAME
       al_get_default_shader_source - Allegro 5	API

SYNOPSIS
	      #include <allegro5/allegro.h>

	      char const *al_get_default_shader_source(ALLEGRO_SHADER_PLATFORM platform,
		 ALLEGRO_SHADER_TYPE type)

DESCRIPTION
       Returns a string	containing the source code to Allegro's	default	vertex
       or  pixel  shader  appropriate  for  the	 passed	 platform.   The ALLE-
       GRO_SHADER_AUTO value means GLSL	is used	if OpenGL is being used	other-
       wise HLSL.  ALLEGRO_SHADER_AUTO requires	that there is a	 current  dis-
       play set	on the calling thread.	This function can return NULL if Alle-
       gro was built without support for shaders of the	selected platform.

SINCE
       5.1.6

SEE ALSO
       al_attach_shader_source(3)

Allegro	reference manual			    al_get_def...der_source(3)

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

home | help