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)
- Line Drawing with OpenGL
- Redrawing smoothly while display is being resized
- What is the error in following little program
- Blacking out the display while resizing
- Statically link Allegro 5 in Ubuntu?
- upgrading tank war codebase to allegro 5
- save display window as image(png,jpg)
- Locking bitmap is slower than not (?)
- Performance issue regarding al_put_pixel and raycasting
Other recent discussions:
- Keyboard Interrupting on Mouse Positions?
- Segmentation fault al_map_rgb
- OpenGL Shader Performance with Primitives Add-on
- Keyboard input
- [A5] Fullscreen + keep 4:3 ratio
- Allegro 5 - Bitmap Deferred Corruption(?)
- Rotate text with transformations
- al_clear_to_color for certain region
- Best way for collision detection/bounding box collision
- Problems deleting bitmap