pragmatism first

AL_CREATE_SHADER(3ALLEG5) - Linux manual page online | Library functions

Allegro 5 API.

al_create_shader(3alleg5) al_create_shader(3alleg5)


al_create_shader - Allegro 5 API


#include <allegro5/allegro.h> ALLEGRO_SHADER *al_create_shader(ALLEGRO_SHADER_PLATFORM platform)


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.




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)
Allegro reference manual al_create_shader(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)
Download raw manual
Index Allegro reference manual (+999) № 3 (+68044)
Go top