Mail Archives: djgpp/1996/12/20/18:10:35
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 -