Mail Archives: djgpp/1999/09/12/15:28:21
> 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 -