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)
- Need help with input_feild();
- Help with blender and alpha masking
- Text input using allegro 5
- [A5] Trying to understand projection transformations
- Drawing antialiased primitives to bitmaps?
- Allegro and OpenGL Drawing Problem
- [A5] Trying to understand transformations
- Allegro on iOS
- mouse y and line y not aligned when ALLEGRO_MENU displayted
Other recent discussions:
- using al_draw_bitmap to draw using pixel shader sampler
- Tint bitmap
- Sliding Collision
- 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)