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

NAME

6       VIRTUAL_W,  VIRTUAL_H - Global define to obtain the virtual size of the
7       screen. Allegro game programming library.
8

SYNOPSIS

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

DESCRIPTION

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

SEE ALSO

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