Strip comments and inline ids onto h*

This commit is contained in:
James Gregory 2013-12-30 15:11:04 +11:00
commit 0f5f617adb
362 changed files with 2519 additions and 6694 deletions

View file

@ -10,16 +10,9 @@
<meta name="vspubdate" content="07/01/97" />
<meta name="vscategory" content="Web and Software Development: Game Development,Web and Software Development: Graphics and Multimedia Development" />
<title>Michael Abrash's Graphics Programming Black Book Special Edition: Wu'ed in Haste; Fried, Stewed at Leisure</title><!-- HEADER -->
<!-- Empty Reference Subhead -->
<!--ISBN=1576101746//-->
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//-->
<!--AUTHOR=Michael Abrash//-->
<!--PUBLISHER=The Coriolis Group, Inc.//-->
<title>Michael Abrash's Graphics Programming Black Book Special Edition: Wu'ed in Haste; Fried, Stewed at Leisure</title>
<meta name="chapter" content="42" />
<meta name="pages" content="782-784" />
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
</head>
<body>
@ -37,11 +30,11 @@
<p><br /></p>
<h3><a id="Heading5"></a>Sample Wu Antialiasing</h3>
<h3 id="Heading5">Sample Wu Antialiasing</h3>
<p>The true test of any antialiasing technique is how good it looks, so let&rsquo;s have a look at Wu antialiasing in action. Listing 42.1 is a C implementation of Wu antialiasing. Listing 42.2 is a sample program that draws a variety of Wu-antialiased lines, followed by non-antialiased lines, for comparison. Listing 42.3 contains <b>DrawPixel()</b> and <b>SetMode()</b> functions for mode 13H, the VGA&rsquo;s 320x200 256-color mode. Finally, Listing 42.4 is a simple, non-antialiased line-drawing routine. Link these four listings together and run the resulting program to see both Wu-antialiased and non-antialiased lines.</p>
<p><b>LISTING 42.2 L42-2.C</b></p><!-- CODE //-->
<p><b>LISTING 42.2 L42-2.C</b></p>
<pre>
/* Sample line-drawing program to demonstrate Wu antialiasing. Also draws
* non-antialiased lines for comparison.
@ -168,9 +161,9 @@ void SetPalette(struct WuColor * WColors)
int86x(0x10, &amp;regset, &amp;regset, &amp;sregset); /* load the palette block */
}
}
</pre><!-- END CODE //-->
</pre>
<p><b>LISTING 42.3 L42-3.C</b></p><!-- CODE //-->
<p><b>LISTING 42.3 L42-3.C</b></p>
<pre>
/* VGA mode 13h pixel-drawing and mode set functions.
* Tested with Borland C++ in C compilation mode and the small model.
@ -201,7 +194,7 @@ void SetMode()
regset.x.ax = 0x0013;
int86(0x10, &amp;regset, &amp;regset);
}
</pre><!-- END CODE //-->
</pre>
<p><br /></p>
@ -220,10 +213,6 @@ void SetMode()
<div align="center">
Graphics Programming Black Book &copy; 2001 Michael Abrash
</div><!-- all of the reference materials (books) have the footer and subfoot reveresed -->
<!-- reference_subfoot = footer -->
<!-- reference_footer = subfoot -->
<!-- BEGIN SUB FOOTER -->
<!-- END FOOTER -->
</div>
</body>
</html>