al_put_pixel
void al_put_pixel(int x, int y, ALLEGRO_COLOR color)
Introduced in 5.0.0
Draw a single pixel on the target bitmap. This operation is slow on non-memory bitmaps. Consider locking the bitmap if you are going to use this function multiple times on the same bitmap. This function is not affected by the transformations or the color blenders.
See also: ALLEGRO_COLOR, al_get_pixel, al_put_blended_pixel
Examples: ex_blit, ex_clip, ex_drawpixels, ex_icon, ex_logo, ex_transform
Most helpful discussions:
- Same code - slow on Windows, fast on Linux - timer fires too slow? (1)
- Pixel by pixel operations (Allegro 5) (1)
- Problem with al_creat_bitmap
- Convert *bitmap to char buffer
- You're such a disappointment.
- using a photo to floofill a bitmap
- Allegro color bitmap
- Icon on Mac
- Allegro 5 Android high CPU usage
- Learning shaders, one and for all.
Other recent discussions:
- [ Allegro 5.2.11 ] al_put_pixel and al_get_pixel very very slow compared to A4 !
- Performance issue regarding al_put_pixel and raycasting
- Mode 7 graphics in Allegro 5...
- Math graph plot
- Allegro 5 - Bitmap Deferred Corruption(?)
- Big FPS problem
- speeding up mandelbrot fractal creation
- "al_put_pixel" not working
- How to use al_draw_soft_line function
- [A5] Masked drawing?