delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/15/04:47:45

From: ab799 AT hwcn DOT org (Billal Chaudhry)
Newsgroups: alt.msdos.programmer,comp.os.msdos.djgpp,rec.games.programmer
Subject: Re: 640x480 res. in DJGPP?
Date: Tue, 13 May 1997 03:24:26 GMT
Organization: ACC TelEnterprises Ltd.
Lines: 38
Message-ID: <3377ddb4.7373854@news.ican.net>
References: <01bc5ec3$06f22f20$a9a42499 AT syntaxlogic DOT earthlink DOT net>
NNTP-Posting-Host: ppp-069.hamilton-02.ican.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 12 May 1997 10:25:56 GMT, "Alex Kain" <syntaxlogic AT earthlink DOT net>
wrote:

>Is it possible to make a 640x480x256 game with allegro?
>If so, would it also be possible to make virtual screens for that res?
>Please mail me your response.


YEAH....yeppers dude very possible.

this is what you need to do

sample code

allegro_init();
 vbuf=create_bitmap(640,480);
 clear(vbuf); //dbl buffr
clear(screen) ///screen points to video buf
 set_gfx_mode(GFX_VESA2L,640,480,0,0);
blit(vbuf,screen,0,0,0,0,640,480); //pop the dubl bfr to the screen 

for more info on the above functions read the allegro.txt

there are a crap load of sprite..and now 3d funtions  in allegro


l8r


set gfx mode to 640x 480 using
make a 640x480 bitmap using the BITMAP* data type supplied by allegro

>-- 
>Alex Kain
>syntaxlogic AT earthlink DOT net
>http://home.earthink.net/~syntaxlogic/
>

- Raw text -


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