Mail Archives: djgpp/1999/06/07/06:31:34
Message-ID: | <005c01bc732d$d766eaa0$9cf8c6c3@johan>
|
From: | "Johan Henriksson" <johan DOT he AT telia DOT com>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Re: allegro and bitmaps
|
Date: | Sat, 7 Jun 1997 12:28:19 +0200
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 4.72.3110.1
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
from Johan Henriksson, Sweden HTTP://come.to/jhewok |
Primary mail: johan DOT he AT telia DOT com #UIN 12035895
Second: jhe75 AT hotmail DOT com Third: johan_he AT yahoo DOT com
Leadprogrammer and FX-specialist at Real software
http://come.to/real_software
*************************************************************************
>>2) how can i get text on the screen when i'm not in text mode but in vga
>mode ?
>
>textout(bitmap,font(usually just "font" or
>datfile[FONT].dat),string,x,y,color);
>
>this doesn't mask though, which means you have to make your own sub to do
>that, which is easy to do with a little ingenuity...
hehehehe Read the docs better ;-)
text_mode(-1); //Set up transparent textblitting.
>int FunkyText(char *str,int x,int y,int col) {
> clear(textbuffer);
> textout(textbuffer,font,str,0,0,col);
> masked_blit(textbuffer,screen,0,0,x,y,320,15);
>}
>
>That should do it, you can mess around with it from there
>
>
>
>
- Raw text -