al_set_shader_int_vector - Online Linux Manual PageSection : 3
Updated :
Source : Allegro reference manual
Note :
NAMEal_set_shader_int_vector − Allegro 5 API
SYNOPSIS
#include <allegro5/allegro.h>
bool al_set_shader_int_vector(const char *name,
int num_components, const int *i, int num_elems)
DESCRIPTIONSets an integer vector array uniform of the current target bitmap's shader. The 'num_components' parameter can take one of the values 1, 2, 3 or 4. If it is 1 then an array of 'num_elems' integer elements is added. Otherwise each added array element is assumed to be a vector with 2, 3 or 4 components in it. For example, if you have a GLSL uniform declared as uniform ivec3 flowers[4] or an HLSL uniform declared as uniform int3 flowers[4], then you'd use this function from your code like so:
int flowers[4][3] =
{
{1, 2, 3},
{4, 5, 6},
{7, 8, 9},
{2, 5, 7}
};
al_set_shader_int_vector("flowers", 3, (int*)flowers, 4);
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_set_shader_float_vector(3), al_use_shader(3) 0
Johanes Gumabo
Data Size : 5,028 byte
man-al_set_shader_int_vector.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 181,507
Visitor ID : :
Visitor IP : 18.117.168.40 :
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.