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
14
54-04.html
14
54-04.html
|
|
@ -66,8 +66,8 @@ void DrawPObject(PObject * ObjectToXform)
|
|||
must be the first and second entries in the polgyon's vertex list.
|
||||
Note that the second point is also an active polygon vertex */
|
||||
VertNumsPtr = FacePtr->VertNums;
|
||||
NormalEndpoint = &ObjectToXform->XformedVertexList[*VertNumsPtr++];
|
||||
NormalStartpoint = &ObjectToXform->XformedVertexList[*VertNumsPtr];
|
||||
NormalEndpoint = &ObjectToXform->XformedVertexList[*VertNumsPtr++];
|
||||
NormalStartpoint = &ObjectToXform->XformedVertexList[*VertNumsPtr];
|
||||
/* Copy over the face's vertices from the vertex list */
|
||||
NumVertices = FacePtr->NumVerts;
|
||||
for (j=0; j<NumVertices; j++)
|
||||
|
|
@ -118,14 +118,14 @@ void DrawPObject(PObject * ObjectToXform)
|
|||
} else {
|
||||
/* Handle shading */
|
||||
/* Do ambient shading, if enabled */
|
||||
if (AmbientOn && (FacePtr->ShadingType & AMBIENT-SHADING)) {
|
||||
if (AmbientOn && (FacePtr->ShadingType & AMBIENT-SHADING)) {
|
||||
/* Use the ambient shading component */
|
||||
IntensityTemp = AmbientIntensity;
|
||||
} else {
|
||||
SET-INTENSITY(IntensityTemp, 0, 0, 0);
|
||||
}
|
||||
/* Do diffuse shading, if enabled */
|
||||
if (FacePtr->ShadingType & DIFFUSE-SHADING) {
|
||||
if (FacePtr->ShadingType & DIFFUSE-SHADING) {
|
||||
/* Calculate the unit normal for this polygon, for use in dot
|
||||
products */
|
||||
UnitNormal.X = NormalEndpoint->X - NormalStartpoint->X;
|
||||
|
|
@ -155,12 +155,12 @@ void DrawPObject(PObject * ObjectToXform)
|
|||
}
|
||||
/* Convert the drawing color to the desired fraction of the
|
||||
brightest possible color */
|
||||
IntensityAdjustColor(&ColorTemp, &FacePtr->FullColor,
|
||||
&IntensityTemp);
|
||||
IntensityAdjustColor(&ColorTemp, &FacePtr->FullColor,
|
||||
&IntensityTemp);
|
||||
/* Draw with the cumulative shading, converting from the general
|
||||
color representation to the best-match color index */
|
||||
DRAW-POLYGON(Vertices, NumVertices,
|
||||
ModelColorToColorIndex(&ColorTemp), 0, 0);
|
||||
ModelColorToColorIndex(&ColorTemp), 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue