From c593594c3f5a69cc955c3162c2ed76bdafb55221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 20 Jan 2013 20:20:42 +0100 Subject: [PATCH] Doc++ --- src/AbstractImage.cpp | 2 ++ src/Mesh.h | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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.