From 6802b022eaa0fd3da2da4c7246cc6915e767dd9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 28 Mar 2013 15:06:21 +0100 Subject: [PATCH] Added some TODOs. --- src/Math/Geometry/Rectangle.h | 2 ++ src/TextureTools/DistanceField.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Math/Geometry/Rectangle.h b/src/Math/Geometry/Rectangle.h index c832ecf36..ccf8ac019 100644 --- a/src/Math/Geometry/Rectangle.h +++ b/src/Math/Geometry/Rectangle.h @@ -39,6 +39,8 @@ Helper class for storing axis-aligned rectangles consisting of bottom left and top right corner positions with origin in bottom left. Bottom/left positions are inclusive, while top/right positions are exclusive. @see Magnum::Rectangle, Magnum::Rectanglei, Magnum::Rectangled +@todo rename to Range, make it generic for one, two and three dimensions, add translated(), padded()... +@todo move outside Math? */ template class Rectangle { template friend class Rectangle; diff --git a/src/TextureTools/DistanceField.cpp b/src/TextureTools/DistanceField.cpp index 7b5e0a6f6..c2804541c 100644 --- a/src/TextureTools/DistanceField.cpp +++ b/src/TextureTools/DistanceField.cpp @@ -84,7 +84,7 @@ DistanceFieldShader::DistanceFieldShader() { void distanceField(Texture2D* input, Texture2D* output, const Rectanglei& rectangle, const Int radius) { MAGNUM_ASSERT_EXTENSION_SUPPORTED(Extensions::GL::EXT::framebuffer_object); - /** @todo Disable depth test and then enable it back (if was previously) */ + /** @todo Disable depth test, blending and then enable it back (if was previously) */ Framebuffer framebuffer(rectangle); framebuffer.attachTexture2D(Framebuffer::ColorAttachment(0), output, 0);