Normal quotes

This commit is contained in:
James Gregory 2013-12-30 18:34:31 +11:00
commit 18011c595a
352 changed files with 6040 additions and 6040 deletions

View file

@ -11,7 +11,7 @@
#include <conio.h>
#include <dos.h>
#include <math.h>
#include “polygon.h”
#include "polygon.h"
#define ROTATION (M_PI / 30.0) /* rotate by 6 degrees at a time */
@ -26,7 +26,7 @@
static unsigned int PageStartOffsets[2] =
{PAGE0_START_OFFSET,PAGE1_START_OFFSET};
int DisplayedPage, NonDisplayedPage;
/* Transformation from cube’s object space to world space. Initially
/* Transformation from cube's object space to world space. Initially
set up to perform no rotation and to move the cube into world
space -100 units away from the origin down the Z axis. Given the
viewing point, -100 down the Z axis means 100 units away in the
@ -114,25 +114,25 @@
switch (getch()) {
case 0x1B: /* Esc to exit */
Done = 1; break;
case ‘A’: case ‘a’: /* away (-Z) */
case ‘A': case ‘a': /* away (-Z) */
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 */
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) {
CubeWorldXform[2][3] += 3.0;
RecalcXform = 1;
}
break;
case ‘4’: /* rotate clockwise around Y */
case ‘4': /* rotate clockwise around Y */
AppendRotationY(CubeWorldXform, -ROTATION);
RecalcXform=1; break;
case ‘6’: /* rotate counterclockwise around Y */
case ‘6': /* rotate counterclockwise around Y */
AppendRotationY(CubeWorldXform, ROTATION);
RecalcXform=1; break;
case ‘8’: /* rotate clockwise around X */
case ‘8': /* rotate clockwise around X */
AppendRotationX(CubeWorldXform, -ROTATION);
RecalcXform=1; break;
case ‘2’: /* rotate counterclockwise around X */
case ‘2': /* rotate counterclockwise around X */
AppendRotationX(CubeWorldXform, ROTATION);
RecalcXform=1; break;
case 0: /* extended code */