www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/22/19:25:44

From: "Chaos" <chengin AT alpha DOT net DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fprintf() and using under graphic modes
Date: Mon, 22 Nov 1999 13:29:26 +0100
Organization: Chaos Engine
Lines: 91
Message-ID: <81cbg9$bb2$1@portraits.wsisiz.edu.pl>
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> <ixWZ3.2125$VO5 DOT 60357 AT dfiatx1-snr1 DOT gtei DOT net>
NNTP-Posting-Host: pa245.warszawa.ppp.tpnet.pl
X-Trace: portraits.wsisiz.edu.pl 943305033 11618 212.160.52.245 (22 Nov 1999 21:10:33 GMT)
X-Complaints-To: abuse AT news DOT wsisiz DOT edu DOT pl
NNTP-Posting-Date: 22 Nov 1999 21:10:33 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.1
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.

Why? I think that as far as now it's going pretty cool with libc.a
Maybe I'm little wierd because of using only libc, but as I said I am at
learning stage.

>> But I' probably gonna switch to that superb thing.
>
>Cool! If you release your source under GPL, it will
>be even cooler.

Well, my abilities are so lousy I have no choice in spreading my program
other way.
I've just switched to DJGPP about 3 month ago. Before that I was sticking up
with Borland 3.1 and real-mode :-(

>> >> 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?  :-)

Just me, unfortunetelly.

>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.

Yeah I"ll try to try it soon, I promise.

>> >> 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.

Bommer!! It means that I have to check this. Is ther any way doing that.
I suspect it's probably hidden somewhere in 0x4FXX functions of INT 0x10.

>> >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
>>

3mcie sie.
-=| 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.
_______________________________________________


- Raw text -


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