1use libc::*;
2
3use crate::color::ALLEGRO_COLOR;
4
5pub const ALLEGRO_ZERO: u32 = 0;
6pub const ALLEGRO_ONE: u32 = 1;
7pub const ALLEGRO_ALPHA: u32 = 2;
8pub const ALLEGRO_INVERSE_ALPHA: u32 = 3;
9pub const ALLEGRO_SRC_COLOR: u32 = 4;
10pub const ALLEGRO_DEST_COLOR: u32 = 5;
11pub const ALLEGRO_INVERSE_SRC_COLOR: u32 = 6;
12pub const ALLEGRO_INVERSE_DEST_COLOR: u32 = 7;
13pub const ALLEGRO_CONST_COLOR: u32 = 8;
14pub const ALLEGRO_INVERSE_CONST_COLOR: u32 = 9;
15pub const ALLEGRO_NUM_BLEND_MODES: u32 = 10;
16
17pub const ALLEGRO_ADD: u32 = 0;
18pub const ALLEGRO_SRC_MINUS_DEST: u32 = 1;
19pub const ALLEGRO_DEST_MINUS_SRC: u32 = 2;
20pub const ALLEGRO_NUM_BLEND_OPERATIONS: u32 = 3;
21
22unsafe extern "C" {
23 pub fn al_set_blender(op: c_int, source: c_int, dest: c_int);
24 pub fn al_set_blend_color(color: ALLEGRO_COLOR);
25 pub fn al_get_blender(op: *mut c_int, source: *mut c_int, dest: *mut c_int);
26 pub fn al_get_blend_color() -> ALLEGRO_COLOR;
27 pub fn al_set_separate_blender(
28 op: c_int, source: c_int, dest: c_int, alpha_op: c_int, alpha_source: c_int,
29 alpha_dest: c_int,
30 );
31 pub fn al_get_separate_blender(
32 op: *mut c_int, source: *mut c_int, dest: *mut c_int, alpha_op: *mut c_int,
33 alpha_src: *mut c_int, alpha_dest: *mut c_int,
34 );
35}