al_clear_to_color
void al_clear_to_color(ALLEGRO_COLOR color)
Introduced in 5.0.0
Clear the complete target bitmap, but confined by the clipping rectangle.
See also: ALLEGRO_COLOR, al_set_clipping_rectangle
Examples: ex_audio_props, ex_bitmap, ex_bitmap_flip, ex_bitmap_target, ex_blend, ex_blend2, ex_blend_test, ex_blit, ex_clip, ex_color, ex_disable_screensaver, ex_display_options, ex_draw, ex_drawpixels, ex_draw_bitmap, ex_filter, ex_font_justify, ex_fs_resize, ex_fs_window, ex_gp2xwiz, ex_haiku, ex_iphone, ex_joystick_events, ex_joystick_hotplugging, ex_keyboard_focus, ex_lines, ex_lockbitmap, ex_logo, ex_membmp, ex_mouse, ex_mouse_cursor, ex_mouse_events, ex_mouse_focus, ex_multisample, ex_native_filechooser, ex_pixelformat, ex_premulalpha, ex_prim, ex_resize, ex_resize2, ex_rotate, ex_scale, ex_stream_seek, ex_subbitmap, ex_synth, ex_threads, ex_timedwait, ex_timer, ex_transform, ex_ttf, ex_vsync, ex_warp_mouse, ex_windows, ex_winfull
Most helpful discussions:
- Blit to Android display (1)
- [A5] event queue & timing problems (1)
- [A5] Copying a bitmap from a transformed screen (1)
- al_load_bitmap question
- Mouse Lag / Not Keyboard
- MOUSE question
- Game Lag Windows to Linux - FPS issue?
- Odd event.mouse.x & y values
- Mouse Activity Question
- Is using TTFs really that complicated?
Other recent discussions:
- A shader that sets transparancy
- Having Trouble with exit(1) - Stalling Program
- My second game, space invader simplified
- Vivace extra points. Its there a better way of doing this one.
- I'm new
- al_map_rgb() only works after al_init() contrary to the documentation
- Allegro5 and OpenGL. Problem with drawing Allegro primitives
- [Please Help] Allegro 5 Text File Output
- Breaking your program ... on purpose
- Multiple layer scrolling problem