al_get_display_width
int al_get_display_width(ALLEGRO_DISPLAY *display)
Introduced in 5.0.0
Gets the width of the display. This is like SCREEN_W in Allegro 4.x.
See also: al_get_display_height
Examples: ex_bitmap, ex_display_options, ex_draw_bitmap, ex_expose, ex_filter, ex_font_justify, ex_fs_resize, ex_fs_window, ex_native_filechooser, ex_ogre3d, ex_resize2, ex_stream_seek
Most helpful discussions:
- Redrawing smoothly while display is being resized
- FPS camera in Allegro 5
- Allegro 5.2.2 Setup
- Blacking out the display while resizing
- [A5] Show & Hide window/display Cross-Platform ?
- Change adapter un runtime
- Keyboard input while rendering?
- Coordinate systems
- d3d_disp->render_target is NULL, segfault
- Image transition too slow !
Other recent discussions:
- How to use al_calc_elliptical_arc?
- [A5] Fullscreen + keep 4:3 ratio
- Create window without border and transparent background?
- Rotate text with transformations
- Combining Allegro 5.1.8 with OpenGL culling problems
- No ALLEGRO_EVENT_DISPLAY_RESIZE on fullscreen switch?
- ALLEGRO_RESIZABLE & Mouse Pointer Collision Detection
- display screen manipulation
- Floodfill...ish... math.
- NPC Conversation