Linux Manuals session 3
Section 3: library functions
-
-
get_z_rotate_matrix_f (3) Linux Manual Page
NAME get_z_rotate_matrix, get_z_rotate_matrix_f – Construct Z axis rotation matrices. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_z_rotate_matrix(MATRIX *m, fixed r); void get_z_rotate_matrix_f(MATRIX_f *m, float r); DESCRIPTION Construct Z axis rotation matrices, storing them in m. When applied to a point, these matrices will rotate it about the Z axis by the specified angle (given…
-
get_z_rotate_matrix (3) Linux Manual Page
NAME get_z_rotate_matrix, get_z_rotate_matrix_f – Construct Z axis rotation matrices. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_z_rotate_matrix(MATRIX *m, fixed r); void get_z_rotate_matrix_f(MATRIX_f *m, float r); DESCRIPTION Construct Z axis rotation matrices, storing them in m. When applied to a point, these matrices will rotate it about the Z axis by the specified angle (given…
-
get_y_rotate_matrix_f (3) Linux Manual Page
NAME get_y_rotate_matrix, get_y_rotate_matrix_f – Construct Y axis rotation matrices. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_y_rotate_matrix(MATRIX *m, fixed r); void get_y_rotate_matrix_f(MATRIX_f *m, float r); DESCRIPTION Construct Y axis rotation matrices, storing them in m. When applied to a point, these matrices will rotate it about the Y axis by the specified angle (given…
-
get_y_rotate_matrix (3) Linux Manual Page
NAME get_y_rotate_matrix, get_y_rotate_matrix_f – Construct Y axis rotation matrices. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_y_rotate_matrix(MATRIX *m, fixed r); void get_y_rotate_matrix_f(MATRIX_f *m, float r); DESCRIPTION Construct Y axis rotation matrices, storing them in m. When applied to a point, these matrices will rotate it about the Y axis by the specified angle (given…
-
get_x_rotate_matrix_f (3) Linux Manual Page
NAME get_x_rotate_matrix, get_x_rotate_matrix_f – Construct X axis rotation matrices. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_x_rotate_matrix(MATRIX *m, fixed r); void get_x_rotate_matrix_f(MATRIX_f *m, float r); DESCRIPTION Construct X axis rotation matrices, storing them in m. When applied to a point, these matrices will rotate it about the X axis by the specified angle (given…
-
get_x_rotate_matrix (3) Linux Manual Page
NAME get_x_rotate_matrix, get_x_rotate_matrix_f – Construct X axis rotation matrices. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_x_rotate_matrix(MATRIX *m, fixed r); void get_x_rotate_matrix_f(MATRIX_f *m, float r); DESCRIPTION Construct X axis rotation matrices, storing them in m. When applied to a point, these matrices will rotate it about the X axis by the specified angle (given…
-
get_volume (3) Linux Manual Page
NAME get_volume – Retrieves the global sound output volume. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_volume(int *digi_volume, int *midi_volume); DESCRIPTION Retrieves the global sound output volume, both for digital samples and MIDI playback, as integers from 0 to 255. Parameters digi_volume and midi_volume must be valid pointers to int, or NULL if not…
-
get_vector_rotation_matrix_f (3) Linux Manual Page
NAME get_vector_rotation_matrix, get_vector_rotation_matrix_f – Constructs X, Y, Z rotation matrices with an angle. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_vector_rotation_matrix(MATRIX *m, fixed x, y, z, fixed a); void get_vector_rotation_matrix_f(MATRIX_f *m, float x, y, z, float a); DESCRIPTION Constructs a transformation matrix which will rotate points around the specified x,y,z vector by the specified…
-
get_vector_rotation_matrix (3) Linux Manual Page
NAME get_vector_rotation_matrix, get_vector_rotation_matrix_f – Constructs X, Y, Z rotation matrices with an angle. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_vector_rotation_matrix(MATRIX *m, fixed x, y, z, fixed a); void get_vector_rotation_matrix_f(MATRIX_f *m, float x, y, z, float a); DESCRIPTION Constructs a transformation matrix which will rotate points around the specified x,y,z vector by the specified…
-
get_vector_list (3) Linux Manual Page
NAME get_vector_list — retrieve a list of vector fields in a dirfile SYNOPSIS #include <getdata.h> const char **get_vector_list(DIRFILE *dirfile); DESCRIPTION The get_vector_list() function queries a dirfile(5) database specified by dirfile and returns a read-only list of names of the all vector type fields defined in the database (i.e. fields of types BIT,~LINCOM,~LINTERP,~MULTIPLY,~PHASE,~POLYNOM,~RAW, SBIT). Notably, this…
-
get_uformat (3) Linux Manual Page
NAME get_uformat – Finds out what text encoding format is currently selected. Allegro game programming library. SYNOPSIS #include <allegro.h> int get_uformat(void); DESCRIPTION Finds out what text encoding format is currently selected. This function is probably useful only if you are writing an Allegro addon dealing with text strings and you use a different codepath for…
-
get_translation_matrix_f (3) Linux Manual Page
NAME get_translation_matrix, get_translation_matrix_f – Constructs a translation matrix. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_translation_matrix(MATRIX *m, fixed x, fixed y, fixed z); void get_translation_matrix_f(MATRIX_f *m, float x, float y, float z); DESCRIPTION Constructs a translation matrix, storing it in m. When applied to the point (px, py, pz), this matrix will produce the…
-
get_translation_matrix (3) Linux Manual Page
NAME get_translation_matrix, get_translation_matrix_f – Constructs a translation matrix. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_translation_matrix(MATRIX *m, fixed x, fixed y, fixed z); void get_translation_matrix_f(MATRIX_f *m, float x, float y, float z); DESCRIPTION Constructs a translation matrix, storing it in m. When applied to the point (px, py, pz), this matrix will produce the…
-
get_transformation_matrix (3) Linux Manual Page
NAME get_transformation_matrix – Constructs X, Y, Z rotation matrices with an angle and scaling. Allegro game programming library. SYNOPSIS #include <allegro.h> void get_transformation_matrix(MATRIX *m, fixed scale, fixed xrot, yrot, zrot, x, y, z); DESCRIPTION Constructs a transformation matrix which will rotate points around all three axes by the specified amounts (given in binary, 256 degrees…
-
get_strings (3) Linux Manual Page
NAME get_strings — retrieve a list of string values from a dirfile SYNOPSIS #include <getdata.h> const char **get_strings(DIRFILE *dirfile); DESCRIPTION The get_strings() function queries a dirfile(5) database specified by dirfile and returns a read-only list of values of the all STRING type fields defined in the database. Notably, this list does not include /META subfields….
-
get_string (3) Linux Manual Page
NAME get_string — retrieve a string from a dirfile database SYNOPSIS #include <getdata.h> size_t get_string(DIRFILE *dirfile, const char *field_code, size_t len, char *data_out); DESCRIPTION The get_string() function queries a dirfile(5) database specified by dirfile for the string scalar field_code, which should not contain a representation suffix. The first len characters of the string scalar are…
-
get_spf (3) Linux Manual Page
NAME get_spf — returns the samples per frame for a field in a dirfile SYNOPSIS #include <getdata.h> gd_spf_t get_spf(DIRFILE *dirfile, const char *field_code); DESCRIPTION The get_spf() function queries a dirfile(5) database specified by dirfile and returns the number of samples per frame for the field field_code. If field_code contains a valid representation suffix, it will…
-
get_sound_input_cap_stereo (3) Linux Manual Page
NAME get_sound_input_cap_stereo – Tells if the input driver is capable of stereo recording. Allegro game programming library. SYNOPSIS #include <allegro.h> int get_sound_input_cap_stereo(); DESCRIPTION Checks whether the current audio input driver is capable of stereo recording. RETURN VALUE Returns non-zero if the driver is capable of stereo recording. SEE ALSO start_sound_input(3), get_sound_input_cap_parm(3), get_sound_input_cap_bits(3), get_sound_input_cap_rate(3) Index
-
get_sound_input_cap_rate (3) Linux Manual Page
NAME get_sound_input_cap_rate – Returns the maximum sample frequency for recording. Allegro game programming library. SYNOPSIS #include <allegro.h> int get_sound_input_cap_rate(int bits, int stereo); DESCRIPTION Returns the maximum possible sample frequency for recording in the specified format, or zero if these settings are not supported. The bits parameter is the number of bits of the audio, and…
