VIRTUAL_W(3alleg4) Allegro manual VIRTUAL_W(3alleg4)NAME
VIRTUAL_W, VIRTUAL_H - Global define to obtain the virtual size of the screen. Allegro game programming library.
Global defines that return the width and height of the virtual screen, or zero if the screen has not been initialised yet. Example:
"The virtual screen size is %d x %d pixels",
SEE ALSO screen(3alleg4), set_gfx_mode(3alleg4), SCREEN_W(3alleg4), SCREEN_H(3alleg4)Allegro version 4.4.2 VIRTUAL_W(3alleg4)
Check Out this Related Man Page
set_gfx_mode(3alleg4) Allegro manual set_gfx_mode(3alleg4)NAME
set_gfx_mode - Sets a graphic video mode. Allegro game programming library.
int set_gfx_mode(int card, int w, int h, int v_w, int v_h);
Switches into graphics mode. The card parameter should usually be one of the Allegro magic drivers (read introduction of chapter "Graphics
modes") or see the platform specific documentation for a list of the available drivers. The w and h parameters specify what screen resolu-
tion you want. The color depth of the graphic mode has to be specified before calling this function with set_color_depth().
The v_w and v_h parameters specify the minimum virtual screen size, in case you need a large virtual screen for hardware scrolling or page
flipping. You should set them to zero if you don't care about the virtual screen size.
When you call set_gfx_mode(), the v_w and v_h parameters represent the minimum size of virtual screen that is acceptable for your program.
The range of possible sizes is usually very restricted, and Allegro may end up creating a virtual screen much larger than the one you
request. Allowed sizes are driver dependent and some drivers do not allow virtual screens that are larger than the visible screen at all:
don't assume that whatever you pass will always work.
In mode-X the virtual width can be any multiple of eight greater than or equal to the physical screen width, and the virtual height will be
set accordingly (the VGA has 256k of vram, so the virtual height will be 256*1024/virtual_width).
Currently, using a big virtual screen for page flipping is considered bad practice. There are platforms which don't support virtual
screens bigger than the physical screen but can create different video pages to flip back and forth. This means that, if you want page
flipping and aren't going to use hardware scrolling, you should call set_gfx_mode() with (0,0) as the virtual screen size and later create
the different video pages with create_video_bitmap(). Otherwise your program will be limited to the platforms supporting hardware
After you select a graphics mode, the physical and virtual screen sizes can be checked with the macros SCREEN_W, SCREEN_H, VIRTUAL_W, and
Returns zero on success. On failure returns a negative number and stores a description of the problem in allegro_error.
SEE ALSO set_color_depth(3alleg4), request_refresh_rate(3alleg4), screen(3alleg4), gfx_capabilities(3alleg4), allegro_error(3alleg4), cre-
ate_video_bitmap(3alleg4), get_desktop_resolution(3alleg4), SCREEN_W(3alleg4), SCREEN_H(3alleg4), VIRTUAL_W(3alleg4), VIRTUAL_H(3alleg4)Allegro version 4.4.2 set_gfx_mode(3alleg4)
Linux question, upgraded from Linux 6 to 7.1. BUT on the upgrade we lost the DNS config, the alias vitual host and a virtual host email address.
So question is how do i get them all back?
I ran the ifconfig eth0:1 ip.ad.dr.ess whic created the vitual host and ip address but when i reboot it loses... (7 Replies)
We are compiling common log files for our IP based virtual hosting accounts, and would like extended stats.
So instead of:
#CustomLog /web/logs/domain-access.log common
What could I use for an extended format? Our http-analyze 2.4 and would like to see all the options.
Thanks for any... (2 Replies)
Would this be the correct entry for Apache to answer on the IP 126.96.36.199 if the servers IP is 188.8.131.52? Are any other changes necessary to get Apache to answer this IP for web traffic?
< VirtualHost 184.108.40.206>
ServerAdmin admin@my_domain.com... (4 Replies)
Is it possible to reliably detect the virtual host of a Sun Solaris box, within a shell or Perl script?
Can a system have multiple virtual host or not host at all ?
I was recently made aware of hostname command, but was not sure if this option was the only one available.
Any help is much... (3 Replies)
I'm having some apache problems. I've installed apache countless times on FreeBSD. However, I'm having some problems and I could use some help. Here is my system info:
Apache 2.0.51 (/usr/local/apache2), doc root (/www symlink to /var/www)
PHP 5.0.1 (/usr/local/php)... (2 Replies)
Im running Centos 4.6 Final
latest versions of apache, mysql etc etc
Basically, I have several websites on there and one of them is a busy forum and it generates big log files in not that long of a timeperiod.
I set it up about 8 months ago so that logrotate was rotating the logs... (7 Replies)
I want to check all the virtual hostname's/IP's of a host/ip. Currently we are using HP-UX and open SuSe. Please tell me the command to list out all virtual names of a particular host.
many thanks in advance. (2 Replies)
I'm hosting several websites on the same server using apache virtual hosting:
~$ tail /etc/apache2/sites-available/default
ServerName... (5 Replies)
We have 'n' servers behind a firewall. One of these, 'Machine A', is the DMZ, and is world facing. It serves up any number of Apache Virtual Hosts already, no problem!
Now, how do we 'attach' another server - currently visible only to the internal subnet - such that its... (3 Replies)
I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
This is my sample code in /etc/httpd/conf.d/applications.conf file currently we are creating subdomain mannually for every new subdomain. I want to automate this process througs bash script , how its possible.
ServerAlias google.com... (5 Replies)
I have set up the following virtual host but it cannot find the URL?
Apache is running fine and I have disabled iptables. Within the document root I have the following file index.html displaying a sample text message.
Any ideas what my problem might be?
... (2 Replies)
Im just wondering if you could help me , any hint is welcome, in perfom the following:
I have two drives physically in which they mount it instantely with no problem to Finder, my question is if is possible to manually mount this two drives and to be merge into a only one drive,... (4 Replies)
I just successfully build a Virtual Machine in virtual box with Perfectly running HMC v7. I have a IBM eServer pSeries Model 630 Model 6C4 (Power 4) i.e. 7024-6C4. I am not able to have it connect to the HMC console on the Virtual Box.
Can anyone help me on how to connect it to the... (8 Replies)
I am attempting to add virtual hosts to an apache web server, which has this current configuration:
... (27 Replies)