Fix typos in documentation

Add variable type in declaration
Fix PolygonaVertexArray -> PolygonVertexArray
This commit is contained in:
manuel5975p 2020-07-12 01:01:40 +02:00 committed by GitHub
parent fa05e1561e
commit 68212e26d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1201,7 +1201,7 @@ indices[16]=2; indices[17]=3; indices[18]=7; indices[19]=6;
indices[20]=0; indices[21]=4; indices[22]=7; indices[23]=3; indices[20]=0; indices[21]=4; indices[22]=7; indices[23]=3;
// Description of the six faces of the convex mesh // Description of the six faces of the convex mesh
polygonFaces = new PolygonVertexArray::PolygonFace[6]; PolygonVertexArray::PolygonFace* polygonFaces = new PolygonVertexArray::PolygonFace[6];
PolygonVertexArray::PolygonFace* face = polygonFaces; PolygonVertexArray::PolygonFace* face = polygonFaces;
for (int f = 0; f < 6; f++) { for (int f = 0; f < 6; f++) {
@ -1215,7 +1215,7 @@ for (int f = 0; f < 6; f++) {
} }
// Create the polygon vertex array // Create the polygon vertex array
PolygonaVertexArray* polygonVertexArray = new PolygonVertexArray(8, vertices, 3 x sizeof(float), PolygonVertexArray* polygonVertexArray = new PolygonVertexArray(8, vertices, 3 x sizeof(float),
indices, sizeof(int), 6, polygonFaces, indices, sizeof(int), 6, polygonFaces,
PolygonVertexArray::VertexDataType::VERTEX_FLOAT_TYPE, PolygonVertexArray::VertexDataType::VERTEX_FLOAT_TYPE,
PolygonVertexArray::IndexDataType::INDEX_INTEGER_TYPE); PolygonVertexArray::IndexDataType::INDEX_INTEGER_TYPE);