From b90ba53f2eb62d911951d6c0999766ba9ff1fa9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 17 Sep 2012 02:05:04 +0200 Subject: [PATCH] Doc++ (positions, not vertices). --- src/MeshTools/CombineIndexedArrays.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MeshTools/CombineIndexedArrays.h b/src/MeshTools/CombineIndexedArrays.h index 612e8fce3..6f4f8f699 100644 --- a/src/MeshTools/CombineIndexedArrays.h +++ b/src/MeshTools/CombineIndexedArrays.h @@ -106,18 +106,18 @@ of some STL functions like shown below. Also if one index array is shader by more than one attribute array, just pass the index array more times. Example: @code std::vector vertexIndices; -std::vector vertices; +std::vector positions; std::vector normalTextureIndices; std::vector normals; std::vector textureCoordinates; std::vector indices = MeshTools::combineIndexedArrays( - std::make_tuple(std::cref(vertexIndices), std::ref(vertices)), + std::make_tuple(std::cref(vertexIndices), std::ref(positions)), std::make_tuple(std::cref(normalTextureIndices), std::ref(normals)), std::make_tuple(std::cref(normalTextureIndices), std::ref(textureCoordinates)) ); @endcode -`vertices`, `normals` and `textureCoordinates` will then contain combined +`positions`, `normals` and `textureCoordinates` will then contain combined attributes indexed with `indices`. @attention All index arrays should have the same size, otherwise zero-length