Mail Archives: djgpp/1999/06/06/19:00:24
| From: | "Nathan \"DrumNark\" Brown" <nathan DOT j DOT brown AT gte DOT net>
|
| Newsgroups: | comp.os.msdos.djgpp
|
| References: | <7jdqdd$3hn$1 AT news1 DOT skynet DOT be>
|
| Subject: | Re: allegro and bitmaps
|
| Lines: | 22
|
| X-Newsreader: | Microsoft Outlook Express 4.72.3110.1
|
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
| Message-ID: | <2oC63.1650$U51.81149@dfiatx1-snr1.gtei.net>
|
| X-Trace: | /KtlGRES33uWOICw/Vj/VOOO6lnbD9zZxclF4COQtBzVxuYYErkc6tlGTMD0Z5w0QwcySC6tzaSm!iQ/c/0gMznsIKMf3xI9fPwYbPYFT6S1c/pTLbikpP2UnEiVRF4guoMsj331SyG7DqCoWyjlDjA==
|
| 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, 06 Jun 1999 22:13:18 GMT
|
| Distribution: | world
|
| Date: | Sun, 06 Jun 1999 22:13:18 GMT
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
| Reply-To: | djgpp AT delorie DOT com
|
>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...
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 -