Remove colour attributes from body and strip most of the font tags out

This commit is contained in:
James Gregory 2013-12-30 13:57:02 +11:00
commit c1f88ddb41
362 changed files with 1632 additions and 1706 deletions

View file

@ -24,7 +24,7 @@
<!--CHAPTER=54//-->
<!--PAGES=1005-1008//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//--></HEAD><BODY LINK=#0000FF ALINK=#000099 VLINK=#0000FF BGCOLOR=#FFFFFF>
<!--UNASSIGNED2//--></HEAD><body>
<CENTER>
<TABLE BORDER>
@ -36,12 +36,11 @@
</TABLE>
</CENTER>
<P><BR></P>
<H2><A NAME="Heading1"></A><FONT COLOR="#000077">Chapter 54<BR>3-D Shading
</FONT></H2>
<H3><A NAME="Heading2"></A><FONT COLOR="#000077">Putting Realistic Surfaces on Animated 3-D Objects</FONT></H3>
<H2><A NAME="Heading1"></A>Chapter 54<BR>3-D Shading</H2>
<H3><A NAME="Heading2"></A>Putting Realistic Surfaces on Animated 3-D Objects</H3>
<P>At the end of the previous chapter, X-Sharp had just acquired basic hidden-surface capability, and performance had been vastly improved through the use of fixed-point arithmetic. In this chapter, we&rsquo;re going to add quite a bit more: support for 8088 and 80286 PCs, a general color model, and shading. That&rsquo;s an awful lot to cover in one chapter (actually, it&rsquo;ll spill over into the next chapter), so let&rsquo;s get to it!
</P>
<H3><A NAME="Heading3"></A><FONT COLOR="#000077">Support for Older Processors</FONT></H3>
<H3><A NAME="Heading3"></A>Support for Older Processors</H3>
<P>To date, X-Sharp has run on only the 386 and 486, because it uses 32-bit multiply and divide instructions that sub-386 processors don&rsquo;t support. I chose 32-bit instructions for two reasons: They&rsquo;re much faster for 16.16 fixed-point arithmetic than any approach that works on the 8088 and 286; and they&rsquo;re much easier to implement than any other approach. In short, I was after maximum performance, and I was perhaps just a little lazy.
</P>
<P>I should have known better than to try to sneak this one by you. The most common feedback I&rsquo;ve gotten on X-Sharp is that I should make it support the 8088 and 286. Well, I can take a hint as well as the next guy. Listing 54.1 is an improved version of FIXED.ASM, containing dual 386/8088 versions of <B>CosSin(), XformVec()</B>, and <B>ConcatXforms()</B>, as well as <B>FixedMul()</B> and <B>FixedDiv()</B>.</P>
@ -60,7 +59,7 @@
<hr width="90%" size="1" noshade>
<div align="center">
<font face="Verdana,sans-serif" size="1">Graphics Programming Black Book &copy; 2001 Michael Abrash</font>
Graphics Programming Black Book &copy; 2001 Michael Abrash
</div>
<!-- all of the reference materials (books) have the footer and subfoot reveresed -->
<!-- reference_subfoot = footer -->