Mail Archives: djgpp/1998/03/27/21:38:22
Shawn Hargreaves wrote:
>
> 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
Actually, since he didn't say 256 colors, you can do it really easily in
16! Video mode 0eh I think.
--
Alex Weekley
mailto:rednax89 AT airmail DOT net
http://web2.airmail.net/rednax89/
A.K.A Alejandro
- Raw text -