Forum archive
Build question
- For Ken:
How does the classic Build Engine textures the floor (and cellling)? Does it make use of the top/bottom vertical span buffers from the wall drawing? - You mean fill? Yes, it uses the top/bottom vertical span buffers (umost[] and dmost[]) for ceilings and floors. Since I draw (non-sloped) ceilings and floors with horizontal lines, I must convert from a list of vertical spans to horizontal spans. That code is done inside ceilscan() and florscan() using a series of while loops. (These while loops can be located by searching for "bwall =" in ENGINE.C)