al_set_new_bitmap_format
void al_set_new_bitmap_format(int format)
Introduced in 5.0.0
Sets the pixel format for newly created bitmaps. The default format is 0 and means the display driver will choose the best format.
See also: ALLEGRO_PIXEL_FORMAT, al_get_new_bitmap_format, al_get_bitmap_format
Examples: ex_blend_test, ex_convert, ex_draw, ex_pixelformat, ex_threads2
Most helpful discussions:
- ALLEGRO_VIDEO_BITMAP using more RAM than ALLEGRO_MEMORY_BITMAP (1)
- Over mouse function
- al_clone_bitmap() of backbuffer gives bad results with OGL
- Transparent pixel
- "al_put_pixel" not working
- Threading bitmap loads
- A5 - printing text to memory bitmap
- get and set pixel in Allegro 5
- [A5] Bitmaps to OpenGL textures
- [A5] Display lost/found events are never fired
Other recent discussions: