diff --git a/src/Magnum/MeshTools/GenerateIndices.cpp b/src/Magnum/MeshTools/GenerateIndices.cpp index 0dce93b0c..c3b6fd0b2 100644 --- a/src/Magnum/MeshTools/GenerateIndices.cpp +++ b/src/Magnum/MeshTools/GenerateIndices.cpp @@ -598,8 +598,8 @@ Trade::MeshData generateIndices(Trade::MeshData&& mesh) { (Trade::MeshData{MeshPrimitive::Triangles, 0})); #endif - /* Transfer vertex / attribute data as-is, as those don't need any changes. - Release if possible. */ + /* Transfer vertex data as-is, as those don't need any changes. Release if + possible. */ const Containers::ArrayView originalVertexData = mesh.vertexData(); Containers::Array vertexData; if(mesh.vertexDataFlags() & Trade::DataFlag::Owned) diff --git a/src/Magnum/MeshTools/GenerateIndices.h b/src/Magnum/MeshTools/GenerateIndices.h index 68276fddb..7bc83d7d8 100644 --- a/src/Magnum/MeshTools/GenerateIndices.h +++ b/src/Magnum/MeshTools/GenerateIndices.h @@ -101,8 +101,8 @@ MAGNUM_MESHTOOLS_EXPORT Containers::Array generateLineStripIndices( @brief Create index buffer for a line strip primitive into an existing array @m_since{2020,06} -A variant of @ref generateLineStripIndicesInto() that fills existing memory -instead of allocating a new array. The @p vertexCount is expected to be either +A variant of @ref generateLineStripIndices() that fills existing memory instead +of allocating a new array. The @p vertexCount is expected to be either @cpp 0 @ce or at least @cpp 2 @ce, the @p output array is expected to have a size of @cpp 2*(vertexCount - 1) @ce. Primitive restart is not supported. If the mesh is already indexed, use @ref generateLineStripIndicesInto(const Containers::StridedArrayView1D&, const Containers::StridedArrayView1D&) @@ -193,8 +193,8 @@ MAGNUM_MESHTOOLS_EXPORT Containers::Array generateLineLoopIndices(c @brief Create index buffer for a line loop primitive into an existing array @m_since{2020,06} -A variant of @ref generateLineLoopIndicesInto() that fills existing memory -instead of allocating a new array. The @p vertexCount is expected to be either +A variant of @ref generateLineLoopIndices() that fills existing memory instead +of allocating a new array. The @p vertexCount is expected to be either @cpp 0 @ce or at least @cpp 2 @ce, the @p output array is expected to have a size of @cpp 2*vertexCount @ce. Primitive restart is not supported.If the mesh is already indexed, use @ref generateLineLoopIndicesInto(const Containers::StridedArrayView1D&, const Containers::StridedArrayView1D&) @@ -286,7 +286,7 @@ MAGNUM_MESHTOOLS_EXPORT Containers::Array generateTriangleStripIndi @brief Create index buffer for a triangle strip primitive into an existing array @m_since{2020,06} -A variant of @ref generateTriangleStripIndicesInto() that fills existing memory +A variant of @ref generateTriangleStripIndices() that fills existing memory instead of allocating a new array. The @p vertexCount is expected to be either @cpp 0 @ce or at least @cpp 3 @ce, the @p output array is expected to have a size of @cpp 3*(vertexCount - 2) @ce. Primitive restart is not supported. If @@ -379,7 +379,7 @@ MAGNUM_MESHTOOLS_EXPORT Containers::Array generateTriangleFanIndice @brief Create index buffer for a triangle fan primitive into an existing array @m_since{2020,06} -A variant of @ref generateTriangleFanIndicesInto() that fills existing memory +A variant of @ref generateTriangleFanIndices() that fills existing memory instead of allocating a new array. The @p vertexCount is expected to be either @cpp 0 @ce or at least @cpp 3 @ce, the @p output array is expected to have a size of @cpp 3*(vertexCount - 2) @ce. Primitive restart is not supported. If