Browse Source

Doc++

pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
c593594c3f
  1. 2
      src/AbstractImage.cpp
  2. 5
      src/Mesh.h

2
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
}

5
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.

Loading…
Cancel
Save