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:
- still al_draw_text() problem
- al_draw_text problem
- Scaling down runtime created bitmaps makes them transparent
- [AL5] Performance issue when drawing large image partially
- 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
Other recent discussions:
- get and set pixel in Allegro 5
- [A5] Bitmaps to OpenGL textures
- [A5] Display lost/found events are never fired
- pixel format
- ALLEGRO_VIDEO_BITMAP using more RAM than ALLEGRO_MEMORY_BITMAP
- A5 Palette question
- A5 colour depth and colours in general
- ATI Radeon HD 5770 [Sapphire] Crash on ogl_display
- A5 question about display adapters