al_set_shader_sampler - Online Linux Manual PageSection : 3
Updated :
Source : Allegro reference manual
Note :
NAMEal_set_shader_sampler − Allegro 5 API
SYNOPSIS
#include <allegro5/allegro.h>
bool al_set_shader_sampler(const char *name,
ALLEGRO_BITMAP *bitmap, int unit)
DESCRIPTIONSets a texture sampler uniform and texture unit of the current target bitmap's shader. The given bitmap must be a video bitmap. Different samplers should use different units. The bitmap passed to Allegro's drawing functions uses the 0th unit, so if you're planning on using the al_tex variable in your pixel shader as well as another sampler, set the other sampler to use a unit different from 0. With the primitives addon, it is possible to free up the 0th unit by passing NULL as the texture argument to the relevant drawing functions. In this case, you may set a sampler to use the 0th unit and thus not use al_tex (the al_use_tex variable will be set to false). Returns true on success. Otherwise returns false, e.g. if the uniform by that name does not exist in the shader.
SINCE5.1.0
SEE ALSOal_use_shader(3) 0
Johanes Gumabo
Data Size : 4,218 byte
man-al_set_shader_sampler.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 5 / 180,321
Visitor ID : :
Visitor IP : 18.223.171.83 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.