delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/12/15:28:21

From: Thomas Harte <T DOT Harte AT btinternet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro 3D functions - won't display on right half of the screen
Date: Sun, 12 Sep 1999 18:16:35 +0100
Organization: BT Internet
Lines: 14
Message-ID: <37DBDFF3.E3ECD4A9@btinternet.com>
References: <37DBC0DF DOT 7A5D AT ns DOT sympatico DOT ca>
NNTP-Posting-Host: host5-171-239-77.btinternet.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.6 [en-gb] (Win95; I)
X-Accept-Language: en-GB,en,en-*
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> I built a basic rotating cube demo with the allegro polygon and matrix
> functions, but I have a problem.  The cube displays as expected when in
> 8bit color (cube in center of the screen).  BUT, when I change NOTHING

	Unless I am mistaken, the polygon routines are only for 8bit modes (they are
not considered very important any more), so if you are trying to use them in
16bit mode they will be writing one pixel every 8bits, causing one screen
pixel to be made up of two calculated pixels, and hence the 'squashing'
problem.

	Try one of the add-on libraries listed on the Allegro site if you want
polygon routines for other colour depths.

		-Thomas

- Raw text -


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