Browse Source

Added some TODOs.

pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
6802b022ea
  1. 2
      src/Math/Geometry/Rectangle.h
  2. 2
      src/TextureTools/DistanceField.cpp

2
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 T> class Rectangle {
template<class> friend class Rectangle;

2
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);

Loading…
Cancel
Save