1al_draw_pixel(3)                                              al_draw_pixel(3)
2
3
4

NAME

6       al_draw_pixel - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              void al_draw_pixel(float x, float y, ALLEGRO_COLOR color)
12

DESCRIPTION

14       Draws  a  single pixel at x, y.  This function, unlike al_put_pixel(3),
15       does blending and, unlike al_put_blended_pixel(3), respects the  trans‐
16       formations  (that is, the pixel’s position is transformed, but its size
17       is unaffected - it remains a pixel).  This  function  can  be  slow  if
18       called  often;  if  you  need  to  draw  a lot of pixels consider using
19       al_draw_prim(3) with ALLEGRO_PRIM_POINT_LIST from the primitives addon.
20
21       • x - destination x
22
23       • y - destination y
24
25       • color - color of the pixel
26
27         Note: This function may not draw exactly where you expect it to.  See
28         the  pixel-precise  output section on the primitives addon documenta‐
29         tion for details on how to control exactly where the pixel is drawn.
30

SEE ALSO

32       ALLEGRO_COLOR(3), al_put_pixel(3)
33
34
35
36Allegro reference manual                                      al_draw_pixel(3)
Impressum