Browse Source

Added some @todos.

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
f28f5398d3
  1. 1
      src/Buffer.h
  2. 2
      src/Math/Matrix3.h
  3. 2
      src/Math/Matrix4.h
  4. 4
      src/Math/RectangularMatrix.h
  5. 2
      src/Math/Vector.h
  6. 1
      src/MeshTools/Tipsify.h
  7. 2
      src/SizeTraits.h

1
src/Buffer.h

@ -61,6 +61,7 @@ buffer.setData(data, Buffer::Usage::StaticDraw);
@endcode @endcode
@todo Support for AMD's query buffer (@extension{AMD,query_buffer_object}) @todo Support for AMD's query buffer (@extension{AMD,query_buffer_object})
@todo BindBufferRange/BindBufferOffset/BindBufferBase for transform feedback (3.0, @extension{EXT,transform_feedback})
*/ */
class MAGNUM_EXPORT Buffer { class MAGNUM_EXPORT Buffer {
friend class Context; friend class Context;

2
src/Math/Matrix3.h

@ -141,6 +141,8 @@ template<class T> class Matrix3: public Matrix<3, T> {
return (*this)[2].xy(); return (*this)[2].xy();
} }
/** @todo up(), right() */
#ifndef DOXYGEN_GENERATING_OUTPUT #ifndef DOXYGEN_GENERATING_OUTPUT
inline Point2D<T> operator*(const Point2D<T>& other) const { inline Point2D<T> operator*(const Point2D<T>& other) const {
return Matrix<3, T>::operator*(other); return Matrix<3, T>::operator*(other);

2
src/Math/Matrix4.h

@ -238,6 +238,8 @@ template<class T> class Matrix4: public Matrix<4, T> {
return (*this)[3].xyz(); return (*this)[3].xyz();
} }
/** @todo up(), forward(), right() */
#ifndef DOXYGEN_GENERATING_OUTPUT #ifndef DOXYGEN_GENERATING_OUTPUT
inline Point3D<T> operator*(const Point3D<T>& other) const { inline Point3D<T> operator*(const Point3D<T>& other) const {
return Matrix<4, T>::operator*(other); return Matrix<4, T>::operator*(other);

4
src/Math/RectangularMatrix.h

@ -28,6 +28,8 @@
namespace Magnum { namespace Math { namespace Magnum { namespace Math {
/** @todo Properly test all constexpr */
template<std::size_t, std::size_t, class> class RectangularMatrix; template<std::size_t, std::size_t, class> class RectangularMatrix;
#ifndef DOXYGEN_GENERATING_OUTPUT #ifndef DOXYGEN_GENERATING_OUTPUT
@ -88,6 +90,8 @@ template<std::size_t cols, std::size_t rows, class T> class RectangularMatrix {
* @brief %Matrix from column vectors * @brief %Matrix from column vectors
* @param first First column vector * @param first First column vector
* @param next Next column vectors * @param next Next column vectors
*
* @todo Creating matrix from arbitrary combination of matrices with n rows
*/ */
template<class ...U> inline constexpr static RectangularMatrix<cols, rows, T> from(const Vector<rows, T>& first, const U&... next) { template<class ...U> inline constexpr static RectangularMatrix<cols, rows, T> from(const Vector<rows, T>& first, const U&... next) {
static_assert(sizeof...(next)+1 == cols, "Improper number of arguments passed to Matrix from Vector constructor"); static_assert(sizeof...(next)+1 == cols, "Improper number of arguments passed to Matrix from Vector constructor");

2
src/Math/Vector.h

@ -70,6 +70,8 @@ template<std::size_t size, class T> class Vector: public RectangularMatrix<1, si
/** @brief Default constructor */ /** @brief Default constructor */
inline constexpr Vector() {} inline constexpr Vector() {}
/** @todo Creating Vector from combination of vector and scalar types */
/** /**
* @brief Initializer-list constructor * @brief Initializer-list constructor
* @param first First value * @param first First value

1
src/MeshTools/Tipsify.h

@ -40,6 +40,7 @@ class MESHTOOLS_EXPORT Tipsify {
* *
* Computes count and indices of adjacent triangles for each vertex * Computes count and indices of adjacent triangles for each vertex
* (used internally). * (used internally).
* @todo Export only for unit test, hide otherwise
*/ */
void buildAdjacency(std::vector<std::uint32_t>& liveTriangleCount, std::vector<std::uint32_t>& neighborOffset, std::vector<std::uint32_t>& neighbors) const; void buildAdjacency(std::vector<std::uint32_t>& liveTriangleCount, std::vector<std::uint32_t>& neighborOffset, std::vector<std::uint32_t>& neighbors) const;

2
src/SizeTraits.h

@ -26,6 +26,8 @@
namespace Magnum { namespace Magnum {
/** @todo Remove/internalize things used only in one place (Math::log, Pow, Log)? Simplify SizeTraits? */
/** /**
@brief Traits class providing suitable types for given data sizes @brief Traits class providing suitable types for given data sizes
@tparam byte Highest byte needed (counting from zero) @tparam byte Highest byte needed (counting from zero)

Loading…
Cancel
Save