cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/27/19:53:15

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Resolve a bet : Simple hello world sample at 640x480?
Date: Mon, 23 Mar 1998 00:35:46 +0000
Organization: None
Message-ID: <ovQ5vHAi5aF1EwDP@talula.demon.co.uk>
References: <3515A066 DOT 736CFC37 AT netrover DOT com>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Nicolas Blais writes:
>Can anyone write me a full, simple c++ code hello world program running
>at 640x480 without using allegro?  My friend here says that it's
>impossible and I bet with him 20$ that it's possible.  As a proof, I
>have to show him the code.  So, anyone know how?

I think you owe $20 to your friend :-)

It is easy enough to set a 640x480x256 video mode, and drawing onto the
screen isn't too bad as long as you only want to reference the top 100
lines (you won't need to bother with any bank switching). But to draw
text you need a font, and because many cards don't support the BIOS text
output routines in VESA modes, you will need to include your own
character set data and drawing functions: a fairly hefty chunk of code!


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


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