diff --git a/src/IndexedMesh.h b/src/IndexedMesh.h index aba64e2d8..25f56e9b6 100644 --- a/src/IndexedMesh.h +++ b/src/IndexedMesh.h @@ -55,6 +55,7 @@ class MAGNUM_EXPORT IndexedMesh: public Mesh { * @brief Set index count * @return Pointer to self (for method chaining) * + * @see MeshTools::compressIndices() * @todo definalize after that? */ inline IndexedMesh* setIndexCount(GLsizei count) { diff --git a/src/Mesh.h b/src/Mesh.h index a9cf40985..284346110 100644 --- a/src/Mesh.h +++ b/src/Mesh.h @@ -365,6 +365,7 @@ class MAGNUM_EXPORT Mesh { * @return Pointer to self (for method chaining) * * This forces recalculation of attribute positions upon next drawing. + * @see MeshTools::interleave() */ inline Mesh* setVertexCount(GLsizei vertexCount) { _vertexCount = vertexCount; diff --git a/src/MeshTools/CompressIndices.h b/src/MeshTools/CompressIndices.h index 709041000..1890d3af8 100644 --- a/src/MeshTools/CompressIndices.h +++ b/src/MeshTools/CompressIndices.h @@ -90,7 +90,10 @@ inline std::tuple compressIndices(const std::vector&), but this function writes the output to mesh's index buffer and updates index count and -type in the mesh accordingly. +type in the mesh accordingly, so you don't have to call Mesh::setIndexCount() +and Mesh::setIndexType() on your own. + +@see MeshTools::interleave() */ inline void compressIndices(IndexedMesh* mesh, Buffer::Usage usage, const std::vector& indices) { return Implementation::CompressIndices{indices}(mesh, usage); diff --git a/src/MeshTools/Interleave.h b/src/MeshTools/Interleave.h index 4f66df056..f345e0cb2 100644 --- a/src/MeshTools/Interleave.h +++ b/src/MeshTools/Interleave.h @@ -149,8 +149,11 @@ template inline typename std::enable_ifsetVertexCount(attribute.size()); @attention If there is more than one attribute array, the buffer must be set as interleaved (see Mesh::addBuffer()), otherwise this function does nothing. + +@see MeshTools::compressIndices() */ template inline void interleave(Mesh* mesh, Buffer* buffer, Buffer::Usage usage, const T&... attributes) { return Implementation::Interleave()(mesh, buffer, usage, attributes...);