Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

virtual_h(3alleg4) [v7 man page]

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. SYNOPSIS
#include <allegro.h> #define VIRTUAL_W; #define VIRTUAL_H; DESCRIPTION
Global defines that return the width and height of the virtual screen, or zero if the screen has not been initialised yet. Example: char buf[100]; ... uszprintf(buf, sizeof(buf), "The virtual screen size is %d x %d pixels", SCREEN_W, SCREEN_H); 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. SYNOPSIS
#include <allegro.h> int set_gfx_mode(int card, int w, int h, int v_w, int v_h); DESCRIPTION
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 scrolling. 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 VIRTUAL_H. RETURN VALUE
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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

telnet and alias

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)
Discussion started by: ollyparkhouse
7 Replies

2. UNIX for Dummies Questions & Answers

CustomLog format

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)
Discussion started by: sitemouse
2 Replies

3. UNIX for Dummies Questions & Answers

Apache virtual host

Would this be the correct entry for Apache to answer on the IP 129.250.242.126 if the servers IP is 129.250.242.125? Are any other changes necessary to get Apache to answer this IP for web traffic? < VirtualHost 129.250.242.126> ServerName www.my_domain.com ServerAdmin admin@my_domain.com... (4 Replies)
Discussion started by: 98_1LE
4 Replies

4. Solaris

Unix virtual host detection

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)
Discussion started by: Meridian
3 Replies

5. UNIX for Advanced & Expert Users

Apache 2 Virtual Hosts not resolving

Hey all, 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: FreeBSD 5.2.1 Apache 2.0.51 (/usr/local/apache2), doc root (/www symlink to /var/www) PHP 5.0.1 (/usr/local/php)... (2 Replies)
Discussion started by: ezekiel61
2 Replies

6. Linux

Problems with log rotate and virtual hosts

ok guys, 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)
Discussion started by: anderow
7 Replies

7. UNIX for Dummies Questions & Answers

Need to check all virtual hostnames/virtual IP's

Hi Folks, 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)
Discussion started by: sai21
2 Replies

8. UNIX for Dummies Questions & Answers

multiple website traffic analyzer

Hello everybody, I'm hosting several websites on the same server using apache virtual hosting: ~$ tail /etc/apache2/sites-available/default <VirtualHost *> ServerName website1.mydomain.com DocumentRoot /var/www/website1 </VirtualHost> <VirtualHost *> ServerName... (5 Replies)
Discussion started by: chebarbudo
5 Replies

9. Web Development

Apache How to 'alias'/'locate'/'redirect' subsite to another internal server?

Apache Experts! 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)
Discussion started by: Dr Lou
3 Replies

10. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, 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)
Discussion started by: shen747
23 Replies

11. Shell Programming and Scripting

Bash script to Automate the Virtual Host creation process!!

Hi all, 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. <VirtualHost *:80> ServerName google.com ServerAlias google.com... (5 Replies)
Discussion started by: anishkumarv
5 Replies

12. Red Hat

Virtual Host Apache

Hi, 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? httpd.conf: ... (2 Replies)
Discussion started by: Duffs22
2 Replies

13. OS X (Apple)

Two mounting points merge into a Virtual HD

Hello Guys, 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)
Discussion started by: VicoAndres
4 Replies

14. AIX

Connecting system to Virtual HMC

Hi, 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)
Discussion started by: uzair_rock
8 Replies

15. Web Development

Problems with Apache Virtual Host

I am attempting to add virtual hosts to an apache web server, which has this current configuration: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None ... (27 Replies)
Discussion started by: Corona688
27 Replies