www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/17/10:00:33

From: "Paradox" <ennui AT nettaxi DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: True Color
Date: 17 Apr 1999 07:32:05 PDT
Organization: Concentric Internet Services
Lines: 30
Message-ID: <7fa615$8df@chronicle.concentric.net>
NNTP-Posting-Host: ts001d46.chi-il.concentric.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm new to using truecolors in my programs. Someone told me that I didn't
need to use palettes if I use Truecolors, if so, do I load a bitmap such as
bmp = create_bitmap("blah.bmp", NULL)? I tried doing this and it would load
a bitmap, but the background was goofy. I cleared the double buffer using
clear_to_color(dbuffer, 0), but 0 was a different color each time. If I used
clear(dbuffer) I had the sampe problem. Also, I keep getting draw_sprite
errors from symify from this line....

void load_ants(void) {
  int x;
  for(x=0; x<antsalive; x++) { draw_sprite(ego, ants[x].ant, ants[x].loc_x,
ants[x].loc_y); }
}

All variables are declared.

My trucolors are set as such...

  set_color_depth(16);
  set_color_conversion(COLORCONV_TOTAL);
  set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0);
  set_palette(pal);

I tried color depth under gfx_mode without much luck.

Thanks

Paradox


- Raw text -


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