www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/20/18:10:35

From: Tudor <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: graphics
Date: Fri, 20 Dec 1996 16:01:53 -0800
Organization: Communications Accesibles Montreal
Lines: 28
Message-ID: <32BB28F1.2470@cam.org>
References: <1 DOT 5 DOT 4 DOT 16 DOT 19961218230509 DOT 19f7ab66 AT mail DOT algonet DOT se>
Reply-To: tudor AT cam DOT org
NNTP-Posting-Host: dynamicppp-149.hip.cam.org
Mime-Version: 1.0
To: Adam Skoglund <adamskog AT algonet DOT se>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Adam Skoglund wrote:
> 
> Hallo verybody!
> I know how to use graphics in Borland: initgraph(.......
> bgi-graphics don´t work whit djgpp for me so how do you do it?
> The question might seem a bit elementary but I´m exreamly new
> whit this.
> I have Allegro but how do I get it to work?
> Thanks!
It's well explained in allegro.txt..if you print it,it's very handy!
anyway:
allegro_init();
set_gfx_mode(GFX_VGA,320,200,0,0);<--mode 13h

The prototype is:
int set_gfx_mode(int card, int w, int h, int v_w, int v_h);


-- 
tudor 'at' cam 'dot' org
http://www.cam.org/~tudor

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d-(--) s(-):(+) a? C+ UL>++++ P L>+++++ E- W++ N o K---(----) w---
O---- M-- V-? PS+++ PE Y PGP t+ 5-- X+++>++++ R tv b+ DI D+ G e->++
h>++ r- y>+++++ 
------END GEEK CODE BLOCK------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019