al_draw_pixel
void al_draw_pixel(float x, float y, ALLEGRO_COLOR color)
Introduced in 5.0.0
Draws a single pixel at x, y. This function, unlike al_put_pixel, does blending and, unlike al_put_blended_pixel, respects the transformations. This function can be slow if called often; if you need to draw a lot of pixels consider using the primitives addon.
- x - destination x
- y - destination y
- color - color of the pixel
Note: This function may not draw exactly where you expect it to. See the pixel-precise output section on the primitives addon documentation for details on how to control exactly where the pixel is drawn.
See also: ALLEGRO_COLOR, al_put_pixel
Examples: ex_blend_test, ex_drawpixels, ex_transform
Most helpful discussions:
- Rendering modes for bitmaps? (1)
- linking on ubuntu
- How to show the draw of subbitmap in screen
- Weird flex with my Bitmaps on my Screen
- Filesystem access on android
- Allegro 5 Android high CPU usage
- Install Allegro 5.2.4.1 on Win10
- ALLEGRO_EVENT_MOUSE_ENTER_DISPLAY fired outside edge of display
- Coordinate systems
- Allegro 5 - Bitmap Deferred Corruption(?)
Other recent discussions: