Skip to content

Commit

Permalink
refs #25: moved mosaic function to algorithms dir
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaswagner committed Jun 3, 2018
1 parent f5560f7 commit e7acd0d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ set(source_dir src)

set(sources
${source_dir}/main.cpp
${source_dir}/mosaic.cpp
${source_dir}/mosaic.hpp
${source_dir}/algorithms/floyd-steinberg.cpp
${source_dir}/algorithms/floyd-steinberg.hpp
${source_dir}/mollusc.cpp
${source_dir}/mollusc.hpp
${source_dir}/mainwindow.cpp
Expand Down
4 changes: 2 additions & 2 deletions src/mosaic.cpp → src/algorithms/floyd-steinberg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <QColor>
#include <QPainter>

#include "mosaic.hpp"
#include "mollusc.hpp"
#include "floyd-steinberg.hpp"
#include "../mollusc.hpp"

QVector3D toVec3(const QColor& color)
{
Expand Down
2 changes: 1 addition & 1 deletion src/mosaic.hpp → src/algorithms/floyd-steinberg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

#include <vector>
#include <QImage>
#include "mollusc.hpp"
#include "../mollusc.hpp"

QImage* createMosaic(const QImage& input, const std::vector<Mollusc>& molluscs, int scale);
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <QDesktopWidget>

#include "mainwindow.hpp"
#include "mosaic.hpp"
#include "algorithms/floyd-steinberg.hpp"
#include "mollusc.hpp"


Expand Down

0 comments on commit e7acd0d

Please sign in to comment.