delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/21/14:05:41

From: "Damian Yerrick" <NOSP AT Musenet@pineight.8m.com>
Newsgroups: comp.os.msdos.djgpp
References: <8176ml$or0$1 AT portraits DOT wsisiz DOT edu DOT pl> <j0MZ3.1707$VO5 DOT 42423 AT dfiatx1-snr1 DOT gtei DOT net> <8195o6$qfc$1 AT portraits DOT wsisiz DOT edu DOT pl>
Subject: Re: fprintf() and using under graphic modes
Lines: 75
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <ixWZ3.2125$VO5.60357@dfiatx1-snr1.gtei.net>
X-Trace: +SCKgMWH/lKCTp5EwI6E7pBoRzQjrwISi6f5kpaEbHJ6IMmAefBH2FJd8wYkk1+jnDWvqLprfbj4!FL6bjF/Fccsox1ez8HAHpfO5QbJ6p0/ryHgXcnzWJockaQ/98WHWCoxpMrNF+BGsPLi7Kw==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Sun, 21 Nov 1999 18:07:10 GMT
Distribution: world
Date: Sun, 21 Nov 1999 18:07:10 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Chaos" <chengin AT alpha DOT net DOT pl> wrote:
>
> >> Hi
> >>
> >> I've been recently writing 2D video game.
> >> Nothing really big, but for my pleasure.
> >
> >If you want to use 2D graphics, use Allegro.
>
> Yeah, I know, but I want to do something only by myself.
> You know 100% Chaos code. Sound sweet :-)

Yeah, except for libc.

> But I' probably gonna switch to that superb thing.

Cool! If you release your source under GPL, it will
be even cooler.

> >> VESA is used pretty much in my code,
> >
> >VESA is buggy. Allegro successfully works around the bugs.
>
> ???
> What you meen? My philosophy is that:
> If Allegro can do it I can do it too.

You and what army?  :-)
Allegro has an army of coders working on it.
And you can write an Allegro-based program once on DOS,
and it'll only take a couple hours to get it working on X, Linux
console, or Micro$oft Windows.

> >> so I was wondering if there is easy (and fast!) method to print
> >> some text message on the LFB or VRAM (using bank
> >> switching). My first thought was to make it with fprintf()
> >> and other *printf functions. I was surpprised, that fprintf
> >> put a very nice text prompt in 640*480*256c mode (0x101).
> >>
> >> Now i'm wondering if I can do it safelly. Can I stick with printing
text
> >> messages such as timer or player name using only printf-family
functions.
> >> Are there any limitations in using those functions in graphics modes?
> >
> >They don't work on all cards.
>
> Why?

Some cards don't implement the text BIOS in SVGA modes.

> >None of VESA works when compiling for M$ Windows or X.
> >Coding for the Allegro Platform is more portable.
> >http://www.talula.demon.co.uk/allegro/
> >And if you're concerned about EXE size, there's UPX.
> >http://www.nexus.hu/upx/
>
> I'll check it out. Thnx!!
>
> >Damian Yerrick
>
> Take care.
> -=| Chaos |=-
> e-mail:  chengin AT alpha DOT net DOT pl
>               chengin AT polbox DOT com
> _______________________________________________
> The statistics on sanity are that one out of every four people is
> suffering from some form of mental illness. Think of your three best
> friends. If they are okay, then it's you.
> _______________________________________________

Try Insane Game, part of Free Puzzle Arena (formerly DOSArena).
http://yerricde.tripod.com/binaries/


- Raw text -


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