diff --git a/src/AbstractImage.cpp b/src/AbstractImage.cpp index 3cc19a3a2..681a62e91 100644 --- a/src/AbstractImage.cpp +++ b/src/AbstractImage.cpp @@ -119,6 +119,7 @@ std::size_t AbstractImage::pixelSize(Format format, Type type) { return 0; } +#ifndef DOXYGEN_GENERATING_OUTPUT Debug operator<<(Debug debug, AbstractImage::Format value) { switch(value) { #define _c(value) case AbstractImage::Format::value: return debug << "AbstractImage::Format::" #value; @@ -201,5 +202,6 @@ Debug operator<<(Debug debug, AbstractImage::Type value) { return debug << "AbstractImage::Type::(invalid)"; } +#endif } diff --git a/src/Mesh.h b/src/Mesh.h index 02b60c9ea..f33b95cbf 100644 --- a/src/Mesh.h +++ b/src/Mesh.h @@ -588,8 +588,9 @@ class MAGNUM_EXPORT Mesh { * mesh->vertexCount(), Shaders::PhongShader::Normal()); * @endcode * - * @attention Non-zero vertex count must be set before calling this - * function. + * @attention The actual vertex count must be set before calling this + * function, otherwise vertex data positions in the buffer will + * be miscalculated. * @attention The buffer passed as parameter is not managed by the * mesh, you must ensure it will exist for whole lifetime of the * mesh and delete it afterwards.