Browse Source

Doc++

pull/364/head
Vladimír Vondruš 7 years ago
parent
commit
1b37d22006
  1. 6
      src/Magnum/GL/AbstractFramebuffer.h
  2. 18
      src/Magnum/Magnum.h
  3. 4
      src/Magnum/Math/Range.h
  4. 4
      src/Magnum/PixelStorage.h

6
src/Magnum/GL/AbstractFramebuffer.h

@ -309,7 +309,7 @@ class MAGNUM_GL_EXPORT AbstractFramebuffer {
AbstractFramebuffer& setViewport(const Range2Di& rectangle);
/**
* @brief Clear specified buffers in framebuffer
* @brief Clear specified buffers in the framebuffer
* @param mask Which buffers to clear
* @return Reference to self (for method chaining)
*
@ -374,7 +374,7 @@ class MAGNUM_GL_EXPORT AbstractFramebuffer {
#endif
/**
* @brief Read block of pixels from framebuffer to image
* @brief Read block of pixels from the framebuffer to an image
* @param rectangle Framebuffer rectangle to read
* @param image Image where to put the data
*
@ -408,7 +408,7 @@ class MAGNUM_GL_EXPORT AbstractFramebuffer {
Image2D read(const Range2Di& rectangle, Image2D&& image);
/**
* @brief Read block of pixels from framebuffer to image
* @brief Read block of pixels from the framebuffer to an image view
*
* Compared to @ref read(const Range2Di&, Image2D&) the function
* reads the pixels into the memory provided by @p image, expecting

18
src/Magnum/Magnum.h

@ -495,22 +495,22 @@ typedef Math::Deg<Float> Deg;
/** @brief Angle in float radians */
typedef Math::Rad<Float> Rad;
/** @brief Float 1D range */
/** @brief One-dimensional float range */
typedef Math::Range1D<Float> Range1D;
/** @brief Float 2D range */
/** @brief Two-dimensional float range */
typedef Math::Range2D<Float> Range2D;
/** @brief Float 3D range */
/** @brief Three-dimensional float range */
typedef Math::Range3D<Float> Range3D;
/** @brief Signed integer 1D range */
/** @brief One-dimensional signed integer range */
typedef Math::Range1D<Int> Range1Di;
/** @brief Signed integer 2D range */
/** @brief Two-dimensional signed integer range */
typedef Math::Range2D<Int> Range2Di;
/** @brief Signed integer 3D range */
/** @brief Three-dimensional signed integer range */
typedef Math::Range3D<Int> Range3Di;
/** @brief Float frustum */
@ -695,13 +695,13 @@ typedef Math::Deg<Double> Degd;
/** @brief Angle in double radians */
typedef Math::Rad<Double> Radd;
/** @brief Double 1D range */
/** @brief One-dimensional double range */
typedef Math::Range1D<Double> Range1Dd;
/** @brief Double 2D range */
/** @brief Two-dimensional double range */
typedef Math::Range2D<Double> Range2Dd;
/** @brief Double 3D range */
/** @brief Three-dimensional double range */
typedef Math::Range3D<Double> Range3Dd;
/** @brief Double frustum */

4
src/Magnum/Math/Range.h

@ -104,9 +104,9 @@ template<UnsignedInt dimensions, class T> class Range {
constexpr /*implicit*/ Range() noexcept: Range<dimensions, T>{ZeroInit, typename std::conditional<dimensions == 1, void*, ZeroInitT*>::type{}} {}
/**
* @brief Construct zero range
* @brief Construct a zero range
*
* Construct zero-size range positioned at origin.
* Construct a zero-size range positioned at origin.
*/
constexpr explicit Range(ZeroInitT) noexcept: Range<dimensions, T>{ZeroInit, typename std::conditional<dimensions == 1, void*, ZeroInitT*>::type{}} {}

4
src/Magnum/PixelStorage.h

@ -106,11 +106,11 @@ class MAGNUM_EXPORT PixelStorage {
return *this;
}
/** @brief Pixel, row and image skipping */
/** @brief Pixel, row and image skip */
constexpr Vector3i skip() const { return _skip; }
/**
* @brief Set pixel, row and image skipping
* @brief Set pixel, row and image skip
*
* The Y value is used only for 2D and 3D images, the Z value is used
* only for 3D images. Default is @cpp 0 @ce.

Loading…
Cancel
Save