AL_CREATE_SHADER(3ALLEG5) - Linux manual page online | Library functions
Allegro 5 API.
Chapter
al_create_shader(3alleg5) al_create_shader(3alleg5)
Allegro reference manual al_create_shader(3alleg5)
NAME
al_create_shader - Allegro 5 APISYNOPSIS
#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(3alleg5) 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 display. The ALLEGRO_SHADER_AUTO value automatically chooses the appropriate platform for the dis‐ play currently targeted by the calling thread; there must be such a display. It will cre‐ ate 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.0SEE ALSO
al_attach_shader_source(3alleg5), al_attach_shader_source_file(3alleg5), al_build_shad‐ er(3alleg5), al_use_shader(3alleg5), al_destroy_shader(3alleg5), al_get_shader_plat‐ form(3alleg5)This manual | Reference | Other manuals |
---|---|---|
al_create_shader(3alleg5) | referred by | al_destroy_shader(3alleg5) | al_get_shader_platform(3alleg5) |
refer to | al_attach_shader_source(3alleg5) | al_attach_shader_source_file(3alleg5) | al_destroy_shader(3alleg5) | al_use_shader(3alleg5) | ALLEGRO_SHADER_PLATFORM(3alleg5) |