al_draw_filled_rectangle
void al_draw_filled_rectangle(float x1, float y1, float x2, float y2,
ALLEGRO_COLOR color)
Introduced in 5.0.0
Draws a filled rectangle.
Parameters:
- x1, y1, x2, y2 - Upper left and lower right points of the rectangle
- color - Color of the rectangle
See also: al_draw_rectangle, al_draw_filled_rounded_rectangle
Examples: ex_bitmap_target, ex_blend, ex_blend2, ex_color, ex_display_options, ex_draw, ex_expose, ex_joystick_events, ex_lines, ex_logo, ex_mixer_pp, ex_mouse, ex_mouse_events, ex_prim, ex_stream_seek, ex_timer
Most helpful discussions:
- Newbie Allegro programming (1)
- al_load_bitmap question
- Mouse Lag / Not Keyboard
- MOUSE question
- Game Lag Windows to Linux - FPS issue?
- Having Trouble with exit(1) - Stalling Program
- Vivace extra points. Its there a better way of doing this one.
- I'm new
- Key-presses speed-up program
- Allegro Access Violation while Drawing
Other recent discussions:
- A little bit of fun for family and friends
- GUI Design and Implementation for Noobs
- 7Zip file of my game - Alien Cookbook
- Structs within structs, and how to assign them?
- Weird flex with my Bitmaps on my Screen
- [A5] How to implement smooth tile based movement
- Upgrade from Allegro 5.0.10 to Allegro 5.2.5
- Need help with structs
- Getting parameter problems.
- BITMAP quality gets reduced