05-26-2011
Usually, any discovered graphics will at least support VGA until configured, and most have LINUX drivers available. Not sure about the rest!
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there, I'm a newbie so please be patient. I wanted to know if it was possible to run X server on a box w/o a video card. The reason I want to do this is I'd like to have a CDE session from sun workstation into the AIX box. Please let me know if this is feasible. Thanks for your time. (5 Replies)
Discussion started by: blah00000
5 Replies
2. UNIX for Dummies Questions & Answers
My Ultra -2 Sun Monitor went blank one day ...
I tried using our monitor on another Sun , It worked fine .
So the problem would be with the video card ..
The thing is i have an Old Ultra 1 which has not been used for some time . I hooked that up to see the monitor works with that ..it works... (6 Replies)
Discussion started by: DPAI
6 Replies
3. UNIX for Dummies Questions & Answers
http://adsl.027game.com/uploadImages/200211122321064403.jpg
Help, please!!! :confused: :confused: :confused: (7 Replies)
Discussion started by: HOUSCOUS
7 Replies
4. UNIX for Advanced & Expert Users
I am wondering if a ATI Mobile Radeon 9600 PROTURBO will work with a any version of linux or Unix (NetBSD 1.6.2, FreeBSD). (0 Replies)
Discussion started by: mentor6
0 Replies
5. Solaris
I am looking into getting some cards for the SunFire V440. Not sure how most folks go about this but I am assuming we can find compatible cards for this server platform without going through SUN. Do you guys recommend getting this video card from SUN? Yeah we got these servers without the video... (5 Replies)
Discussion started by: bluridge
5 Replies
6. Programming
Hi everyone.
I'm looking for a way to extract the video card properties (Name, Driver version, amount of vram). I've managed to deal with nVidia cards, but nothing came for ATI/AMD cards and other kind of chipsets. Can someone point a way to do this?
Thanks. (4 Replies)
Discussion started by: JB007ROLV
4 Replies
7. Hardware
My MB has 3 PCI slots and 1 AGP 8x slot. Does anybody know of an AGP 8x video card with a DVI or HDMI output that will work for Fedora 13 as well as Windows 7? (3 Replies)
Discussion started by: EdN
3 Replies
8. Solaris
Hello all,
I am trying to learn about Solaris and Sun systems so I purchased a SunFire 280r running Solaris 9 with a disk array from eBay. The system had no video card so I purchased a PGX32 card for the PCI slot and installed it.
The problem is I have no video what so ever. I am familiar... (3 Replies)
Discussion started by: FTBTX
3 Replies
9. Programming
Video tutorial of Linux System Programming with C.
YouTube - Linux System Programming with C by Indronil Banerjee (1 Reply)
Discussion started by: vectrum
1 Replies
LEARN ABOUT PHP
set_gfx_mode
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)