Change HTML4 entities to HTML5
< to < > to > & to &
This commit is contained in:
parent
56a4baa60e
commit
b8e7ce7165
105 changed files with 1117 additions and 1117 deletions
16
51-03.html
16
51-03.html
|
|
@ -43,9 +43,9 @@
|
|||
is fixed at the origin (0,0,0) of world space, looking in the direction of
|
||||
increasingly negative Z. A right-handed coordinate system is used throughout.
|
||||
All C code tested with Borland C++ in C compilation mode. */
|
||||
#include <conio.h>
|
||||
#include <dos.h>
|
||||
#include <math.h>
|
||||
#include <conio.h>
|
||||
#include <dos.h>
|
||||
#include <math.h>
|
||||
#include “polygon.h”
|
||||
|
||||
#define ROTATION (M_PI / 30.0) /* rotate by 6 degrees at a time */
|
||||
|
|
@ -121,12 +121,12 @@ void main() {
|
|||
/* Keep transforming the cube, drawing it to the undisplayed page,
|
||||
and flipping the page to show it */
|
||||
do {
|
||||
/* Regenerate the object->view transformation and
|
||||
/* Regenerate the object->view transformation and
|
||||
retransform/project if necessary */
|
||||
if (RecalcXform) {
|
||||
ConcatXforms(WorldViewXform, CubeWorldXform, WorkingXform);
|
||||
/* Transform and project all the vertices in the cube */
|
||||
XformAndProjectPoints(WorkingXform, &Cube);
|
||||
XformAndProjectPoints(WorkingXform, &Cube);
|
||||
RecalcXform = 0;
|
||||
}
|
||||
CurrentPageBase = /* select other page for drawing to */
|
||||
|
|
@ -142,7 +142,7 @@ void main() {
|
|||
EraseRect[NonDisplayedPage].Right =
|
||||
EraseRect[NonDisplayedPage].Bottom = 0;
|
||||
/* Draw all visible faces of the cube */
|
||||
DrawVisibleFaces(&Cube);
|
||||
DrawVisibleFaces(&Cube);
|
||||
/* Flip to display the page into which we just drew */
|
||||
ShowPage(PageStartOffsets[DisplayedPage = NonDisplayedPage]);
|
||||
while (kbhit()) {
|
||||
|
|
@ -153,7 +153,7 @@ void main() {
|
|||
CubeWorldXform[2][3] -= 3.0; RecalcXform = 1; break;
|
||||
case ‘T’: /* towards (+Z). Don’t allow to get too */
|
||||
case ‘t’: /* close, so Z clipping isn’t needed */
|
||||
if (CubeWorldXform[2][3] < -40.0) {
|
||||
if (CubeWorldXform[2][3] < -40.0) {
|
||||
CubeWorldXform[2][3] += 3.0;
|
||||
RecalcXform = 1;
|
||||
}
|
||||
|
|
@ -197,7 +197,7 @@ void main() {
|
|||
} while (!Done);
|
||||
/* Return to text mode and exit */
|
||||
regset.x.ax = 0x0003; /* AL = 3 selects 80x25 text mode */
|
||||
int86(0x10, &regset, &regset);
|
||||
int86(0x10, &regset, &regset);
|
||||
}
|
||||
</PRE>
|
||||
<!-- END CODE //-->
|
||||
|
|
|
|||
Loading…
Reference in a new issue