1SCREEN_W(3)                     Allegro manual                     SCREEN_W(3)
2
3
4

NAME

6       SCREEN_W,  SCREEN_H  -  Global define to obtain the size of the screen.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       #define SCREEN_W;
14
15       #define SCREEN_H;
16

DESCRIPTION

18       Global defines that return the width and height of the screen, or  zero
19       if the screen has not been initialised yet. Example:
20
21          char buf[100];
22          ...
23          uszprintf(buf, sizeof(buf),
24                    "The screen size is %d x %d pixels",
25                    SCREEN_W, SCREEN_H);
26
27

SEE ALSO

29       screen(3), set_gfx_mode(3), VIRTUAL_W(3), VIRTUAL_H(3)
30
31
32
33Allegro                          version 4.2.2                     SCREEN_W(3)
Impressum