Replace invalid characters with HTML entities
— with — ’ with ’ + with + × with x ç with ç “ with “ ” with ” ‘ with ‘ • with • – with - µ with µ † with † Fix C++ θ with θ Yen symbol instead of times Fix broken apos Bullet again E-circumflex
This commit is contained in:
parent
9e52de9586
commit
500e7f5654
353 changed files with 5091 additions and 5091 deletions
24
50-06.html
24
50-06.html
|
|
@ -44,12 +44,12 @@
|
|||
viewpoint 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.
|
||||
Tested with Borland C++ in the small model. */
|
||||
Tested with Borland C++ in the small model. */
|
||||
#include <conio.h>
|
||||
#include <stdio.h>
|
||||
#include <dos.h>
|
||||
#include <math.h>
|
||||
#include “polygon.h”
|
||||
#include “polygon.h”
|
||||
void main(void);
|
||||
|
||||
/* Base offset of page to which to draw */
|
||||
|
|
@ -60,7 +60,7 @@ int ClipMaxX=SCREEN_WIDTH, ClipMaxY=SCREEN_HEIGHT;
|
|||
/* Rectangle specifying extent to be erased in each page */
|
||||
struct Rect EraseRect[2] = { {0, 0, SCREEN_WIDTH, SCREEN_HEIGHT},
|
||||
{0, 0, SCREEN_WIDTH, SCREEN_HEIGHT} };
|
||||
/* Transformation from polygon’s object space to world space.
|
||||
/* Transformation from polygon’s object space to world space.
|
||||
Initially set up to perform no rotation and to move the polygon
|
||||
into world space -140 units away from the origin down the Z axis.
|
||||
Given the viewing point, -140 down the Z axis means 140 units away
|
||||
|
|
@ -125,25 +125,25 @@ void main() {
|
|||
/* Flip to display the page into which we just drew */
|
||||
ShowPage(PageStartOffsets[DisplayedPage = NonDisplayedPage]);
|
||||
/* Rotate 6 degrees farther around the Y axis */
|
||||
if ((Rotation += (M_PI/30.0)) >= (M_PI*2)) Rotation -= M_PI*2;
|
||||
if ((Rotation += (M_PI/30.0)) >= (M_PI*2)) Rotation -= M_PI*2;
|
||||
if (kbhit()) {
|
||||
switch (getch()) {
|
||||
case 0x1B: /* Esc to exit */
|
||||
Done = 1; break;
|
||||
case ‘A’: case ‘a’: /* away (-Z) */
|
||||
case ‘A’: case ‘a’: /* away (-Z) */
|
||||
PolyWorldXform[2][3] -= 3.0; 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 (PolyWorldXform[2][3] < -40.0)
|
||||
PolyWorldXform[2][3] += 3.0; break;
|
||||
PolyWorldXform[2][3] += 3.0; break;
|
||||
case 0: /* extended code */
|
||||
switch (getch()) {
|
||||
case 0x4B: /* left (-X) */
|
||||
PolyWorldXform[0][3] -= 3.0; break;
|
||||
case 0x4D: /* right (+X) */
|
||||
PolyWorldXform[0][3] += 3.0; break;
|
||||
case 0x48: /* up (+Y) */
|
||||
PolyWorldXform[1][3] += 3.0; break;
|
||||
case 0x4D: /* right (+X) */
|
||||
PolyWorldXform[0][3] += 3.0; break;
|
||||
case 0x48: /* up (+Y) */
|
||||
PolyWorldXform[1][3] += 3.0; break;
|
||||
case 0x50: /* down (-Y) */
|
||||
PolyWorldXform[1][3] -= 3.0; break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue